In my repository I have the next structure:
Common
\PublishProfiles
\Profile.pubxml
Solution1
\WebProject1
Solution2
\WebProject2
I want to share Profile.pubxml between two projects. Everything seems to work fine when I use msbuild with PublishProfileRootFolder property, but when I use "Publish" button from VS2019 it behaves like there is no profile and it seems reasonable, since it has no information about my shared profile.
I can't find any information on how VS2019 actually resolves publishing profiles while publishing from VS itself, so I've tried different things:
- Creating symbolic link to Profile.pubxml from Solution1\WebProject1\Properties\PublishProfiles
- "Add Existing Item"(Add file as Link) to the project
Seems that it only works when there is Profile.pubxml file inside Solution1(2)\WebProject1(2)\Properties\PublishProfiles folder.
Any other ideas on how to make it work? Or is it impossible?