1、新建netcore或netstandard或net4.6.1项目2、编辑项目文件:<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFrameworks>net4.6.1;net4.6.2;netstandard2.0;netcoreapp2.0</TargetFrameworks> </PropertyGroup></Project>