Thursday, January 24, 2013

Can't publish files in Visual Studio 2012


Symptom: 
When publishing files to a local drive with Visual Studio 2012, there seems to be no files in the destination directory.

Additional Symptoms:
- The My Project folder has some read-only .pubxml files that contain settings for publishing.  Deleting them seems to make deploying work again.
- After a Get Latest from TFS, my previously successful Publish settings are overridden with another team member's settings.

Solution:
When publishing a project, give the profile name something unique like your own name.  This will make a seperate .pubxml file with your settings.  Other team members using unique profiles with their own names should no longer affect your settings.  When they change their profile settings, their .pubxml file will be checked out and updated accordingly.

No comments:

Post a Comment