为什么我无法访问 RunCommandLineApplicationAsync?
Why I can't access to RunCommandLineApplicationAsync?
我正在尝试构建 CLI
。我举个例子here
并且在程序 class 作者中使用 return await builder.RunCommandLineApplicationAsync<TestCmd>(args);
就像程序的起点,但是当我尝试做同样的事情时,我遇到了一个错误:
我该如何解决这个问题?
我知道为什么了,因为我认为它来自 Microsoft.Hosting,但我需要安装这个包:McMaster.Extensions.Hosting.CommandLine。
请关闭此主题
我正在尝试构建 CLI
。我举个例子here
并且在程序 class 作者中使用 return await builder.RunCommandLineApplicationAsync<TestCmd>(args);
就像程序的起点,但是当我尝试做同样的事情时,我遇到了一个错误:
我该如何解决这个问题?
我知道为什么了,因为我认为它来自 Microsoft.Hosting,但我需要安装这个包:McMaster.Extensions.Hosting.CommandLine。 请关闭此主题