Redth/dotnet-maui-check

error during "dotnet tool install -g Redth.Net.Maui.Check"

JaneConan opened this issue · 1 comments

When I install Redth.Net.Maui.Check, showing in console~

(base) mac@Conans-MacBook-Pro ~ % dotnet tool install -g Redth.Net.Maui.Check
/usr/local/share/dotnet/sdk/6.0.100/NuGet.targets(130,5): error : 未能从远程源“https://aka.ms/maui-preview/index.jsont/FindPackagesById()?id='redth.net.maui.check'&semVerLevel=2.0.0”检索有关“redth.net.maui.check”的信息。 [/var/folders/m3/cz0vnjh919v_bdccn7mbw8_h0000gn/T/uzqihhbs.lto/restore.csproj]
/usr/local/share/dotnet/sdk/6.0.100/NuGet.targets(130,5): error : “https://aka.ms/maui-preview/index.jsont/FindPackagesById()?id='redth.net.maui.check'&semVerLevel=2.0.0”处的内容不是有效的 XML。 [/var/folders/m3/cz0vnjh919v_bdccn7mbw8_h0000gn/T/uzqihhbs.lto/restore.csproj]
/usr/local/share/dotnet/sdk/6.0.100/NuGet.targets(130,5): error : For security reasons DTD is prohibited in this XML document. To enable DTD processing set the DtdProcessing property on XmlReaderSettings to Parse and pass the settings into XmlReader.Create method. [/var/folders/m3/cz0vnjh919v_bdccn7mbw8_h0000gn/T/uzqihhbs.lto/restore.csproj]
无法还原工具包。
工具“redth.net.maui.check”安装失败。此故障可能由以下原因导致:

  • 你尝试安装预览版,但未使用 --version 选项来指定该版本。
  • 已找到具有此名称的包,但是它不是 .NET 工具。
  • 无法访问所需的 NuGet 源,这可能是由于 Internet 连接问题导致。
  • 工具名称输入错误。

有关更多原因(包括强制包命名),请访问 https://aka.ms/failure-installing-tool

(base) mac@Conans-MacBook-Pro ~ % dotnet --info
.NET SDK (反映任何 global.json):
Version: 6.0.100
Commit: 9e8b04bbff

运行时环境:
OS Name: Mac OS X
OS Version: 12.0
OS Platform: Darwin
RID: osx-x64
Base Path: /usr/local/share/dotnet/sdk/6.0.100/

Host (useful for support):
Version: 6.0.0
Commit: 4822e3c3aa

.NET SDKs installed:
3.1.415 [/usr/local/share/dotnet/sdk]
5.0.403 [/usr/local/share/dotnet/sdk]
6.0.100 [/usr/local/share/dotnet/sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 3.1.21 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 5.0.12 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.0 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.21 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 5.0.12 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.0 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET runtimes or SDKs:
https://aka.ms/dotnet-download

finally, use 👍 dotnet tool install --global Redth.Net.Maui.Check --version 0.10.0

that is great~

~ dotnet tool install --global Redth.Net.Maui.Check --version 0.10.0
可使用以下命令调用工具: maui-check
已成功安装工具“redth.net.maui.check”(版本“0.10.0”)。
➜ ~ maui-check