我已经在 .NET Core 2.1 中创建了一个简单的控制台应用程序,并编译了以下输出:
HelloWorld.deps.json
HelloWorld.dll
HelloWorld.pdb
HelloWorld.runtimeconfig.dev.json
HelloWorld.runtimeconfig.json
我已经安装了 .net Core SDK(链接在这里:https://www.microsoft.com/net/download/linux-package-manager/ubuntu18-04/sdk-current)
user1@VMLinuxTest:~/Downloads/bin$ dotnet run HelloWorld.dll
Couldn't find a project to run. Ensure a project exists in /home/user1/Downloads/bin,
or pass the path to the project using --project.
我只是想使用dotnet run
命令运行控制台应用程序。我做错了什么?