Visual Studio 2010中说建立失败,没有错误我换一个源文件后, [英] Visual Studio 2010 says Build failed with no errors after I change a source file
问题描述
我有几个项目的Visual Studio 2010的解决方案。我可以成功地建立与构建 - >生成解决方案或Build - >构建MyCompany.MyProduct.MyProject。建设我preSS CTRL + F5并成功运行后,启动项目。这正常工作。
I have a Visual Studio 2010 solution with a few projects. I can successfully build with Build -> Build Solution or Build -> Build MyCompany.MyProduct.MyProject. After building I press CTRL+F5 and successfully run the start up project. This works as expected.
我改变一个源文件后,保存它,然后重新编译(带有生成 - >生成解决方案或Build - >构建MyCompany.MyProduct.MyProject)它成功生成。我仍然能够preSS CTRL + F5并运行启动项目。这再次按预期工作。
After I change a source file, save it and then again build (with either Build -> Build Solution or Build -> Build MyCompany.MyProduct.MyProject) it builds successfully. I am still able to press CTRL+F5 and run the startup project. This again works as expected.
问题出在以下情形:
我改变一个源文件后,保存并直接preSS CTRL + F5则Visual Studio 2010中说,构建失败,并没有错误。而且它不会启动我的启动项目(当然)。
The problem is in the following scenario: After I change a source file, save it and directly press CTRL+F5 then Visual Studio 2010 says BUILD FAILED and there are no errors. And it doesn't start my startup project (of course).
我缺少的东西吗?
推荐答案
关闭Visual Studio中,删除名为.suo
提交您的解决方案。这是一个隐藏文件在Windows和包含用户preferences,但它也可以做坏事。
Close Visual Studio, delete the .suo
file for your solution. It's a 'hidden file' in Windows and contains user preferences, but it can also do nasty things.
这篇关于Visual Studio 2010中说建立失败,没有错误我换一个源文件后,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!