如何找到应用程序的.NET框架?应用程序、框架、NET

2023-09-05 01:35:00 作者:斷橋殘影

我工作的扫描仪类型的应用程序而采取不同的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 这里打开和分析项目文件。

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

 
精彩推荐
图片推荐