AppDomainSetup.TargetFrameworkName Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets (or, in .NET Framework, sets) a string that specifies the target framework in a format that can be parsed by the FrameworkName(String) constructor.
public:
property System::String ^ TargetFrameworkName { System::String ^ get(); };
public:
property System::String ^ TargetFrameworkName { System::String ^ get(); void set(System::String ^ value); };
public string? TargetFrameworkName { get; }
public string TargetFrameworkName { get; set; }
member this.TargetFrameworkName : string
member this.TargetFrameworkName : string with get, set
Public ReadOnly Property TargetFrameworkName As String
Public Property TargetFrameworkName As String
Property Value
The target framework of the executable that started the process.
Remarks
Set this property to tell the currently running version of the .NET Framework that the application domain will be used to load and run assemblies that have been compiled for the target version and profile. If the currently running version of the .NET Framework has optional behaviors that affect the compatibility of code that was compiled with the target version, it can enable or disable those behaviors, as appropriate, to improve compatibility. This can be useful when an application supports add-ins compiled with multiple versions of the .NET Framework by running them in separate application domains.
For client applications, the value of the TargetFrameworkName property is inferred from the TargetFrameworkAttribute attribute. In Visual Studio 2010 and later, this attribute is added to the assembly automatically based on the setting of the project's Target Framework property.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기