microsoft / vcpkg

C++ Library Manager for Windows, Linux, and MacOS
MIT License
22.81k stars 6.3k forks source link

Random build errors: Powershell.exe #4100

Closed liuliushimonkey closed 6 years ago

liuliushimonkey commented 6 years ago

Hello, I have a very strange errors with this pattern : every time after change the project and then recompile, it will show this build error below. And then if I retry a couple times, it works. But next time(every time) that I made a change and then try to recompile, I have this message again. I compile a couple time, it then reworks, so on... Can you please help? I tried to close my antivirus software, changed nothing. Thanks!

Severity Code Description Project File Line Suppression State Error MSB3075 The command "C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe -ExecutionPolicy Bypass -noprofile -File "C:\DevLiu\C++\Vcpkg\vcpkg-master\vcpkg-master\scripts\buildsystems\msbuild\applocal.ps1" "C:\DevLiu\C++\TestConsoleCPlusPlus\Debug\TestConsoleCPlusPlus.exe" "C:\DevLiu\C++\Vcpkg\vcpkg-master\vcpkg-master\installed\x86-windows\debug\bin" "Debug\TestCons.33315C83.tlog\TestConsoleCPlusPlus.write.1u.tlog" "Debug\vcpkg.applocal.log"" exited with code 5. Please verify that you have sufficient rights to run this command. TestConsoleCPlusPlus C:\DevLiu\C++\Vcpkg\vcpkg-master\vcpkg-master\scripts\buildsystems\msbuild\vcpkg.targets 85

liuliushimonkey commented 6 years ago

Here's the print screen of all the process running on my computer, thank you!

image

twaritwaikar commented 6 years ago

Did you try to run Powershell with administrator rights?

liuliushimonkey commented 6 years ago

Hello, It's related to my antivirus software. I have uninstalled it and now the problem is resolved. I dont know if anyone is having the same problem as me, but it would be nice to consider this point too in the further release. Thanks anyway.