Easily supporting multiple target frameworks (TFMs) with VS2017 and Nuget

Wednesday, April 5, 2017

In VS2017 it much easier now to support multiple frameworks inside a single .csproj file. When you create a new project VS2017 (that target .NET Core or .NET Standard) this is what you'll get inside your *.csproj <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>netstandard1.4</TargetFramework> </PropertyGroup> </Project> Cool right? A lot of the boilerplate configuration was removed in order to make the MSBuild format clean and readable. By default, all the files inside your project folder will be added. If you want to make adjustment you can always add (or remove some of the files). For example, this is how it will look if...