How to prevent .csproj.user generation?

Some user configurations are stored in .csproj.user. How to tell MS Visual Studio to store this information in .csproj every time?

+5
source share
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 off the desired configuration and paste it into the .csproj file. It worked fine, even though it was a bit hostile to the user.

+3
source

You can not. Visual Studio stores user options in a .csproj.user file and build options in a .csproj file. This allows several users to work on a project, which is crucial when working in a team with source control.

In this case, you can always delete the .user file, and it will be recreated at any time.

+2
source

Source: https://habr.com/ru/post/1383680/


All Articles