Nóta
Aðgangur að þessari síðu krefst heimildar. Þú getur prófað aðskrá þig inn eða breyta skráasöfnum.
Aðgangur að þessari síðu krefst heimildar. Þú getur prófað að breyta skráasöfnum.
This article applies to: ✔️ .NET 6 SDK and later versions
Name
dotnet msbuild - Builds a project and all of its dependencies. Note: A solution or project file may need to be specified if there are multiple.
Synopsis
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.
Examples
Build a project and its dependencies:
dotnet msbuildBuild a project and its dependencies using Release configuration:
dotnet msbuild -property:Configuration=ReleaseRun the publish target and publish for the
osx-x64RID:dotnet msbuild -target:Publish -property:RuntimeIdentifiers=osx-x64See the whole project with all targets included by the SDK:
dotnet msbuild -preprocess dotnet msbuild -preprocess:<fileName>.xml