首页 > 解决方案 > How can I create an exe for .NET Core console applications?

问题描述

I need to get the exe file from a .NET Core console application, but I only get a DLL output.

标签: c#.net.net-core

解决方案


您可以创建运行以下命令的 exe,如果需要用于发布或调试目的,假设也是 64 位 Win10 操作系统,您可以执行以下操作:)

调试

dotnet publish -c Debug -r win10-x64

发布:

dotnet publish -c Release -r win10-x64

推荐阅读