dotnet / dotnet/msbuild

Missing PublishDir from Microsoft.Build.CommonTypes.xsd

Open
#5,954 6 comments 9 reactions 0 assignees View on GitHub
bug help wanted Partner request triaged
Dominant language
C#
Stars
5.5k
Forks
1.5k
Avg merge
1d 8h
Merged PRs (30d)
141

Description

When you publish an app through VS (at least in some paths), it writes a FolderProfile.pubxml. I guess it is imported into the build. If you open that to look at it or edit it you will get a warning in VS
```
Severity Code Description Project File Line Suppression State
Warning The element 'PropertyGroup' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003' has invalid child element 'PublishDir' in namespace 'http://schemas.microsoft.com/developer/msbuild/2003'. List of possible elements expected: 'Property, VisualStudioVersion, MinimumVisualStudioVersion, ........ etc etc, .... ConsoleApp9 C:\Users\danmose\source\repos\ConsoleApp9\ConsoleApp9\Properties\PublishProfiles\FolderProfile.pubxml 9
```

Here is an example of a FolderProfile.pubxml:
```


Release
Any CPU
bin\Release\netcoreapp3.1\publish\
FileSystem

```

I am not sure whether there are other properties it might include, but we should add `PublishDir` and `PublishProtocol` to Microsoft.Build.CommonTypes.xsd so they don't cause this disconcerting warning which will discourage anyone looking at the file.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.