Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to prevent generation of .csproj.user?

Certain user specific configurations are stored in .csproj.user. How do I tell MS Visual Studio to store this information in the .csproj every time?

like image 528
mcintoda Avatar asked Nov 29 '11 16:11

mcintoda


People also ask

Can I delete Csproj user file?

It shouldn't hurt anything to delete it other than you will lose any personal settings in the IDE and have to redo them.

What is Csproj .user file?

csproj" is a Visual Studio . NET C# Project file extension. This file will have information about the files included in that project, assemblies used in that project, project GUID and project version etc. This file is related to your project. It will be automatically generated when we create .

Do I need to check in Csproj?

I think what i have concluded is that the CSPROJ and SLN files do not get checked into TFS and must be manually passed to each developer when they initially get latest from TFS.


2 Answers

I had the same problem and the only solution I could come up with was to manually edit the .csproj.user file, cut the configuration I wanted and paste in the .csproj file. It worked fine, despite being a somewhat user-hostile solution.

like image 110
Lucio Paiva Avatar answered Oct 10 '22 21:10

Lucio Paiva


You can't. Visual Studio stores the user-specific settings in the .csproj.user file, and the build settings in the .csproj file. This is to allow multiple users to work on a project, which is critical when working in a team with source control.

That being said, you can always delete the .user file, and it will be recreated, at any point in time.

like image 37
Reed Copsey Avatar answered Oct 10 '22 20:10

Reed Copsey