Issue
We have a Visual Studio solution that uses CMake for project management. This means the solution folder is under CMake's control, and when CMake detects changes it regenerates the folder.
ReSharper stores its options files in the solution folder. You can tell it to import a layer from somewhere else, but that "somewhere else" is stored in, yes, you guessed it, the solution folder, which can be trashed at any time by CMake.
Is there any way around this? Ideally tell ReSharper "load your options from this file here, don't look in the solution"?
(Just want to say it wasn't my choice to use CMake, I don't know very much about it so it may be there's a solution there).
Solution
R# always stores solution settings in a .DotSettings
file next to the solution. One approach would be to have a custom logic in the CMake config to recreate the .DotSettings
file when you generate a Visual Studio solution. You can either copy the settings file from somewhere else, or even better, create a dumb .DotSettings
file that will just import the real .DotSettings
file from another location in your project.
You can also try using the built-in CMake support in Visual Studio. If you open your CMake project file directly instead of the generated solution, R# will store solution settings in the Folder.DotSettings
file in the root project folder.
Answered By - Igor Akhmetov Answer Checked By - Clifford M. (WPSolving Volunteer)