This article applies to: âï¸ .NET Core 3.1 SDK and later versions
Namedotnet msbuild
- Builds a project and all of its dependencies. Note: A solution or project file may need to be specified if there are multiple.
dotnet msbuild <MSBUILD_ARGUMENTS>
dotnet msbuild -h
Description
The dotnet msbuild
command allows access to a fully functional MSBuild.
The command has the exact same capabilities as the existing MSBuild command-line client for SDK-style projects only. The options are all the same. For more information about the available options, see the MSBuild command-line reference.
The dotnet build command is equivalent to dotnet msbuild -restore
.
Build a project and its dependencies:
dotnet msbuild
Build a project and its dependencies using Release configuration:
dotnet msbuild -property:Configuration=Release
Run the publish target and publish for the osx-x64
RID:
dotnet msbuild -target:Publish -property:RuntimeIdentifiers=osx-x64
See the whole project with all targets included by the SDK:
dotnet msbuild -preprocess
dotnet msbuild -preprocess:<fileName>.xml
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide. Additional resources In this articleWas this page helpful?
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4