.NET 5 Hello Wold控制台应用程序未在Ubuntu上运行
我正试图在ubuntu上用.NET5创建at.net控制台应用程序 应用程序在运行时未给出任何响应。 这就是我创建它所做的:.NET 5 Hello Wold控制台应用程序未在Ubuntu上运行,.net,.net-5,.net,.net 5,我正试图在ubuntu上用.NET5创建at.net控制台应用程序 应用程序在运行时未给出任何响应。 这就是我创建它所做的: $ dotnet new console -o test The template "Console Application" was created successfully. Processing post-creation actions... Running 'dotnet restore' on test/test.csproj...
$ dotnet new console -o test
The template "Console Application" was created successfully.
Processing post-creation actions...
Running 'dotnet restore' on test/test.csproj...
Determining projects to restore...
Restored /home/krestensb/test/test.csproj (in 96 ms).
Restore succeeded.
dotnet运行不返回任何内容
这是生成的代码。我没有做任何更改:
using System;
namespace test
{
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World!");
}
}
}
为什么我没有得到任何回应?尝试
dotnet-v new console-o test
并说出发生了什么。你是否构建了你的应用程序?我得到:未知选项:-vI是否只有我在问题中描述的命令当你说“dotnet run不返回任何内容”时是“运行并退出,但不显示任何内容”还是“挂起并没有完成运行”?