是否可以确定使用的msbuild版本? [英] Is it possible to determine msbuild version used?

查看:785
本文介绍了是否可以确定使用的msbuild版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





项目可以由不同版本的msbuild构建,例如



C:\ Windows \ Microsoftoft.NET\Framework\v4.0.30319\MSBuild.exe

C:\\ \\ windows\Microsoft.NET \Framework\v3.5 \ MSBuild.exe

C:\ Windows \ Microsoft.Net\Framework\v2.0.50727 \ MSBuild。 exe



有没有办法确定(例如通过反射?)来确定使用哪个版本的msbuild?



Tia,Liam



我尝试过:



搜索论坛

查看微软网站

当地询问

Hi,

Projects can be built by different versions of msbuild e.g.

C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe
C:\Windows\Microsoft.NET\Framework\v3.5\MSBuild.exe
C:\Windows\Microsoft.Net\Framework\v2.0.50727\MSBuild.exe

Is there any way to determine (e.g. through reflection?) to determine which version of msbuild was used?

Tia, Liam

What I have tried:

Searched the forums
Checked Microsoft site
Asked locally

推荐答案

无法确定哪个版本使用MSBuild。可执行文件中没有任何日子说明使用了哪个版本,并且其中没有任何特定于MSBuild的内容可用作痕迹的痕迹以确定它。



你不要甚至需要MSBuild来构建可执行文件。
There is no way to determine which version of MSBuild was used. There is no days in the executable that says which version was used and nothing in them specific to MSBuild to use as a trail of breadcrumbs to determine it either.

You dont even need MSBuild to build an executable.


这篇关于是否可以确定使用的msbuild版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆