Skip to content

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

@nagilson

Description

@nagilson

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions