Open shingming opened 2 years ago
I successfully install the MAUI workload by the following command:
dotnet workload install maui
and then type maui-check
command and will get an "all ok" message
But this is just another way to avoid the error and install MAUI wordload successfully, the problem itself is not solved
reference: https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-workload-install
For me maui-check
still fails and wants Xcode 13.3
while I have the latest one Xcode 14.2
.
Is that ok?
So the hello world
template project does not run due to (even after the successful dotnet workload install maui
)
Getting restore information for project .../HelloWorld/HelloWorld.csproj
/usr/local/share/dotnet/sdk/7.0.200/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.TargetFrameworkInference.targets(112,5) : error NETSDK1139: The target platform identifier android was not recognized.
Unable to create package spec for project. '.../HelloWorld.csproj'
The maui-check --fix
fails with the error below:
Unhandled exception: System.ArgumentException: The path is empty. (Parameter 'path')
at System.IO.Path.GetFullPath(String path)
at Microsoft.DotNet.Cli.NuGetPackageDownloader.PackageSourceLocation.ExpandLocalFeed(String[] sourceFeedOverrides)
at Microsoft.DotNet.Workloads.Workload.Install.WorkloadInstallCommand..ctor(ParseResult parseResult, IReporter reporter, IWorkloadResolver workloadResolver, IInstaller workloadInstaller, INuGetPackageDownloader nugetPackageDownloader, IWorkloadManifestUpdater workloadManifestUpdater, String dotnetDir, String userProfileDir, String tempDirPath, String version, IReadOnlyCollection`1 workloadIds)
at Microsoft.DotNet.Cli.WorkloadInstallCommandParser.<>c.<ConstructCommand>b__14_0(ParseResult parseResult)
at Microsoft.DotNet.Cli.ParseResultCommandHandler.Invoke(InvocationContext context)
at System.CommandLine.Invocation.InvocationPipeline.<>c__DisplayClass4_0.<<BuildInvocationChain>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass12_0.<<UseHelp>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c.<<UseSuggestDirective>b__18_0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass16_0.<<UseParseDirective>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at System.CommandLine.Builder.CommandLineBuilderExtensions.<>c__DisplayClass8_0.<<UseExceptionHandler>b__0>d.MoveNext()
Fix failed - Workload Install failed: `dotnet workload install --from-rollback-file
"/var/folders/vz/td1yqc9d6zq0n8y_n02qvx3r0000gn/T/maui-check-96eaa125/workload.json" android ios
maccatalyst tvos macos maui --source "$(PACKAGE_SOURCE_NUGET_ORG)"`
The issue is, that check.dotnet.sdks.packageSources
is not resolving check.variables
. When adding https://api.nuget.org/v3/index.json
directly, it works fine. You can download the manifest from the URL and use -m maui.manifest.json
with the corrected file until fixed.
The environment information:
SDK and MONO are up to date:
The error output: