Internet Explorer is no longer supported. Many things will still work, but your experience will be degraded and some things won't function. Please use a modern browser such as Edge, Chrome, or Firefox.

Create-Package

Creates a universal package from the specified directory and publishes to a feed.

Script usage:

ProGet::Create-Package(
	Name: <text>,
	Version: <text>,
	[From: <text>],
	[PushTo: <text>],
	[To: <text>],
	[Include: <@(text)>],
	[Exclude: <@(text)>],
	[Metadata: <%(key1: value1, ...)>],
	[Overwrite: <true/false>],
	[Feed: <text>],
	[EndpointUrl: <text>],
	[UserName: <text>],
	[Password: <text>],
	[ApiKey: <text>],
	[Group: <text>],
	[FeedUrl: <text>]
);

Arguments:

NameFormatScript UsageUsage Notes
Package name
text
Name
This argument is required.
Package version
text
Version
This argument is required.
Source directory
text
From
To package source
text
PushTo
Package file name
text
To
This may either be a file name or a directory. If the value ends with .upack, then this is treated as a file name. Otherwise, it is treated as an output directory into which the package file will be written.
Include files
@(text)
Include
See KB#1119 to learn more about masking syntax.
Exclude files
@(text)
Exclude
See KB#1119 to learn more about masking syntax.
Additional metadata
%(key1: value1, ...)
Metadata
Additional properties may be specified using map syntax. For example: %(description: my package description)
Overwrite existing package
true/false
Overwrite
Feed name
text
Feed
API endpoint URL
text
EndpointUrl
ProGet user name
text
UserName
The name of a user in ProGet that can access this feed.
ProGet password
text
Password
The password of a user in ProGet that can access this feed.
ProGet API Key
text
ApiKey
An API Key that can access this feed.
Group
text
Group
FeedUrl
text
FeedUrl

Example:

ProGet::Create-Package
(
    Name: MyAppPackage,
    Version: 3.4.2,

    From: $WorkingDirectory,
    PushTo: MyPackageSource
);