【发布时间】:2016-12-20 20:20:31
【问题描述】:
最近,我安装了带有 .NET Core Preview 4 SDK 的 VS 2017 RC。
在新的SDK中,没有project.json,只有csproj文件:
<PropertyGroup>
<OutputType>winexe</OutputType>
<TargetFramework>netcoreapp1.0</TargetFramework>
<PreserveCompilationContext>true</PreserveCompilationContext>
</PropertyGroup
问题是现在dotnet publish 输出dll,而不是exe 文件。
我尝试运行dotnet publish -r win10-x64,但它甚至无法编译。
如何在 dotnet 1.1 Preview 中制作独立的应用程序?
也许我应该在 csproj 中指定 runtime 部分(就像在 json 中一样)?
【问题讨论】: