- 17 Feb 2022
- 1 Minute to read
- Updated on 17 Feb 2022
- 1 Minute to read
This is generated from the built in components of BuildMaster 7.0.0, 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.
Publishes a .NET Core/Framework/Standard project using dotnet publish.
DotNet::Publish( [SelfContained: <true/false>], Project: <text>, [Configuration: <text>], [PackageSource: <text>], [Framework: <text>], [Runtime: <text>], [Output: <text>], [ForceDependencyResolution: <true/false>], [Verbosity: <integer>], [AdditionalArguments: <text>], [DotNetPath: <text>] );
|Name||Format||Script Usage||Usage Notes|
|☆ Project path (default)|
|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.|
|If specified, this NuGet package source will be used to restore packages when building.|
|For building multiple target frameworks at once, leave this field blank and also leave "Output" blank.|
|Specifies an output directory for the build. This is only valid if "Framework" is also specified.|
|Force dependency resolution|
|Full path of dotnet.exe (or dotnet on Linux). This is usually C:\Program Files\dotnet\dotnet.exe on Windows. If no value is supplied, the operation will default to %PROGRAMFILES%\dotnet\dotnet.exe for Windows and dotnet (from the path) on Linux.|
Note: This operation requires .NET Core build tools v2.0+ to be installed on the server.
# Publish ~\src\MyProject.csproj with Release configuration for .net core 3.1, restoring NuGet packages from the InternalNuGet source DotNet::Publish ~\src\MyProject.csproj ( Configuration: Release, Framework: netcoreapp3.1, Runtime: win-x64, PackageSource: InternalNuGet );
Was this article helpful?
Thank you for your feedback! Our team will get back to you
How can we improve this article?
Character limit : 500