Question

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.

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top