相关疑难解决方法(0)

VS2017将NetCoreApp编译为EXE

我在Visual Studio 2017中创建了一个NetCoreApp(v1.1).当我编译它时,我得到一个DLL,而不是生成的项目的预期EXE.我确实检查了csproj文件并确认输出类型设置为exe,但没有骰子.

任何想法为什么VS2017仍在生成DLL?我确定它在某个地方快速设置,我忘记了...它也是凌晨1点.:)

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFramework>netcoreapp1.1</TargetFramework>
  </PropertyGroup>

  <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
    <PlatformTarget>AnyCPU</PlatformTarget>
  </PropertyGroup>

  <ItemGroup>
    <ProjectReference Include="..\Core.EF.SqlServer\Core.EF.SqlServer.csproj" />
  </ItemGroup>

</Project>
Run Code Online (Sandbox Code Playgroud)

.net-core visual-studio-2017

63
推荐指数
3
解决办法
2万
查看次数

标签 统计

.net-core ×1

visual-studio-2017 ×1