Visual Studio 2017 Environment Variables Not Working

  • Thread starter Thread starter ThePieMonster
  • Start date Start date
T

ThePieMonster

Guest
I am trying to follow the Developing a Custom Rewrite Provider for URL Rewrite Module Microsoft article and I am getting stuck on step 9.

*Step 9*
q0glq.png


I have tried a few different solutions to get these environment variables to work but I have not had any success. I am using VS 2017 Community Edition. It seems like none of the environment variables for VS are working at all.

I have also tried running VsDevCmd.bat which supposedly updates your development variables on your machine but that has not had any effect even with a reboot tossed in.
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsDevCmd.bat"

Note: vsvars32.bat supposedly does not exist in VS 2017. I have located vcvars.bat on my system at the following path "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\vsdevcmd\ext\vcvars.bat" which it seems like you should use instead.

*My Post-build event command line:*

CALL "%VSAPPIDDIR%..\Tools\vsdevcmd\ext\vcvars.bat" > NULL
gacutil.exe /if "$(TargetPath)"

*Error from VS*

> Error MSB3073 The command "CALL
> "%VSAPPIDDIR%..\Tools\vsdevcmd\ext\vcvars.bat" > NULL
>
> gacutil.exe /if
> "C:\GIT\IIS-URL-Rewrite-ServerNameProvider\IIS-URL-Rewrite-ServerNameProvider\bin\Debug\netstandard2.0\IIS-URL-Rewrite-ServerNameProvider.dll""
> exited with code
> 9009. IIS-URL-Rewrite-ServerNameProvider C:\GIT\IIS-URL-Rewrite-ServerNameProvider\IIS-URL-Rewrite-ServerNameProvider\IIS-URL-Rewrite-ServerNameProvider.csproj 18


V2KDp.png

Continue reading...
 
Back
Top