路径的MSBuild [英] Path to MSBuild
本文介绍了路径的MSBuild的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何编程获取路径的MSBuild从那里我的.exe文件运行的机器?
How can I programatically get the path to MSBuild from a machine where my .exe is running?
我可以从环境中的.NET版本,但没有得到正确的文件夹中的.NET版本的方法吗?
I can get the .NET version from the Environment but is there a way of getting the correct folder for a .NET version?
推荐答案
各地注册表戳,它看起来像
Poking around the registry, it looks like
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\2.0
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\3.5
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSBuild\ToolsVersions\4.0
可能是你以后有什么;火起来REGEDIT.EXE看看吧。
may be what you're after; fire up regedit.exe and have a look.
这篇关于路径的MSBuild的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文