msbuild
msbuild copied to clipboard
dotnet publish profile silently continues even if you give an invalid publish profile path
When using a publish profile, there is no warning or error message for using an incorrect publish profile that doesn't exist.
Current behavior:
dotnet new console dotnet publish -p:PublishProfile=TotallyNonexistentButRadPublishProfileFile -bl. Will silently publish, binlog shows PublishProfileImported=false and PublishProfile=TotallyNonexistentButRadPublishProfileFile .
Expected / Desired Behavior:
MSBuild produces a warning akin to A publish profile was provided with the name TotallyNonexistentButRadPublishProfileFile but could not be found in ./Properties/PublishProfiles/.