A task of my Azure DevOps build fails to find my solution path when I change from "Hosted" Agent to "Hosted VS2017".
Does the folder organisation change from a agent to another ?
My C# solution used to run with .NET framework 4.6, and I reference now 4.7.1 version. That's why I need apparently to use "Hosted VS2017" agent instead of the default "Hosted" agent. But a task that uses a gulpfile fails when trying to build my solution. I tried to execute the build with diagnostics, but I got no more informations than "The system cannot find the path specified." in my first MSbuild command.
---
[command]C:\npm\prefix\gulp.cmd CI-default --gulpfile D:\a\1\s\source\back-end\gulpfile.js
[15:41:53] Using gulpfile D:\a\1\s\source\back-end\gulpfile.js
[15:41:53] Starting 'CI-default'...
[15:41:53] Starting 'Publish-All-Projects'...
[15:41:53] Starting 'Build-Solution'...
[15:41:53] Using automatic maxcpucount
The system cannot find the path specified.
[15:41:53] { Error: Command failed: "C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe" "D:\a\1\s\source\back-end\******.sln" "/target:Build" /verbosity:minimal /toolsversion:14.0 /nologo /maxcpucount /property:Configuration="Release"
The system cannot find the path specified.
at ChildProcess.exithandler (child_process.js:294:12)
at ChildProcess.emit (events.js:189:13)
at maybeClose (internal/child_process.js:970:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
killed: false,
code: 1,
signal: null,
cmd:
'"C:\\Program Files (x86)\\MSBuild\\14.0\\Bin\\MSBuild.exe" "D:\\a\\1\\s\\source\\back-end\\ALE.sln" "/target:Build" /verbosity:minimal /toolsversion:14.0 /nologo /maxcpucount /property:Configuration="Release"' }
---
The build fails at this steps but should execute properly (it does actually when I do it with the default "Hosted" agent or on my local machine with Visual Studio)