I want to run a utility (mt.exe) as a post-build step in a C# project. There is an environment variable/macro defined as DevEnvDir accessed by $(DevEnvDir). However, mt.exe is an SDK tool and not in the Visual Studio executable tree. Visual C++ projects have the WindowsSdkDir variable accessible by $(WindowsSdkDir). Ideally, I would want to have in my C# post build project a line that starts something like:
$(WindowsSdkDir)bin\x86\mt.exe .....
Is there anyway to add the WindowsSdkDir environment variable/macro to my C# environment?
I realize I could hard code the path, but I want something I can share between machines and developers.