![]() ![]() NET Framework versions 4.5 or higher, you can use the HttpClient class from the namespace. You also might need to add different packages and dependencies for each platform you're targeting to include the different APIs needed for each case.įor example, let's say you have a library that performs networking operations over HTTP. In this scenario, if you want to use newer APIs and language constructs for the newer targets, use #if directives in your code. NET Framework when your project supports both the. You may need to target older versions of the. Refer to the Prerequisites section to learn which dependencies you need to install and where to download them from. ![]() The following instructions assume you have the. NET Framework 4, you can use the library on newer versions of. NET Framework 4.0: Īnd that's it! Although this compiled only for. For example, here's how you would write a library that targets. You then insert this TFM into the TargetFramework section of your project file. NET Framework version you wish to support.NET Framework version NET Framework, begin by using the correct Target Framework Moniker (TFM) that corresponds to the. NET Framework 4.0 as your baseline target. ![]() If you want to reach the maximum number of developers and projects, use. NET Framework Support Lifecycle Policy FAQ about unsupported versions. NET Framework versions used here are no longer supported. Refer to the Prerequisites to get dependencies installed. NET Standard (for example, System.Drawing), read the following sections and learn how to multitarget. NET Framework versions 4.0 or below, or you wish to use an API available in. For guidance on how to choose between targeting. You control your project's target framework by adding it to your project file (. NET Framework 3.5 SP1 Runtime (or Windows 8+ version) Windows Software Development Kit for Windows 8 NET Framework targets, you need to install targeting packs or developer packs from the. NET Framework installed on a Windows machine.Īdditionally, if you wish to support older. NET SDK installed on your machine.įor the sections of this document dealing with. You can still build libraries with Visual Studio, and if that is your preferred experience refer to the Visual Studio guide. The CLI provides an efficient and low-level experience that works across any supported OS. This article covers how to write libraries for. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |