I got this error while trying to build my project on a buildAgent running as a service, does anyone have a solution for it?
TRACKER : error TRK0002: Failed to execute command: ""C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\CL.exe" @C:\BuildAgent\temp\buildTmp\tmpfde187c5fd8a42299ab4d18e25e0c9fe.rsp". The operation identifier is not valid.
i tried a solution to a similar issue when building the project in command line (using "_IsNativeEnvironment" variable ) but it didn't work for me, also i need the solution to work on my local computer permanently.
This error will happen with multiple tools when launching MSBuild from the command line:
adding them to the exclusion list of the active antivirus can fix some of the issues, but will not be enough with a modern antivirus.
An alternative is to deactivate Tracker.exe which is a tool that enable incremental builds. As it's not something you generally want on a build server, I found it safe to deactivate.
You can deactivate it by passing this parameter to msbuild: /p:TrackFileAccess=false
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With