This topic applies to: ✓ .NET Core 1.x ✓ .NET Core 2.x
dotnet msbuild - Builds a project and all of its dependencies.
dotnet msbuild <msbuild_arguments> [-h]
dotnet msbuild command allows access to a fully functional MSBuild.
The command has the exact same capabilities as existing MSBuild command-line client. The options are all the same. Use the MSBuild Command-Line Reference to obtain information on the available options.
Build a project and its dependencies:
Build a project and its dependencies using Release configuration:
dotnet msbuild /p:Configuration=Release
Run the publish target and publish for the
dotnet msbuild /t:Publish /p:RuntimeIdentifiers=osx.10.11-x64
See the whole project with all targets included by the SDK:
dotnet msbuild /pp