C
C#5mo ago
Brady Kelly

Persistent error with dotnet cli and installing maui workspace

I've tried time and again now without joy. There is precious little info on this issue out there (on Google), all I could really find were some open issues on Github. Everyone tell me to install the workspace using dotnet workload install maui, but even with variants specifying a NuGet source, I still end up with a list of errors about not being able to update or read the advertising manifest for microsoft.* I have only just not uninstalled. NET 8 because I've seen articles from MS people saying maui is ready for. NET 8.
15 Replies
leowest
leowest5mo ago
do u not have visual studio community? @Ubuntu Victim well then open your visual studio installer and install it from there and you be done that is all u have to do nothing else
Brady Kelly
Brady Kelly5mo ago
Sorry, I don't, only vscode
leowest
leowest5mo ago
well then im out sorry 😛 I dont use vscode for c# waste of time imo
Brady Kelly
Brady Kelly5mo ago
I was trying to avoid installing VS just for this
leowest
leowest5mo ago
I am not sure u have a path in the cli for that
Brady Kelly
Brady Kelly5mo ago
I use Rider but their docs also say to use the cli
leowest
leowest5mo ago
you're on windows?
Brady Kelly
Brady Kelly5mo ago
I'll check paths, thanks I'm actually on Linux and Windows but I have only tried Windows so far
leowest
leowest5mo ago
well the suggestion on the ms page was
dotnet workload install maui --source https://api.nuget.org/v3/index.json
dotnet workload install maui --source https://api.nuget.org/v3/index.json
but u said u already tried it did u install the SDK? like when u type dotnet --version what u get if feels like u might have installed the runtime instead
Brady Kelly
Brady Kelly5mo ago
I did try that, yes. dotnet --version gives me 8.2.201, suggesting I do have the SDK installed. I'm trying to install the SDK again now, just in case something is wrong there
leowest
leowest5mo ago
aside from that that command should work, not sure it would work on linux thou given maui does not support linux, even thou its for development and I would guess u might not be able to run the emulators maui requires from inside a vm or that it might require extra steps
Brady Kelly
Brady Kelly5mo ago
I haven't tried Linux yet, and I'm not using a vm. I just tried again after installing sdk 8.0.201, and I'm still getting the same list of errors. If it helps any, here is a sample:
Failed to update the advertising manifest microsoft.net.sdk.android: Unable to load the service index for source https://api.nuget.org/v3/index.json..
Failed to update the advertising manifest microsoft.net.sdk.ios: Unable to load the service index for source https://api.nuget.org/v3/index.json..
Failed to update the advertising manifest microsoft.net.sdk.maccatalyst: Unable to load the service index for source https://api.nuget.org/v3/index.json..
Failed to update the advertising manifest microsoft.net.sdk.macos: Unable to load the service index for source https://api.nuget.org/v3/index.json..
Failed to update the advertising manifest microsoft.net.sdk.maui: Unable to load the service index for source https://api.nuget.org/v3/index.json..
Failed to update the advertising manifest microsoft.net.sdk.tvos: Unable to load the service index for source https://api.nuget.org/v3/index.json..
Failed to update the advertising manifest microsoft.net.workload.mono.toolchain.current: Unable to load the service index for source https://api.nuget.org/v3/index.json..
Failed to update the advertising manifest microsoft.net.workload.emscripten.current: Unable to load the service index for source https://api.nuget.org/v3/index.json..
Failed to update the advertising manifest microsoft.net.workload.emscripten.net6: Unable to load the service index for source https://api.nuget.org/v3/index.json..
Failed to update the advertising manifest microsoft.net.workload.emscripten.net7: Unable to load the service index for source https://api.nuget.org/v3/index.json..
Failed to update the advertising manifest microsoft.net.sdk.android: Unable to load the service index for source https://api.nuget.org/v3/index.json..
Failed to update the advertising manifest microsoft.net.sdk.ios: Unable to load the service index for source https://api.nuget.org/v3/index.json..
Failed to update the advertising manifest microsoft.net.sdk.maccatalyst: Unable to load the service index for source https://api.nuget.org/v3/index.json..
Failed to update the advertising manifest microsoft.net.sdk.macos: Unable to load the service index for source https://api.nuget.org/v3/index.json..
Failed to update the advertising manifest microsoft.net.sdk.maui: Unable to load the service index for source https://api.nuget.org/v3/index.json..
Failed to update the advertising manifest microsoft.net.sdk.tvos: Unable to load the service index for source https://api.nuget.org/v3/index.json..
Failed to update the advertising manifest microsoft.net.workload.mono.toolchain.current: Unable to load the service index for source https://api.nuget.org/v3/index.json..
Failed to update the advertising manifest microsoft.net.workload.emscripten.current: Unable to load the service index for source https://api.nuget.org/v3/index.json..
Failed to update the advertising manifest microsoft.net.workload.emscripten.net6: Unable to load the service index for source https://api.nuget.org/v3/index.json..
Failed to update the advertising manifest microsoft.net.workload.emscripten.net7: Unable to load the service index for source https://api.nuget.org/v3/index.json..
Oh man, I'm using a very, very tight 'firewall' called PortMaster. It defaults to block non-local network connections for all process except ones it knows, and it only knows VS, not the cli. Now I'm just grumpy because the cli workload install requires a --skip-sign-check flag to skip validating the nuget signatures
leowest
leowest5mo ago
wait u shouldn't need to skip it but u can add dotnet cli to the rules no?
Brady Kelly
Brady Kelly5mo ago
Yeah, it's an amazing app, I can add the cli app, add a profile for all dotnet apps and Ides, the connection type, and the IP and port. It took me about 3 weeks to get my dev machine working smoothly again after installing it, but all that is saved in profiles I will be sharing publicly. But I digress. Thank you for all your help. :plus_one: 👍🏻
leowest
leowest5mo ago
no worries didnt really do anything just another day of talking do a /close if its resolved thou 🙂