concept target framework in category asp.net
appears as: target framework, target framework

This is an excerpt from Manning's book ASP.NET Core in Action.
Listing 2.1. The csproj project file, showing SDK, target framework, and references
<Project Sdk="Microsoft.NET.Sdk.Web"> #1 <PropertyGroup> <TargetFramework>netcoreapp2.0</TargetFramework> #2 </PropertyGroup> <ItemGroup> <PackageReference Include="Microsoft.AspNetCore.All" #3 Version="2.0.0" /> #3 </ItemGroup> <ItemGroup> <DotNetCliToolReference Version="2.0.0" #4 Include="Microsoft.VisualStudio.Web.CodeGeneration.Tools" /> #4 </ItemGroup> </Project> #1 The SDK attribute specifies the type of project you’re building. #2 The TargetFramework is the framework you’ll run on, in this case, .NET Core 2.0. #3 You reference NuGet packages with the PackageReference element. #4 Additional tools used by Visual Studio to generate controllers and views at design time !@%STYLE%@! {"css":"{\"css\": \"font-weight: bold;\"}","target":"[[{\"line\":0,\"ch\":70},{\"line\":0,\"ch\":72}],[{\"line\":18,\"ch\":0},{\"line\":18,\"ch\":2}],[{\"line\":3,\"ch\":70},{\"line\":3,\"ch\":72}],[{\"line\":19,\"ch\":0},{\"line\":19,\"ch\":2}],[{\"line\":7,\"ch\":70},{\"line\":7,\"ch\":72}],[{\"line\":8,\"ch\":70},{\"line\":8,\"ch\":72}],[{\"line\":20,\"ch\":0},{\"line\":20,\"ch\":2}],[{\"line\":7,\"ch\":70},{\"line\":7,\"ch\":72}],[{\"line\":8,\"ch\":70},{\"line\":8,\"ch\":72}],[{\"line\":20,\"ch\":0},{\"line\":20,\"ch\":2}],[{\"line\":12,\"ch\":70},{\"line\":12,\"ch\":72}],[{\"line\":13,\"ch\":70},{\"line\":13,\"ch\":72}],[{\"line\":21,\"ch\":0},{\"line\":21,\"ch\":2}],[{\"line\":12,\"ch\":70},{\"line\":12,\"ch\":72}],[{\"line\":13,\"ch\":70},{\"line\":13,\"ch\":72}],[{\"line\":21,\"ch\":0},{\"line\":21,\"ch\":2}]]"} !@%STYLE%@!
Finally, I provide some guidance on how to choose a target framework for your applications and libraries. With so many different target frameworks to choose from—.NET Core, the .NET Framework, .NET Standard—it can be hard to understand what the pros and cons are. In section A.3, I provide some best practices that I stick to that ensure the greatest code reuse for my libraries and avoid incompatibilities between libraries.