Skip to content

Latest commit

 

History

History
27 lines (16 loc) · 1.34 KB

missing-target-framework-moniker-results-40-behavior.md

File metadata and controls

27 lines (16 loc) · 1.34 KB

Missing Target Framework Moniker results in 4.0 behavior

Details

Applications without a xref:System.Runtime.Versioning.TargetFrameworkAttribute?displayProperty=fullName applied at the assembly level will automatically run using the semantics (quirks) of the .NET Framework 4.0. To ensure high quality, it is recommended that all binaries be explicitly attributed with a xref:System.Runtime.Versioning.TargetFrameworkAttribute?displayProperty=fullName indicating the version of the .NET Framework they were built with. Note that using a target framework moniker in a project file will cause MSBuild to automatically apply a xref:System.Runtime.Versioning.TargetFrameworkAttribute?displayProperty=fullName.

Suggestion

A xref:System.Runtime.Versioning.TargetFrameworkAttribute?displayProperty=fullName should be supplied, either through adding the attribute directly to the assembly or by specifying a target framework in the project file or through Visual Studio's project properties GUI.

Name Value
Scope Major
Version 4.5
Type Runtime

Affected APIs

Not detectable via API analysis.