gpt4 book ai didi

visual-studio - Visual Studio调试设置保存在哪里?

转载 作者:行者123 更新时间:2023-12-03 16:45:13 25 4
gpt4 key购买 nike

当我更改“项目属性”中的“调试”设置(在我的情况下,尤其是“环境”值)时,它不会保存到项目或解决方案文件中。

VS Property Pages

它保存在哪里?

最佳答案

多亏了堆栈溢出问题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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com