'AnsiConsole' 不包含 'Live' 的定义

'AnsiConsole' does not contain a definition for 'Live'

我正在使用 Spectre.ConsoleSpectre.Console extension for C# Console Application. And I wanted to use Live-Display 模块,但我遇到了以下问题:

'AnsiConsole' does not contain a definition for 'Live'

Here is my code, or better say, part of it which contains problem (... are parts which aren't required in sample, so during testing/debugging/modification remove them)

using System;
using Spectre.Console;
...

namespace ConsoleApp2
{
    class Program
    {
        ...
        static void Main(...)
        {
            AnsiConsole.Live(Clock())
                .Start(ctx =>
                {
                    ctx.Refresh();
                    Thread.Sleep(1000);
                });
            ...
        }
        ...
        public static void Clock()
        {
            Console.WriteLine(DateTime.Now.ToString());
        }
        ...
    }
    ...
}

Additional information

好的,感谢 @JonSkeet's and @yaakov 的评论,我尝试安装 最新的预发布版本 0.39.1-preview-0.31代替最新稳定版0.39它奏效了。

看起来问题出在版本上。