最佳答案
多亏了堆栈溢出问题Should I add the Visual Studio .suo and .user files to source control,我才能够用Chris Nielsens答案解决这个问题,我在这里引用它:
You can open both the .user and the
.csproj
files in any text editor. I just tested copy-pasting the relevant debug settings from the .user into the.csproj
, then deleting the.user
file. Debugging continued to work, happily reading the correct settings from their new location in the.csproj
file. This should provide a way to commit debug settings without committing the.user
file. Be sure you put them in the right configuration (debug, release, etc.). Works on my machine! =)
我只是复制了:
<LocalDebuggerEnvironment>PATH=$(CxPathd);%PATH%</LocalDebuggerEnvironment>
<DebuggerFlavor>WindowsLocalDebugger</DebuggerFlavor>
从.user
文件到.vcxproj
文件再到文档的同一部分: <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
在我的情况下,这些仅是.user文件中的唯一条目,因此我可以将它们检入SCM,但将其复制到.vcxproj
文件可能更干净。
关于visual-studio - Visual Studio调试设置保存在哪里?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45690272/