【问题标题】:You are debugging a release version of xyz.dll in MS Visual Studio?您正在 MS Visual Studio 中调试 xyz.dll 的发布版本?
【发布时间】:2015-10-30 10:26:31
【问题描述】:

我将现有项目用作程序集引用,并检查所有构建设置是否处于发布模式,但所有项目都配置为调试(活动)构建。

那么如何将项目图中的单独项目标记为调试模式?

【问题讨论】:

    标签: visual-studio debugging .net-assembly


    【解决方案1】:

    我在 VS 2015 上下文中遇到了类似的问题,我使用 ILSpy 反编译了一个 DLL 代码。 我最终在反编译的 DLL 项目的 AssemblyInfo.cs 中更新了以下行。

    [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
    

    希望这样的东西也适合你。祝你好运。

    【讨论】:

      猜你喜欢
      • 2023-04-02
      • 2019-10-20
      • 1970-01-01
      • 2016-11-30
      • 2015-08-21
      • 1970-01-01
      • 2020-10-29
      • 1970-01-01
      • 2013-07-08
      相关资源
      最近更新 更多