开发者

Getting Visual Studio Environment Variable Programmatically?

Is it possible to get this variables programmatically?

http://msdn.microsoft.com/en-us/library/c02as0cs(VS.90).aspx

so inline with my question here I need to get the actual value of these variables programmatically outside of visual studio. Can I use "GetEnvironmentVariable(String, EnvironmentVariableTarget)" for this?or any other suggestions

getting the value of $(ProjectDir), $(SolutionDir) 开发者_开发技巧in a vcproj file


They are not environment variables. Macros is the name used in the MSDN literature. Maybe that makes sense if you realize that a solution can contain more than one project. $(ProjectDir) constantly changes as the build progresses. You already know their values, $(ProjectDir) is the directory where you found the .vcproj file, $(SolutionDir) is the directory where you found the .sln file. (This sounds familiar).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜