dotnet-maui-check icon indicating copy to clipboard operation
dotnet-maui-check copied to clipboard

Fail to install

Open pjmagee opened this issue 3 years ago • 5 comments

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

pjmagee avatar Jun 19 '21 18:06 pjmagee

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?

RicardoJarree avatar Jun 20 '21 10:06 RicardoJarree

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!

MichiSpahr93 avatar Jun 22 '21 13:06 MichiSpahr93

The solution to this can be found here I believe.

bddckr avatar Jun 22 '21 17:06 bddckr

The solution to this can be found here I believe.

That´s it! Thank you!

MichiSpahr93 avatar Jun 23 '21 08:06 MichiSpahr93

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

pjmagee avatar Jun 24 '21 15:06 pjmagee