如何找到应用程序的.NET框架? [英] How to find .net framework of application?

查看:127
本文介绍了如何找到应用程序的.NET框架?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我工作的扫描仪类型的应用程序而采取不同的C#codebases为input.I想知道在哪个.NET Framework版本(1.1 / 2.0 / 3.5 / 4.0),具体codeBase的构建。

I am working on scanner kind of application which takes different C# codebases as input.I want to know in which .net framework version(1.1/2.0/3.5/4.0) specific codebase is built.

任何人都可以向我提供code检查codebases .NET Framework版本?我可以从.csproj的文件中读取codeBase的版本?如果有,请提供code代表相同的。

Can anybody provide me code to check .net framework version of codebases? can i read codebase version from .csproj file ? If yes, please provide code for same.

谢谢

蒂娜。

推荐答案

查找 TargetFrameworkVersion RequiredTargetFramework 属性在.csproj的文件:有code <一个href="http://social.msdn.microsoft.com/Forums/en-US/msbuild/thread/db705dcf-192c-490e-b34f-7d9546f91e4b/"相对=nofollow>这里打开和分析项目文件。

Look for the TargetFrameworkVersion and RequiredTargetFramework attributes in the .csproj file: there's code here to open and parse the project file.

这篇关于如何找到应用程序的.NET框架?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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