A hello world
C#
x64
application created in Visual Studio 2017
is executed successfully via Package Manager Console
(PMC
) everywhere else except %windir%\system32
location. The strange thing is that it is executed in Windows PowerShell
(not as admin
) but not from PMC
in Visual Studio 2017. I thought it was an issue of the execution policy, but it was not.
I changed the execution policy in PMC
to match the windows PowerShell
execution policy, but it didn't make any difference.
I also executed the command Set-Location $env:windir\system32
and then Get-Location
to confirm it, but it had no effect. Any ideas?
System: win7x64
Visual Studio 2017 15.6.0