https://blog.csdn.net/sD7O95O/article/details/81295286
.net core 在vs中生成为dll文件
在vs中生成exe
在csproj文件下添加
<RuntimeIdentifier>win7-x64</RuntimeIdentifier>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>netcoreapp2.1</TargetFramework> <RuntimeIdentifier>win7-x64</RuntimeIdentifier> </PropertyGroup>
</Project>