Builds a project and all of its dependencies. Note: A solution or project file may need to be specified if there are multiple.

# To show help information for the command:
dotnet msbuild -h

# To build a project and its dependencies:
dotnet msbuild

# To build a project and its dependencies using Release configuration:
dotnet msbuild -property:Configuration=Release

# To run the publish target and publish for the osx.10.11-x64 RID:
dotnet msbuild -target:Publish -property:RuntimeIdentifiers=osx.10.11-x64

# To see see the whole project with all targets included by the SDK:
dotnet msbuild -preprocess:<full_output_file.xml>

# To write the whole project as MSBuild sees it for a specified TargetFramework to a file:
dotnet msbuild -preprocess:<full_output_file.xml> -p:TargetFramework=netcoreapp3.1