I have Visual Studio 2013 and 2015 installed on my computer.
I once ran into this incident over a year ago with only 2013 installed and am now experiencing the same problem with both versions installed. I can't remember what resolved the problem with only 2013 installed as it was a long time ago. Everything was working fine until recently when the problem appeared suddenly out of nowhere.
When I build in Visual Studio (2013 or 2015), many MSBuild and ConHost processes are created and the build eventually fails with no output. The processes remain alive after the build and I kill them off using the taskkill command. If I build a single project with no dependencies on other projects I get 10 MSbuild processes and 10 ConHost and build still fails. I guess it is creating 10 per project. I have set the number of parallel project builds to 1. I have also tried creating this environment variable as suggested elsewhere: MSBUILDDISABLENODEREUSE = 1.
Running MSBuild from the command line works fine. Only a single MSBuild process is created and build succeeds.
Visual Studio is running as Administrator. I have tried rebooting my computer several times.
To try and resolve the problem I have disabled nearly all extensions (everything non-Microsoft is gone). Disabled CodeLens. I am not using StyleCop.
I have reset all environment settings to default in Visual Studio.
I have tried setting MSBuild output to diagnostic and I see very little output. e.g.
Project 'MyProject1' is not up to date. Last build was with unsaved files.
------ Build started: Project: MyProject1, Configuration: Debug Any CPU ------
Project 'MyProject2' is not up to date. Last build was with unsaved files.
------ Build started: Project: MyProject2, Configuration: Debug Any CPU ------
========== Build: 0 succeeded, 2 failed, 0 up-to-date, 0 skipped ==========
I have seen suggested that it is caused by system changes to time zones, but I have made no time zone or clock changes.
Doing a Clean results in the same issue and fails.
I once ran into this incident over a year ago with only 2013 installed and am now experiencing the same problem with both versions installed. I can't remember what resolved the problem with only 2013 installed as it was a long time ago. Everything was working fine until recently when the problem appeared suddenly out of nowhere.
When I build in Visual Studio (2013 or 2015), many MSBuild and ConHost processes are created and the build eventually fails with no output. The processes remain alive after the build and I kill them off using the taskkill command. If I build a single project with no dependencies on other projects I get 10 MSbuild processes and 10 ConHost and build still fails. I guess it is creating 10 per project. I have set the number of parallel project builds to 1. I have also tried creating this environment variable as suggested elsewhere: MSBUILDDISABLENODEREUSE = 1.
Running MSBuild from the command line works fine. Only a single MSBuild process is created and build succeeds.
Visual Studio is running as Administrator. I have tried rebooting my computer several times.
To try and resolve the problem I have disabled nearly all extensions (everything non-Microsoft is gone). Disabled CodeLens. I am not using StyleCop.
I have reset all environment settings to default in Visual Studio.
I have tried setting MSBuild output to diagnostic and I see very little output. e.g.
Project 'MyProject1' is not up to date. Last build was with unsaved files.
------ Build started: Project: MyProject1, Configuration: Debug Any CPU ------
Project 'MyProject2' is not up to date. Last build was with unsaved files.
------ Build started: Project: MyProject2, Configuration: Debug Any CPU ------
========== Build: 0 succeeded, 2 failed, 0 up-to-date, 0 skipped ==========
I have seen suggested that it is caused by system changes to time zones, but I have made no time zone or clock changes.
Doing a Clean results in the same issue and fails.