Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 1.98 KB

nuget_pack.md

File metadata and controls

25 lines (20 loc) · 1.98 KB

🔨 nuget_pack

Executes MSBuild to create a NuGet package. This action uses restore parameter under the hood to properly create the NuGet resources file.

In most cases "Pack" task will run along with building the binaries. Thus, if there are no any conditions within it, you can skip calling msbuild action.

Argument Description Env Var Default
project Path to the SLN-project file SF_MSBUILD_PROJECT
configuration Build configuration SF_MSBUILD_CONFIGURATION
platform Target platform SF_MSBUILD_PLATFORM
clean Should the project be cleaned before building it? SF_MSBUILD_CLEAN false
jobs A number of concurrent processes to use when building. Set it to -1 if you want to use up to the number of processors in the computer. SF_MSBUILD_JOBS_COUNT 1
properties A dictionary of project properties to be set up, where the key is a property name and the value is it's value empty

Example:

nuget_pack(
  project: "/cygdrive/c/Projects/My_Project.sln",
  configuration: "Release",
  platform: "x86",
  jobs: -1
)