This project has moved and is read-only. For the latest updates, please go here.

VS2013 unit tests cause documentation project to build every time

Topics: Developer Forum
Apr 29, 2014 at 10:09 AM
Is there any way to add the ability for Sandcastle to realize that it is up-to-date when the Build action is selected, so that a complete re-compile of the documentation can be skipped, much in the same way that building a project works?

The main reason for asking is that due to a Microsoft bug in VS2013, every time a single unit test is ran, it causes all projects contained in a solution to also be rebuilt, this unfortunately means that every time a unit test is ran, any help documentation projects are compiled too. This is making running a single unit test a very slow process.

Here is the link to the current MS connect article: TEXT
Apr 29, 2014 at 4:07 PM
Incremental builds are not supported. The best solution is to use the Configuration Manager to disable building the documentation project in Debug builds or other configurations in which it is not wanted.

May 1, 2014 at 5:15 PM
Edited May 1, 2014 at 5:18 PM
You could have a dummy project which contains a pre-build event containing an actual MSBuild.exe call for your projects based on user-defined conditions.
Otherwise you could have your SHFB project outside your solution and call it separately through your startup project pre-build event based on user-defined conditions. (Command-line delight)