为什么我需要重新启动(有时)Visual Studio才能构建? [英] Why Do I need to restart (sometime) Visual Studio to build?

查看:82
本文介绍了为什么我需要重新启动(有时)Visual Studio才能构建?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好

我使用的是Visual Studio 2015,由于我从2013年切换到2015年,因此我注意到,如果打开我的解决方案(admin)并进入菜单Build> Build Solution,我会在一半的时间内看到一个弹出窗口,说行动无法完成.

但是,如果我打开Dev控制台并点击msbuild作为解决方案,那么这一工作就可以了.因此,问题似乎出在VS2015.

短期解决方案是关闭Visual Studio 2015,然后重新打开(再次以admin身份).有时我必须两次.

有什么主意吗?

解决方案

您好,Patrick Desjardins,

>>>由于我从2013年切换到2015年,因此我正在使用Visual Studio 2015.

您是说相同的解决方案在VS2013之前运行良好吗?

不是先直接构建解决方案,如果先清洗解决方案,然后再重新构建,结果如何?

打开输出/错误列表窗口,或者在TOOLS-> Options-> Projects and Solutions-> Build and Run-> MSbuild项目生成下更改选项后,可以查看详细的生成输出消息.输出的详细程度,你还有其他吗 消息警告?

此外,如果在同一解决方案中有几个项目,那么如何单独编译项目?也许一个特定的项目会影响整个解决方案.

在重新启动VS IDE后项目运行良好之前,我遇到了一个问题,原因是我们的社区成员之前曾运行/调试应用程序,但是在他们停止调试或关闭应用程序后没有关闭一个进程,所以;他们将满足 如果再次运行,则会出现类似的问题.

不太确定它是否与该特定解决方案或VS IDE有关,但是如果可能,请在其他VS2015计算机上运行它,如果仍然存在此问题,也许我们可以考虑一下该项目本身. /p>

例如,创建一个新的空白解决方案,然后将项目添加到新解决方案中,清理并重建该解决方案,再次进行查看,或者可以删除解决方案文件夹中的.suo文件,然后重新打开项目,再次进行构建.

最好的问候,

Jack


Hello,

I am using Visual Studio 2015 and since I have switched from 2013 to 2015 I notice that if I open my solution (admin) and go in the menu Build>Build Solution I end up half of the time with a popup window that said that the Operation could not be completed.

However, if I open the Dev console and hit msbuild for the solution, this one work. So, the problem seems to be with VS2015.

The short term solution is to close Visual Studio 2015, re-open it (again as admin). Sometime I have to it twice.

Any idea?

解决方案

Hi Patrick Desjardins,

>>I am using Visual Studio 2015 and since I have switched from 2013 to 2015.

Do you mean that the same solution worked well in VS2013 before?

Not build the solution directly, if you clean the solution, and then build it again, how about the result?

Open your output/Error list windows, or you could view the detailed build output message after you change the option under TOOLS->Options->Projects and Solutions->Build and Run->MSbuild project build output verbosity, do you get any other message warning?

In addition, if there are a few projects in the same solution, how about compiling the projects singly? Maybe one specific project impacts the whole solution.

I met an issue before the project worked well after restarting the VS IDE, the reason is that our community members run/debug the app before, but one process was not closed after they stop debugging or close the app, so they will meet the similar issue if run it again.

Not very sure that whether it is related to this specific solution or the VS IDE, but if possible, please run it in other VS2015 machine, if it still has this issue, maybe we could think about the project itself.

For example, create a new blank solution, and then add the projects to the new solution, clean and rebuild the solution, review it again, or you could delete .suo file in your solution folder, and then re-open the projects, build it again. 

Best Regards,

Jack


这篇关于为什么我需要重新启动(有时)Visual Studio才能构建?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆