BuildMaster Documentation

.net - dotnet build

  • Last Modified: 2020-06-26

This is generated from the built-in components of BuildMaster 6.2.13, and may be different than what you have installed (especially if you have extensions); go to [User Icon] > Documentation within your BuildMaster instance to see exactly what operations are available.

dotnet build

Builds a .NET Core/Framework/Standard project using dotnet.exe build.

Script usage:

DotNet::Build(
	Project: <text>,
	[Configuration: <text>],
	[PackageSource: <text>],
	[Framework: <text>],
	[Output: <text>],
	[ForceDependencyResolution: <true/false>],
	[Verbosity: <integer>],
	[AdditionalArguments: <text>],
	[DotNetExePath: <text>]
);

Arguments:

Name Format Script Usage Usage Notes
Project path (default)
text
Project
This must be the path to either a project file, solution file, or a directory containing a project or solution file. This argument is required.
Configuration
text
Configuration
Package source
text
PackageSource
If specified, this NuGet package source will be used to restore packages when building.
Framework
text
Framework
For building multiple target frameworks at once, leave this field blank and also leave "Output" blank.
Output
text
Output
Specifies an output directory for the build. This is only valid if "Framework" is also specified.
Force dependency resolution
true/false
ForceDependencyResolution
Verbosity
integer
Verbosity
Additional arguments
text
AdditionalArguments
dotnet.exe path
text
DotNetExePath
Full path of dotnet.exe. This is usually C:\Program Files\dotnet\dotnet.exe. If no value is supplied, the operation will default to %PROGRAMFILES%\dotnet\dotnet.exe.

Note: This operation requires .NET Core build tools v2.0+ to be installed on the server.

Example:

# Build ~\src\MyProject.csproj with Release configuration, restoring NuGet packages from the InternalNuGet source
DotNet::Build ~\src\MyProject.csproj
(
    Configuration: Release,
    PackageSource: InternalNuGet
);

Is this documentation incorrect or incomplete? Help us by contributing!

This documentation is licensed under CC-BY-SA-4.0 and stored in GitHub.

Generated from commit ced119d5 on master