msbuild
msbuild copied to clipboard
Providing -pp will suppress errors and fail silently
To reproduce, do the following:
- Create a new console project with
dotnet new console. - Open the
foo.csprojor project file created by new console. Edit it to be like this:
<Project Sdk="Microsoft.NET.Sdk">
<Message>Blah</Message>
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net7.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
</Project>
run dotnet msbuild --pp and observe that no error is produced and msbuild is silent, but without --pp it will raise an error.