Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/cmake/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.NET 5 Hello Wold控制台应用程序未在Ubuntu上运行_.net_.net 5 - Fatal编程技术网

.NET 5 Hello Wold控制台应用程序未在Ubuntu上运行

.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...

我正试图在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...
  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不返回任何内容”时是“运行并退出,但不显示任何内容”还是“挂起并没有完成运行”?