Redth / dotnet-maui-check

.NET MAUI Check tool
MIT License
479 stars 79 forks source link

The requested name is valid, but data for the requested type cannot be found. #12

Closed sharpwood closed 3 years ago

sharpwood commented 3 years ago

? Synchronizing configuration... Error: The requested name is valid, but data for the requested type cannot be found.

I used ctrl+c break it when it is downloading .net sdk 6 preview 3 , and then run it again. It looks like have some problem.

sharpwood commented 3 years ago

It's because this address is inaccessible : raw.githubusercontent.com

Alexdara commented 3 years ago

It's because this address is inaccessible : raw.githubusercontent.com

When I enter the url raw.githubusercontent.com in chrome, it jump to github.com which shows my personal page. Then how you fix it?

sharpwood commented 3 years ago

hosts

Alexdara commented 3 years ago

For my solution: Open https://raw.githubusercontent.com/Redth/dotnet-maui-check/main/manifests/maui.manifest.json in chorme, Save the html page as maui.manifest.json. Then use command: maui-check -m maui.manifest.json. And it works.

tanshanli commented 3 years ago

可能是DNS污染,可以在C:\Windows\System32\drivers\etc,host文件中配置 151.101.0.133 raw.githubusercontent.com 确保ip能ping通,且不丢包,否则需要科学上网才能解决