Redth / dotnet-maui-check

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

Fail to install #55

Open pjmagee opened 3 years ago

pjmagee commented 3 years ago
PS C:\Users\patri> dotnet --list-sdks
6.0.100-preview.5.21302.13 [C:\Program Files\dotnet\sdk]
PS C:\Users\patri> maui-check
maui-check: The term 'maui-check' is not recognized as a name of a cmdlet, function, script file, or executable program.Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
PS C:\Users\patri> dotnet tool install -g Redth.Net.Maui.Check
C:\Users\patri\AppData\Local\Temp\b3yxblbw.a41\restore.csproj(5,3): warning MSB4243: The NuGet-based SDK resolver failed to run because NuGet assemblies could not be located.  Check your installation of MSBuild or set the environment variable "MSBUILD_NUGET_PATH" to the folder that contains the required NuGet assemblies. Could not find file 'C:\Program Files\dotnet\sdk-manifests\6.0.100\Microsoft.NET.Workload.Android\WorkloadManifest.json'.
C:\Program Files\dotnet\sdk\6.0.100-preview.5.21302.13\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.ImportWorkloads.props(14,3): warning MSB4243: The NuGet-based SDK resolver failed to run because NuGet assemblies could not be located.  Check your installation of MSBuild or set the environment variable "MSBUILD_NUGET_PATH" to the folder that contains the required NuGet assemblies. Could not find file 'C:\Program Files\dotnet\sdk-manifests\6.0.100\Microsoft.NET.Workload.Android\WorkloadManifest.json'.
C:\Program Files\dotnet\sdk\6.0.100-preview.5.21302.13\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.ImportWorkloads.props(14,38): error MSB4236: The SDK 'Microsoft.NET.SDK.WorkloadAutoImportPropsLocator' specified could not be found. [C:\Users\patri\AppData\Local\Temp\b3yxblbw.a41\restore.csproj]
The tool package could not be restored.
Tool 'redth.net.maui.check' failed to install. This failure may have been caused by:

* You are attempting to install a preview release and did not use the --version option to specify the version.
* A package by this name was found, but it was not a .NET tool.
* The required NuGet feed cannot be accessed, perhaps because of an Internet connection problem.
* You mistyped the name of the tool.

For more reasons, including package naming enforcement, visit https://aka.ms/failure-installing-tool
RicardoJarree commented 3 years ago

I had the same issue, I needed to replace the C:\Program Files\dotnet\sdk-manifests\6.0.100 with the sdk-manifests in the binaries download of .NET 6 preview 5. Perhaps files are missing from the installer?

MichiSpahr93 commented 3 years ago

I had the same issue, I needed to replace the C:\Program Files\dotnet\sdk-manifests\6.0.100 with the sdk-manifests in the binaries download of .NET 6 preview 5. Perhaps files are missing from the installer?

I tried to do so as well, but same result after overwrinting the manifests... any further ideas?! I´d like to get hands on MAUI!

bddckr commented 3 years ago

The solution to this can be found here I believe.

MichiSpahr93 commented 3 years ago

The solution to this can be found here I believe.

That´s it! Thank you!

pjmagee commented 3 years ago

This is now working for me too. I'd like to keep this issue open so it may be easier for others to find your answer. Thank you