visual-studio - Visual Studio 2017 选项 : Use Managed Compatibility Mode per project

标签 visual-studio debugging visual-studio-2017 visual-studio-debugging

我从事两个不同的项目。一个是 asp.net Web 项目,另一个是 arcmap.exe 的插件。为了调试插件,必须设置选项“使用托管兼容模式”,否则在启动应加载扩展的程序时会发生错误(请参阅 Start ArcMap AddIn for .net 4.5 )。启动asp.net项目需要较长的时间,因此需要在运行过程中进行代码编辑。 但是当启用“使用托管兼容模式”时,调试时的代码编辑功能将不起作用。

所以到目前为止我的解决方案是在加载项目后更改选项。是否有可能在项目的基础上设置选项?

最佳答案

目前的解决方案是不使用扩展。如 Switching to Managed Compatibility Mode in Visual Studio 2013 中所述可以手动在 .csproj 文件中添加配置:

<PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    ...
    <DebugEngines>{351668CC-8477-4fbf-BFE3-5F1006E4DB1F}</DebugEngines> <!-- add this line -->
    ...
</PropertyGroup>

必须为“启动项目”完成此操作。设置项目属性后,可以在“设置”-“调试”中取消选中“使用托管兼容模式”选项。

关于visual-studio - Visual Studio 2017 选项 : Use Managed Compatibility Mode per project,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54415990/

相关文章:

android - 在 Xamarin Forms Android 启动画面中使用两个图像

php - 调试 Drupal 的白屏死机?

android - 当发生 Broadcastreceiver 超时时,调试器在调试期间断开连接

ssis - SSDT 2017 安装失败无法打开配置注册表项

asp.net-core - .NET Core MVC 自动迁移后,类库在 VS2017 中丢失智能感知

visual-studio - 用于清除全部的 Visual Studio 立即窗口命令

javascript - CanvasJS 值为 0 未显示在图表中

css - 我们如何自定义vs2010 css编辑器模板?

c++ - 打开和关闭调试代码的方法

c# - 无法在 VS 2017 中使用 C# 6.0 功能