msbuild icon indicating copy to clipboard operation
msbuild copied to clipboard

dotnet publish profile silently continues even if you give an invalid publish profile path

Open nagilson opened this issue 3 years ago • 1 comments

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/.

nagilson avatar Sep 15 '22 19:09 nagilson