Reputation: 655
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?
Upvotes: 9
Views: 7962
Reputation: 101
Unfortunately, however, an assembly path in the .csproj.user file can override one in the .csproj file. May be a C# (or .NET) specific problem? But I got bitten by it today. So you may need to delete the .user file to get a correct build in some very rare, specific cases.
Upvotes: 0
Reputation: 20816
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.
Upvotes: 4
Reputation: 564741
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.
Upvotes: 2