简体   繁体   English

Visual Studio 2015没有构建解决方案

[英]Visual Studio 2015 not building solution

Today I've noticed that building solution on VS2015 has stopped working. 今天我注意到VS2015上的构建解决方案已停止工作。 it just shows 它只是显示

========== Build: 0 succeeded, 0 failed, 1 up-to-date, 0 skipped ==========

Even though I edit it (meaningful changes) to test it and then hit compile solution. 即使我编辑它(有意义的更改)来测试它然后点击编译解决方案。 It only works if I force a build of the current file or a full solution rebuild. 它仅在我强制构建当前文件或完整解决方案重建时才有效。

Is there a solution to this? 有针对这个的解决方法吗? I can't rely on single file build as I may have edited other files so I'm stuck to full rebuild for the time being which is annoying. 我不能依赖单个文件构建,因为我可能已经编辑了其他文件,所以我一直坚持完全重建暂时令人讨厌。

I'm using C++ by the way, I'm not sure if this makes a difference with the recent changes to VS2015 to not include C++ by default. 我顺便使用C ++,我不确定这是否会对VS2015最近的更改产生影响,默认情况下不包含C ++。

[Edit1] I've tried this: Visual Studio 2010 doesn't rebuild changed code unless I manually select "Rebuild" [Edit1]我试过这个: 除非我手动选择“Rebuild”,否则Visual Studio 2010不会重建更改的代码

And the file is part of the solution. 该文件是解决方案的一部分。 I double click it to make sure it opens the file. 我双击它以确保它打开文件。 Then edit it and then click build. 然后编辑它,然后单击构建。 It's true that I've used external programs to edit it but even when I do it on VS it doesn't seem to work. 确实,我已经使用外部程序来编辑它,但即使我在VS上执行它也似乎不起作用。 I've also checked toggling the options to prompt me if the file is being changed outside the environment but nothing seems to change. 我还检查了切换选项以提示我文件是否在环境之外被更改但似乎没有任何变化。

[Edit2] I've gone through all the options in Tools >> Options >> Project and Solution >> Build and Run nothing seems to work. [编辑2]我已经完成了工具>>选项>>项目和解决方案>>中的所有选项>> Build and Run nothing似乎无效。 Also in the Configuration Manager the only project is ticked to build. 同样在配置管理器中,唯一的项目是打勾来构建的。

You can check the following: 您可以查看以下内容:

Right click on File -> Properties There should be an Option like "exclude from build" or "Do Not build". 右键单击文件 - >属性应该有一个选项,如“从构建中排除”或“不构建”。 Check that "no" is selected. 检查是否选择“否”。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM