Reputation: 5012
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.
Upvotes: 12
Views: 2223
Reputation: 46456
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.
Upvotes: 17