Visual Studio 2017 Live Unit Testing Fails To Build Upon Start - visual-studio-2017

This is my first attempt at using the new Live Unit Testing feature in VS 2017.
When I click on Test | Live Unit Testing | Start, I see the following in the output window:
[13:55:37.376 Verbose] - Orchestrator - Request to start Live Unit Testing. (Source = MenuItem)
[13:55:37.376 Verbose] - Orchestrator - Handling request to start LiveUnitTesting.
[13:55:37.633 Verbose] - Orchestrator - Connected to LiveUnitTesting process
[13:55:37.653 Verbose] - BuildManager - Allow to send a single build event.
[13:55:37.653 Info] - Orchestrator - Live Unit Testing started.
[13:55:37.653 Verbose] - TestExplorerServiceClient - Updating client state from Disabled to Enabled
[13:55:37.653 Verbose] - StatusMargin - Received a SystemStatusChangedEvent: Started
[13:55:37.663 Verbose] - BuildManager - Building solution.
[13:55:37.664 Verbose] - BuildManager - Building project ExcelLibrary.Tests.
[13:55:37.666 Verbose] - RemoteOrchestrator - Received SubscriptionEvent for 'C:\VS\ExcelLibrary\ExcelLibrary.Tests\ConMetPartNumberUtilsTests.cs - C:\VS\ExcelLibrary\ExcelLibrary.Tests\ExcelLibrary.Tests.csproj' (Subscribe)
[13:55:37.669 Verbose] - Aggregator - Received subscription request for 'C:\VS\ExcelLibrary\ExcelLibrary.Tests\ConMetPartNumberUtilsTests.cs - C:\VS\ExcelLibrary\ExcelLibrary.Tests\ExcelLibrary.Tests.csproj'
[13:55:37.680 Verbose] - Aggregator - Adding 0 methods from 'C:\VS\ExcelLibrary\ExcelLibrary.Tests\ConMetPartNumberUtilsTests.cs - C:\VS\ExcelLibrary\ExcelLibrary.Tests\ExcelLibrary.Tests.csproj' to the coverage aggregation work list
[13:55:37.685 Verbose] - Aggregator - Starting coverage aggregation cycle - work list has 0 methods
[13:55:37.687 Verbose] - Aggregator - Finished coverage aggregation cycle - work list had 0 methods of which 0 methods were defined in 1 open files
[13:55:38.106 Verbose] - BuildManager - C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Microsoft\VisualStudio\v15.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets(176,9): error MSB4008: A conflicting assembly for the task assembly "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Microsoft\VisualStudio\v15.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.BuildTasks.dll" has been found at "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Microsoft\VisualStudio\v15.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.BuildTasks.dll".
[13:55:38.118 Verbose] - BuildManager - C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Microsoft\VisualStudio\v15.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets(176,9): error MSB4061: The "FindRibbons" task could not be instantiated from "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Microsoft\VisualStudio\v15.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.BuildTasks.dll". Value cannot be null.
Parameter name: key
[13:55:38.118 Verbose] - BuildManager - C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Microsoft\VisualStudio\v15.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets(176,9): error MSB4060: The "FindRibbons" task has been declared or used incorrectly, or failed during construction. Check the spelling of the task name and the assembly name.
[13:55:38.136 Info] - BuildManager - Build completed (failed).
[13:55:38.136 Verbose] - BuildManager - Interrupting build queue -> no new assemblies.
[13:55:38.136 Verbose] - BuildManager - Interrupting build queue -> no new assemblies.
Thus it seems the culprit is a conflicting assembly for Microsoft.VisualStudio.Tools.Office.BuildTasks.dll. However it's not clear why VS is reporting this error since there is only one such file in the indicated folder (no BuildTasks.dll.bak or similar) and no other instances of devenv.exe are running, and all add-ins are disabled. And I've tried killing all but essential processes and rebooting, etc.
Interestingly in Visual Studio 2017 Installer dialog, the installed enterprise SKU is labelled as Visual Studio Enterprise 2017 (2). Perhaps this issue is correlated with the (2) suffice. Originally I installed the Professional, later installed the Enterprise, and finally uninstalled Professional.
Any ideas?

The problem was mentioned in https://stackoverflow.com/a/30777648/1954871
You can try to install Microsoft.VisualStudio.Tools.Office.BuildTasks.dll in the GAC:
"C:\Program Files (x86)\Microsoft SDKs\Windows\v10.0A\bin\NETFX 4.6.2 Tools\gacutil" /i "C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\MSBuild\Microsoft\VisualStudio\v15.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.BuildTasks.dll"

Related

Build error with new UE5.1 project in Rider

I am just getting started with C++ in UE5.1. I am using Rider 2022.3.1
Upon trying to build the project in Rider, I get the following error:
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.MakeFile.Targets(44,5): error MSB3073: The command "D:\UE_5.1\Engine\Build\BatchFiles\Build.bat R2NAlaskaEditor Win64 Development -Project="C:\Users\..........R2NAlaska.uproject" -WaitMutex -FromMsBuild" exited with code 6. [C:\Users.....\R2NAlaska\Intermediate\ProjectFiles\R2NAlaska.vcxproj]
I've tried nuking the intermediate and VS folders and rebuilding the solution with no effect.
Here is the full build log:
Build started 1/28/2023 9:09:02 AM.
Logging verbosity is set to: Normal.Project "C:\Users\javor\Desktop\R2NAlaska\R2NAlaska.sln" on node 1 (Games\R2NAlaska target(s)).
ValidateSolutionConfiguration:
Building solution configuration "Development Editor|Win64".
ValidateProjects:
The project "UE5" is not selected for building in solution configuration "Development Editor|Win64".
Project "C:\Users\javor\Desktop\R2NAlaska\R2NAlaska.sln" (1) is building "C:\Users\javor\Desktop\R2NAlaska\Intermediate\ProjectFiles\R2NAlaska.vcxproj" (2) on node 1 (default targets).
Build:
D:\UE_5.1\Engine\Build\BatchFiles\Build.bat R2NAlaskaEditor Win64 Development -Project="C:\Users\javor\Desktop\R2NAlaska\R2NAlaska.uproject" -WaitMutex -FromMsBuild
Running UnrealBuildTool: dotnet "..\..\Engine\Binaries\DotNET\UnrealBuildTool\UnrealBuildTool.dll" R2NAlaskaEditor Win64 Development -Project="C:\Users\javor\Desktop\R2NAlaska\R2NAlaska.uproject" -WaitMutex -FromMsBuild
Log file: C:\Users\javor\AppData\Local\UnrealBuildTool\Log.txt
Unable to build while Live Coding is active. Exit the editor and game, or press Ctrl+Alt+F11 if iterating on code in the editor or game
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.MakeFile.Targets(44,5): error MSB3073: The command "D:\UE_5.1\Engine\Build\BatchFiles\Build.bat R2NAlaskaEditor Win64 Development -Project="C:\Users\javor\Desktop\R2NAlaska\R2NAlaska.uproject" -WaitMutex -FromMsBuild" exited with code 6. [C:\Users\javor\Desktop\R2NAlaska\Intermediate\ProjectFiles\R2NAlaska.vcxproj]
Done Building Project "C:\Users\javor\Desktop\R2NAlaska\Intermediate\ProjectFiles\R2NAlaska.vcxproj" (default targets) -- FAILED.
Done Building Project "C:\Users\javor\Desktop\R2NAlaska\R2NAlaska.sln" (Games\R2NAlaska target(s)) -- FAILED.
Build FAILED.
"C:\Users\javor\Desktop\R2NAlaska\R2NAlaska.sln" (Games\R2NAlaska target) (1) ->
"C:\Users\javor\Desktop\R2NAlaska\Intermediate\ProjectFiles\R2NAlaska.vcxproj" (default target) (2) ->
(Build target) ->
C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.MakeFile.Targets(44,5): error MSB3073: The command "D:\UE_5.1\Engine\Build\BatchFiles\Build.bat R2NAlaskaEditor Win64 Development -Project="C:\Users\javor\Desktop\R2NAlaska\R2NAlaska.uproject" -WaitMutex -FromMsBuild" exited with code 6. [C:\Users\javor\Desktop\R2NAlaska\Intermediate\ProjectFiles\R2NAlaska.vcxproj]
0 Warning(s)
1 Error(s)
Note that is warns about Live Coding and exiting the engine, but the engine was not running during these builds.

I cannot debut a project in Code Blocks step by step

I'm trying to debut my code step by step, but I don't know why it doesn't work.
The breakpoint is set but it seems to ignore it (doesn't appear the yellow arrow).
Building to ensure sources are up-to-date
Selecting target:
Debug
Adding source dir: C:\CodeBlocks\ArvoresBinarias2908\
Adding source dir: C:\CodeBlocks\ArvoresBinarias2908\
Adding file: C:\CodeBlocks\ArvoresBinarias2908\bin\Debug\ArvoresBinarias2908.exe
Changing directory to: C:/CodeBlocks/ArvoresBinarias2908/.
Set variable: PATH=.;C:\Program Files (x86)\CodeBlocks\MinGW\bin;C:\Program Files (x86)\CodeBlocks\MinGW;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Windows\System32;C:\Windows;C:\Windows\System32\wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\Microsoft SQL Server\90\Tools\Binn;C:\Program Files (x86)\Skype\Phone;C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\110\Tools\Binn;C:\Program Files (x86)\Microsoft SQL Server\120\Tools\Binn;C:\Program Files\Microsoft SQL Server\120\Tools\Binn;C:\Program Files\Microsoft SQL Server\120\DTS\Binn;C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit;C:\Program Files (x86)\Interactive Intelligence\ININ Trace Initialization;C:\Program Files (x86)\Interactive Intelligence\ICUserApps;C:\Program Files\Interactive Intelligence\ICUserApps
Starting debugger: C:\Program Files (x86)\CodeBlocks\MINGW\bin\gdb.exe -nx -fullname -quiet -args C:/CodeBlocks/ArvoresBinarias2908/bin/Debug/ArvoresBinarias2908.exe
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger name and version: GNU gdb (GDB) 7.5
Child process PID: 11644
[Inferior 1 (process 11644) exited normally]
Debugger finished with status 0
Can someone please help me? I've already tried somethings that I found online, but no success:
Tried with another code... no success.
Moved the project to a folder with no spaces
Checked true the "Produce debugging symbols" [-g]
Disabled the "Enable all common compiler warning..."
I really don't understand that much about Debuggers, Compilers... I just want to debug thsi code to see the variable changes and other stuff.
Thanks!
ps. This is my first question here, so sorry if I didn't follow all the rules and standards that everybody here is used to.

C# unit test results in SonarQube 5.6

Environment : SonarQube 5.6 - SonarQube Runner 2.4 - MSBuild.SonarQube.Runner-2.0 - TFS 2015 - C#6
I've a Visual Studio 2015 solution with C# 6 projects and unit tests. On my TFS 2015 server, I define a build (task-based, not xaml). On my build, I've added the following steps :
- SonarQube for MSBuild - Begin Analysis.
- Visual Studio Test
- SonarQube for MSBuild - End Analysis.
Everything run fine (build, unit tests execution, code coverage, analysis results based on SonarLint, ... except that I don't see the tests results in the Sonar report (code coverage is there !).
I've tried to add some parameters :
- begin analysis : I've added : /d:sonar.cs.vstest.reportsPaths=../TestResults/*.trx
- vstests console : /Logger:trx
In the end analysis logs, I see this :
Attempting to locate a test results (.trx) file...
Located a test results file: E:\agent_work\3\TestResults\tests_results_2016-06-23 14_07_22.trx
Sensor org.sonar.plugins.csharp.CSharpUnitTestResultsProvider$CSharpUnitTestResultsImportSensor
Sensor org.sonar.plugins.csharp.CSharpUnitTestResultsProvider$CSharpUnitTestResultsImportSensor (done) | time=0ms
Any idea why I see always Unit tests=0 in the Sonar report ?
You need to provide full path to the .trx file. With below changes in begin analysis and try it again.
Change
/d:sonar.cs.vstest.reportsPaths=../TestResults/*.trx
To
/d:sonar.cs.vstest.reportsPaths=../TestResults/Mytest.trx

v8.5 - Error Compiling Parallel Transformer

I would appreciate if i can get some help in solving this issue for which i have been looking for information for over 2 days through various forums. Crying or Very sad Crying or Very sad
I have installed Infosphere Datastage v8.5 on windows environment for testing and have run a couple of jobs, but when i run a job containing a transformer i get compilation error.
Job: Row generator -> Tfx -> Sequential File
Based on my search through various forums i find that Similar issue has been faced by others as well.But i am unable to find a concrete answer regarding the following:
1. A Compiler that i need to install and the related SDK that needs to be installed along with it
2. or A combined pack that has both compiler+SDK
The Installation Guide talks about Microsoft Visual Studio .NET 2008 Express Edition C++: but does not mention which is the associated SDK that needs to be installed ?
or is there a newer version of C++ compiler+SDK that will work on my environment
My Environment Details:
OS - Windows Server 2008 R2(Standard) SP1 - 64 bit
IIS - Infosphere Information Server v8.5 64bit Multilingual
--================
.Net framework
--================
Microsoft .Net framework 1.1
Microsoft .Net framework 4 Client Profile
Microsoft .Net framework 4 Extended
--=====
SDK
--=====
Microsoft Windows SDK for Windows 7 and .NET Framework 3.5 SP1
This SDK created 2 directories path , which are as follows:
C:\Program Files\Microsoft SDKs
C:\Program Files (x86)\Microsoft Visual Studio 9.0
Windows Environment Variables:
INCLUDE - C:\IBM\SQLLIB\INCLUDE;C:\IBM\SQLLIB\LIB;C:\Program Files\Microsoft SDKs\Windows\v7.0\Include
LIB - C:\Program Files\Microsoft SDKs\Windows\v7.0\Lib;C:\IBM\SQLLIB\LIB
CLASSPATH - .;C:\IBM\SQLLIB\java\db2java.zip;C:\IBM\SQLLIB\java\db2jcc.jar;C:\IBM\SQLLIB\java\sqlj.zip;
C:\IBM\SQLLIB\java\db2jcc_license_cu.jar;C:\IBM\SQLLIB\bin;C:\IBM\SQLLIB\java\common.jar
Path - C:\IBM\InformationServer\Server\DSComponents\bin;C:\Program Files (x86)\MKS Toolkit\mksnt;C:\PROGRA~2\MKSTOO~1\bin64;C:\PROGRA~2\MKSTOO~1\bin;
C:\PROGRA~2\MKSTOO~1\bin\X11;C:\PROGRA~2\MKSTOO~1\mksnt;C:\IBM\InformationServer\ASBNode\apps\jre\bin\classic;C:\IBM\InformationServer\ASBNode\lib\cpp;
C:\IBM\InformationServer\ASBNode\apps\proxy\cpp\vc60\MT_dll\bin;%systemroot%\system32;%systemroot%;
%systemroot%\system32\wbem;%systemroot%\system32\windowspowershell\v1.0\;c:\program files (x86)\microsoft visual studio 9.0\vc\bin;
c:\program files (x86)\microsoft visual studio 9.0\common7\ide;c:\program files\ibm\gsk8\lib64;C:\IBM\SQLLIB\BIN;C:\IBM\SQLLIB\FUNCTION;
C:\IBM\SQLLIB\SAMPLES\REPL;C:\Windows/SysWOW64
Compiler information from windows command prompt:
c:\Users\skh>cl.exe
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.01 for 80x86
Copyright (C) Microsoft Corporation. All rights reserved.
usage: cl [ option... ] filename... [ /link linkoption... ]
Datastage Environment Variables:
APT_COMPILEOPT (old): -W/TP -W/EHa -DAPT_USE_ANSI_IOSTREAMS -c -W/Zc:wchar_t-
APT_COMPILEOPT (new): -W/TP -W/EHa -DAPT_USE_ANSI_IOSTREAMS -c
APT_LINKOPT(old): -s -W/dll -W/base:0x50000000 -W/Zc:wchar_t-
APT_LINKOPT(new): -s -W/dll -W/base:0x50000000
The (old) represent the default values that DS Environment variables had. I ran my job which had a transformer but i got the compilation error.
I changed the Environment variable values to what is stated in (new), still i get the compilation error mentioned below
Output from transformer compilation follows:
I IIS-DSEE-TFCN-00001 12:55:36(000)
IBM WebSphere DataStage Enterprise Edition 8.5.0.5746
Copyright (c) 2001, 2005-2008 IBM Corporation. All rights reserved
##I IIS-DSEE-TFCN-00006 12:55:36(001) <main_program> conductor uname: -s=Windows_NT; -r=1; -v=6; -n=IN-MUM-IBMQLT; -m=Pentium
##I IIS-DSEE-TOSH-00002 12:55:36(002) <main_program> orchgeneral: loaded
##I IIS-DSEE-TOSH-00002 12:55:36(003) <main_program> orchsort: loaded
##I IIS-DSEE-TOSH-00002 12:55:36(004) <main_program> orchstats: loaded
##W IIS-DSEE-TOSH-00049 12:55:36(007) <main_program> Parameter specified but not used in flow: DSPXWorkingDir
##E IIS-DSEE-TBLD-00076 12:55:39(000) <main_program> Error when checking composite operator: Subprocess command failed with exit status 256.
##E IIS-DSEE-TFSR-00019 12:55:39(001) <main_program> Could not check all operators because of previous error(s)
##W IIS-DSEE-TFTM-00012 12:55:39(002) <transform> Error when checking composite operator: The number of reject datasets "0" is less than the number of input datasets "1".
##I IIS-DSEE-TBLD-00000 12:55:39(003) <main_program> Error when checking composite operator: Output from subprocess: cl : Command line warning D9035 : option 'GX' has been deprecated and will be removed in a future release
cl : Command line warning D9036 : use 'EHsc' instead of 'GX'
cl : Command line warning D9025 : overriding '/GX' with '/EHa'
##I IIS-DSEE-TBLD-00000 12:55:39(004) <main_program> Error when checking composite operator: Output from subprocess: C:\IBM\InformationServer\Server\PXEngine\include\apt_util/ints.h(83) : fatal error C1083: Cannot open include file: 'strstream': No such file or directory
##W IIS-DSEE-TFEV-00025 12:55:39(005) <transform> Error when checking composite operator: Converting string to number.
##W IIS-DSEE-TFEV-00023 12:55:39(006) <transform> Error when checking composite operator: Implicit conversion from source type "String" to result type "DFloat".
##W IIS-DSEE-TFEV-00025 12:55:39(007) <transform> Error when checking composite operator: Converting number to string.
##W IIS-DSEE-TFEV-00023 12:55:39(008) <transform> Error when checking composite operator: Implicit conversion from source type "DFloat" to result type "String".
##W IIS-DSEE-TBLD-00000 12:55:39(009) <main_program> Error when checking composite operator: Output from subprocess: ld: script execution error in file 'C:/PROGRA~2/MKSTOO~1/etc/nutccg/ld.ccg' on line 1119
>>> execv: could not run 'link32': The system cannot find the file specified.
##I IIS-DSEE-TBLD-00079 12:55:39(010) <transform> Error when checking composite operator: cxx -LC:/IBM/InformationServer/Server/Projects/PRJ_QSPOC/RT_BP2.O/ -LC:/IBM/InformationServer/Server/PXEngine/lib -LC:/IBM/InformationServer/Server/PXEngine/user_lib -s -W/dll -W/base:0x50000000 -lliborchnt -lliborchcorent -lliborchbuildopnt C:/IBM/InformationServer/Server/Projects/PRJ_QSPOC/RT_BP2.O/V0S3_TestJob_Tfx_Transformer.tmp.o -o C:/IBM/InformationServer/Server/Projects/PRJ_QSPOC/RT_BP2.O/V0S3_TestJob_Tfx_Transformer.dll.
##E IIS-DSEE-TCOS-00029 12:55:39(011) <main_program> Creation of a step finished with status = FAILED. (TestJob_Tfx.Transformer)
*** Internal Generated Transformer Code follows:
0001: //
0002: // Generated file to implement the V0S3_TestJob_Tfx_Transformer transform operator.
0003: //
0004:
0005: // define our input/output link names
0006: inputname 0 DSLink2;
0007: outputname 0 DSLink5;
0008:
0009: initialize {
0010: // define our control variables
0011: int8 RowRejected0;
0012: int8 NullSetVar0;
0013:
0014: }
0015:
0016: mainloop {
0017:
0018: // declare our intermediate variables for this section
0019: dfloat InterVar0_0;
0020:
0021: // initialise the rejected row variable
0022: RowRejected0 = 1;
0023:
0024: // evaluate columns (no constraints) for link: DSLink5
0025: InterVar0_0 = DSLink2.Dummy1;
0026: DSLink5.Dummy1 = (InterVar0_0 + 5);
0027: writerecord 0;
0028: RowRejected0 = 0;
0029: }
0030:
0031: finish {
0032: }
0033:
*** End of Internal Generated Transformer Code
This is how i went about fixing it. I hope this helps people facing similar problems and saves some time and effort.
so , here it goes :
I installed Visual Studio C++ 2008 Express Edition.
I then worked around vcvarsall.bat file .if you are wondering why , please check
(
http://msdn.microsoft.com/en-us/library/x4d2c09s(v=vs.80).aspx )
and
Errors while building/installing C module for Python 2.7
)
I executed the following from the cmd window, to set the 64 bit compiler:
vcvarsall.bat amd64
NOTE: my environment has a X64 AMD chipset windows server;I used echo %PROCESSOR_ARCHITECTURE% , from cmd window to determine this.
To cross check which compiler is set, execute the following and the output would indicate.
cl.exe
Next , set the following windows system variables:
INCLUDE - C:\IBM\SQLLIB\INCLUDE;C:\IBM\SQLLIB\LIB; C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include
LIB - C:\Program Files\Microsoft SDKs\Windows\v6.0A\Lib ;C:\IBM\SQLLIB\LIB
Note:-
The folder path C:\Program Files\Microsoft SDKs\Windows\v6.0A is created by the Visual Studio C++ 2008 Express Edition. This should be the source for folder paths that are set for INCLUDE & LIB
There is a similar path that the SDK creates C:\Program Files\Microsoft SDKs\Windows\v7.0\ , but Include and Lib folder from this path should not be used to set the above mentioned Windows Environment variables , I made this mistake during my set up :(
for reference please check the Release Note of the SDK that is to be installed.
Set the following Datastage ENV variable,from the Administrator, to values below.
APT_COMPILEOPT : -W/TP -W/EHa -DAPT_USE_ANSI_IOSTREAMS -c -W/Zc:wchar_t-
APT_LINKOPT : -s -W/dll -W/base:0x50000000 -W/Zc:wchar_t-
I then restarted the Datastage services.
.. and the transformers started to work :)
PS : I did not uninstall Information Server nor the SDK (which i initially presumed was the problem)

Visual Studio 2012 build hangs

As recently as the last few days, a project I'm working on in MSVS2012 has begun hanging on build. I've taken steps trying to log what VS is doing as in the following link : How to Troubleshoot Visual Studio 2012 Hangs/Lockups but have not been able to find any "errors" or anything that "fails" to load. The build will finish, but it now takes several minutes as opposed to a few seconds. Anytime I attempt to cancel the build, I get a generic message about how the system is waiting on "GenerateDeps" to finish.
C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\BuildCustomizations\CUDA 6.0.targets(402,9): warning MSB4220: Waiting for the currently executing task "GenerateDeps" to cancel.
EDIT
Here's some additional verbose/diagnostic output. This seems to be where VS is lagging...
Input file "GPU RKF45 (Variable Step Size).cu" is newer than output file "x64\Debug\GPU RKF45 (Variable Step Size).cu.deps".
1>Using "GenerateDeps" task from assembly "C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\BuildCustomizations\Nvda.Build.CudaTasks.v6.0.dll".
1>Task "GenerateDeps" (TaskId:23)
1> Task Parameter:
1> AdditionalIncludeDirs=
1> C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.0\include
1> C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.0\bin
1> C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v6.0\include
1> . (TaskId:23)
1> Task Parameter:ForcedIncludeFiles=cuda_runtime.h (TaskId:23)
1> Task Parameter:
1> PreprocessorDefinitions=
1> __CUDACC__
1> _MBCS (TaskId:23)
1> Task Parameter:SourceFile=C:\Users\Karsten Chu\New Google Drive\Research\Visual Studio 2012\Projects\Dynamic Parallelism Test\Dynamic Parallelism Test\GPU RKF45 (Variable Step Size).cu (TaskId:23)
1> Command: (TaskId:23)
1> The "GenerateDeps" task is using "cl.exe" from "C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\bin\x86_amd64\cl.exe". (TaskId:23)
I have had problems with hanging builds in VS some long time ago and I traced back the root cause to be always resource related. Such as a slow processor (yes, it matters when you compile!), or not enough memory. The only solution that worked for me was always a full rebuild (clean) and leave the computer alone while it builds. This might or might not help you, if you share more information someone might have a deeper insight.
I have frequently been able to recover Visual Studio 2012 from hanging when a build fails with the message "Waiting for the currently executing task "CL" to cancel." by ending all of the "cl" processes. For example, open up the Windows task manager and find all the processes named "cl.exe" (which is the MSVC compiler) and end process on them. Visual Studio resumes operation shortly thereafter.
If there are additional/custom build tasks, there may be other processes running. For example, if a custom build event launches an executable, that executable process may need to be killed as well.
I found vc12 build will appear to hang if you make an error in project properties such that an output folder is invalid.
eg want to set OutputDirectory to something but due a typo when editing the property it resolves to an invalid path.
Instead of giving an invalid path error the build appears to hang.
I say appears to hang because what actually happens is does nothing for a long time during which you cannot cancel the build of exit DevStudio.
Eventually (several minutes) it gives an error but that time is so long it looks like a hang.
I had to replace cl.exe /E option to /P within Nvda.Build.CudaTasks.vX.Y.dll files to evade the problem. There wasn't the problem few days ago so I'm not sure at all why the problem has surfaced.