What is the best way to avoid having different users on our team contribute changes to .csproj files that include references to their local Publish Profiles?
We recently migrated to 2012 and our .csproj files have a handful of references to different .pubxml files in Properties/PublishProfiles within the .csproj XML.
If it's related, we svn:ignore any .user files and the Properties/PublishProfiles folder.
In your .csproj file, replace all references to .pubxml files with a single wildcard reference:
<None Include="Properties\PublishProfiles\*.pubxml" />
Each developer can then add and delete their own publish profiles without Visual Studio updating the .csproj XML.
Also, like you said, set your source control to ignore *.user and *.pubxml.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With