【问题标题】:.Net c# visual studio 2008 error.Net c#visual studio 2008 报错
【发布时间】:2014-07-31 19:18:16
【问题描述】:

我在下面的位置有 dll, pdb 的项目解决方案箱。由于以下错误,我的构建失败了。

C:\Users\myusername\Documents\Visual Studio 2010\Projects\mysolution\bin\debug\CommonServices.pdb

C:\Users\myusername\Documents\Visual Studio 2010\Projects\mysolution\bin\debug\CommonServices.dll  

错误

命令 "C:\Users\myusername\Documents\Visual Studio 2010\Projects\mysolution\bin\debug\CommonServices.dll" 以代码 3 退出。

我尝试清理解决方案并构建/重建。无论哪种方式,都没有给出结果。
请帮忙。

【问题讨论】:

  • 这是 build 错误,还是您试图运行 DLL?

标签: c# .net visual-studio visual-studio-2008


【解决方案1】:

【讨论】:

  • 我解决了,通过删除我的项目中 VS 2008 的构建事件选项卡下存在的 .bat 文件。
【解决方案2】:

需要考虑和尝试的几件事 - 在标题中,它显示 VS 2008 错误,但路径指向 2010,您确定它指向 2008 的正确参考吗?

如果是,请尝试关闭 Visual Studio,删除 pdb 文件。这将消除构建过程中的任何 pdb 问题,因为 pdb 文件将被重新创建。

然后也删除 .suo 文件,这也将被重新创建。这是为了消除任何可能由 Visual Studio 版本冲突引起的构建问题。

要检查的另一件事是,您的项目中是否有任何可能触发此错误的构建事件,请进入项目属性并删除/编辑任何构建命令。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-04-22
    • 2014-01-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-08-26
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多