Microsoft frameworks net
For example, win81 is an equivalent TFM to netcore For more information, see the following section,. The net5. NET 5 introduced the net5. Apps that are portable to multiple platforms should target a base TFM, for example, net5. This includes most libraries but also ASP. Platform-specific libraries should target platform-specific flavors. The version indicates which APIs are available to your app or library. It does not control the OS version that your app or library supports at run time. It's used to select the reference assemblies that your project compiles against, and to select assets from NuGet packages.
When an OS-specific TFM doesn't specify the platform version explicitly, it has an implied value that can be inferred from the base TFM and platform name. For example, the default platform value for iOS in. NET 6 is The implied platform version for a newer base TFM may be higher, for example, a future net7.
The shorthand form is intended for use in project files only, and is expanded to the canonical form by the. This enables you to access platform-specific functionality without waiting for a major release of.
For example, if the iOS platform added iOS NET 6. Although a platform-specific app or library is compiled against APIs from a specific version of that OS, you can make it compatible with earlier OS versions by adding the SupportedOSPlatformVersion property to your project file. If you don't explicitly specify this minimum run-time OS version in the project, it defaults to the platform version from the TFM.
However, you can add guards around calls to newer APIs so they are only called when running on a version of the OS that supports them. This pattern allows you to design your app or library to support running on older OS versions while taking advantage of newer OS functionality when running on newer OS versions. The SupportedOSPlatformVersion value whether explicit or default is used by the platform compatibility analyzer , which detects and warns about unguarded calls to newer APIs.
It's burned into the project's compiled assembly as an UnsupportedOSPlatformAttribute assembly attribute, so that the platform compatibility analyzer can detect unguarded calls to that assembly's APIs from projects with a lower SupportedOSPlatformVersion value. On some platforms, the SupportedOSPlatformVersion value affects platform-specific app packaging and build processes, which is covered in the documentation for those platforms. Target frameworks are specified in a project file.
When a single target framework is specified, use the TargetFramework element. The following console app project file demonstrates how to target. For more information about Microsoft. This version of the. NET Framework runs side-by-side with the. NET Framework 3. For more information about the various command-line options that are supported by this update, see the "Command-Line options" section in the.
You may have to restart the computer after you install this update. We recommend that you exit all applications that are using the. NET Framework before you install this update. Need more help? Expand your skills. Get new features first. Was this information helpful?
Yes No. Thank you! Any more feedback? The more you tell us the more we can help. Machine Learning Add vision algorithms, speech processing, predictive models, and more to your apps. Game Development Develop 2D and 3D games for the most popular desktops, phones, and consoles. Languages You can write your.
Learn about. NET languages. One Platform Your skills, code, and favorite libraries apply anywhere you use. NET can do with these free videos. Watch Now. Thank You to All the Contributors.
0コメント