c# - 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.
解决方案
您可以创建运行以下命令的 exe,如果需要用于发布或调试目的,假设也是 64 位 Win10 操作系统,您可以执行以下操作:)
调试:
dotnet publish -c Debug -r win10-x64
发布:
dotnet publish -c Release -r win10-x64
推荐阅读
- c++ - Rabin-Karp 给出了错误的答案,随着功率提高到 p
- php - 合并表 MySql
- python - 将 docplex 表达式转换为字符串
- wildfly - 如何使用 Consul 上的路径注册我的服务
- yarnpkg - 带有纱线工作空间的通用依赖库版本
- sql - 如何在数据库中存储某物的状态?
- c# - 如何在我的 Xamarin.Forms 应用程序的 UWP 版本中显示图像
- regex - 正则表达式按句点拆分,除非在括号之间或在大括号之间或在双引号之间
- uwp - 当用户在 UWP 应用的 UI 上切换开关时,如何更改情节提要动画?
- c# - 如何使用 GridView 添加图像?