【问题标题】:Visual Studio 2017 warning errors when starting a debugger for multiple Visual Studio 2012 C# projects in a solution为解决方案中的多个 Visual Studio 2012 C# 项目启动调试器时出现 Visual Studio 2017 警告错误
【发布时间】:2018-02-07 04:44:37
【问题描述】:

我正在使用 Visual Studio 2017 Professional 15.5.5 构建和调试 Visual Studio 2012 项目。当我为可执行文件启动调试器时,我在解决方案中的多个 C# 项目上看到以下警告消息:

尝试为 IDE 的进程内编译器设置“References”参数时出现问题。序列包含多个匹配元素

有没有办法解决这个问题?

更新:清理源代码树修复了这个问题,但没有找到根本原因。

【问题讨论】:

    标签: c# visual-studio visual-studio-2012 visual-studio-2017


    【解决方案1】:

    尝试检查 .csproj 文件部分中是否有 app.config 文件。从解决方案资源管理器中删除它可以解决问题

    【讨论】:

    • 谢谢。有些项目需要 app.config 文件,所以这个答案并不完全适用。
    猜你喜欢
    • 2013-12-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-01-08
    • 2011-03-14
    • 1970-01-01
    • 2023-03-05
    • 1970-01-01
    相关资源
    最近更新 更多