发布我的.net核心2.0控制台应用程序后......
dotnet publish src\myapp.console --output C:\publish\console --configuration Release
我尝试在已发布的文件夹中执行此操作
dotnet myapp.console
但我收到了错误
No executable found matching command "dotnet-myapp.console"
答案 0 :(得分:1)
诀窍是包含.dll
即:
dotnet myapp.console.dll