且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

"目标框架"在Visual Studio中

更新时间:2022-02-09 08:18:27

它设置的.csproj文件的属性:

It sets an attribute in the .csproj file:

<TargetFrameworkVersion>v3.5</TargetFrameworkVersion>

和更新任何引用到的命名空间,如果他们需要新的版本:

and updates any references to namespaces if they require the newer version:

<Reference Include="System.Core">
  <RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>

这告诉编译器的命名空间的版本,因此dll的需要来链接。

This tells the compiler which version of the namespace and hence dll it needs to link against.