Consider the roslyn repository as an example. Clone master, run Build.cmd -restore -pack and you will get the following error:
e:\nuget\microsoft.dotnet.arcade.sdk\1.0.0-beta.19171.3\tools\BuildReleasePackages.targets(20,5): error : Multiple packages of name 'Microsoft.CodeAnalysis' specifie d [e:\nuget\microsoft.dotnet.arcade.sdk\1.0.0-beta.19171.3\tools\AfterSolutionBuild.proj]
Even so $lastExitCode is still 0 and the build passes. This should be failing our build.
Consider the roslyn repository as an example. Clone master, run
Build.cmd -restore -packand you will get the following error:Even so
$lastExitCodeis still0and the build passes. This should be failing our build.