What path / environment variables are used in the post-build steps?

I am trying to complete the next post build step in a VS2008 project:

sn.exe **some arguments**

And keep getting the error

'sn.exe' is not recognized as an internal or external command, operating program, or batch file.

What path / environment variables are used in the post-build steps? I suggested that this is equivalent to the environment created by the visual studio command console, however, apparently this is not the case.

What would be the best way to make sure that I can use common build tools (like sn.exe)

+3
source share
2 answers

Specify the full path to sn.exe in the command.

eg, c:\winsdk\bin\sn.exe

, SDK Windows c:\winsdk. SDK Windows ,

"c:\Program Files\Microsoft SDKs\Windows\v6.1\Bin\sn.exe"

, / .

junction.exe, c:\winsdk, "c:\Program Files\Microsoft SDKs\Windows\v6.1", .

+1

vcvarsall.bat .

+1

Source: https://habr.com/ru/post/1729231/


All Articles