简体   繁体   中英

Visual Studio 2015 not building solution

Today I've noticed that building solution on VS2015 has stopped working. 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.

[Edit1] I've tried this: Visual Studio 2010 doesn't rebuild changed code unless I manually select "Rebuild"

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. 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. 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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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