C
C#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.
L
leowest43d 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
BK
Brady Kelly43d ago
Sorry, I don't, only vscode
L
leowest43d ago
well then im out sorry 😛 I dont use vscode for c# waste of time imo
BK
Brady Kelly43d ago
I was trying to avoid installing VS just for this
L
leowest43d ago
I am not sure u have a path in the cli for that
BK
Brady Kelly43d ago
I use Rider but their docs also say to use the cli
L
leowest43d ago
you're on windows?
BK
Brady Kelly43d ago
I'll check paths, thanks I'm actually on Linux and Windows but I have only tried Windows so far
L
leowest43d 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
BK
Brady Kelly43d 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
L
leowest43d 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
BK
Brady Kelly43d 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
L
leowest43d ago
wait u shouldn't need to skip it but u can add dotnet cli to the rules no?
BK
Brady Kelly43d 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: 👍🏻
L
leowest43d ago
no worries didnt really do anything just another day of talking do a /close if its resolved thou 🙂
Want results from more Discord servers?
Add your server
More Posts
need tips to improve my logical skills and .net c# skills as I'm a intermediate dev.Hi,I want to improve my logical and .net c# skills so i want please suggest me or guide me about to Issue with Azure AD B2C Custom Domains: Unexpected Redirect Behavior and Domain DependencyHey everyone, I'm hopeful that there are experienced individuals with Azure AD B2C expertise who canNode editor, many operations - how to make it maintainableHi, I'm trying to develop an app with node editor that ideally will provide no code openCV functionacannot close window...Release date of 8.0.3?Hey, I have been struggling with an issue that from what I understand will be solved in 8.0.3. httpRedirecting the native standard output streamI need to call into native code the problem is that it writes some of it's output using stdout. Is iWhere can I find a working library for making a LLVM compiler?I found this library (https://github.com/dotnet/LLVMSharp) that provides extern references for the LCheck value type of extended class instanceI have `BaseClass` and `MyClass : BaseClass`. Using `val is BaseClass` will return true for any obj✅ Am I using NumberFormatInfo properly?I have a list of ca. 400 numbers which I want to convert to percentage strings as part of an endpoin✅ .NET MAUI LayoutI am trying to create a password field with the show icon to the right of the password field, when iGetting an error for an undefined variableHello, I'm a CS major working on a project so I'm still pretty new. I'm getting a CS0165 error on liEnemy following after the player (MONOGAME)Im making a simple game using Monogame in visual studio. I have two sprites drawn on the screen (pinIm having an issue checking for collisions when comparing DateTime objects.I have this function that's supposed to check for collisions with bookings. I am using TimeSpans andclamping how fast a input (as a float) can change.Let’s say my Input X float changes in a amount of time from -1 to 1 (-1, -0.5, 0, 0.5, 1) so as an eIValueResolver won't work with AutoMapperHi guys , hope all of you doing well, I'm recently working on a project where I need to convert a spHelp with concurrency blocking issueI have a small app that runs CPU bound on multiple threads (amount of processors) On one PC it workFrontend not workingI dont really keen on frontend but I think have some knowledge about it would be nice, I'm learning JsonSerializerOptionsTo be continuedC# Dictionary questionHi, if i have a dictionary in C# defined like so: `Dictionary<string, List<int>> test;` and I do `Li✅ Avalonia not showing rows in datagridThere are no rows in my datagrid in Avalonia, the headers are visible. I've checked if my list is em