Closed daef closed 5 years ago
Can you get more detailed logs? Usually problems related to running as local system have to do with the location of the TEMP folder, and that's plausibly the case here, but there's not enough information to tell.
In the meantime I've found that not only setting env:TMP to point somewhere else solves my problem, but Microsoft/vcpkg explicitly clears environmental changes before calling msbuild which makes exactly this impossible.
Ok, if that's the case, I don't think there's much of anything MSBuild can do to help here--we can't control TEMP ourselves, and Windows has the bad behavior of putting it behind a wow32-redirected folder when running under local system.
Steps to reproduce
Expected behavior
Microsofts vcpkg.exe gets built
Actual behavior
Error MSB4018 stops the build
Environment data
I cross posted this issue to vcpkg since I don't know where the correct place to fix this resides: https://github.com/Microsoft/vcpkg/issues/5248