前言
参考
https://www.cnblogs.com/puzi0315/p/12190989.html
步骤
修改Project.Sdk
添加OutputType
<Project Sdk="Microsoft.NET.Sdk.Web"> <PropertyGroup> <TargetFramework>netcoreapp3.1</TargetFramework> <OutputType>Library</OutputType> </PropertyGroup> </Project>
Git对比