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

标签 visual-studio visual-studio-2017 path-variables vssettings

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

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/

相关文章:

vb.net - 如何找出非托管 dll 的正确参数结构?

visual-studio - 值不能为空。参数名称 : userContext in Visual Studio 2017

c# - 第一次异常 - System.pdb 未加载

visual-studio-2017 - Visual Studio 2017 RC 安装错误 "The specified account already exists."

c# - 如何在给定的 Roslyn SyntaxNode 打开 Visual Studio 代码编辑器?

javascript - 如何让 Visual Studio 2005 在脚本资源管理器中显示正在运行的 JavaScript 文件?

visual-studio - 使 Visual Studio 打开工具窗口 float

windows - 在命令提示符下从 PATH 文件夹运行 perl 脚本

java - 导致 404 的路径变量

windows - 通过上下文菜单运行 cmd 时 PATH 变量不同