Mac Visual Studio Code Unable to find package Telerik.UI.for.Maui.Trial

2 Answers 230 Views
General Discussions Installer and VS Extensions
Software
Top achievements
Rank 1
Software asked on 18 Sep 2024, 01:51 PM

Hello,

I have installed the trial version of the Maui package [2]. After that I created an empty project: [1] 

  1. In VS Code, open the Command Palette menu by pressing Ctrl+Shift+P on Windows or Linux, or Cmd+Shift+P on Mac.
  2. Select Telerik UI for .NET MAUI Template Wizard: Launch and press Enter

When I try to run/build it, I get this error: 

NU1101: Unable to find package Telerik.UI.for.Maui.Trial. No packages exist with this id in source(s): /usr/local/share/dotnet/library-packs, NuGet

Which makes sense because there is no Telerik.UI.for.Maui.Trial at this location. 

What am I doing wrong?

Thanks!

[1] https://marketplace.visualstudio.com/items?itemName=TelerikInc.telerik-maui-productivity-tools#:~:text=NET%20MAUI%20Scaffolders-,The%20Telerik%20UI%20for%20.,the%20controls%20through%20an%20UI

[2] https://www.telerik.com/maui-ui?_gl=1*ok4989*_gcl_aw*R0NMLjE3MjY2NjE2OTkuQ2owS0NRanc5S20zQmhEakFSSXNBR1ViNG56N3NOa0NoYUF6UTlZOWREWVNiaVZBeVg4RzRqTkdJRWN3ODdJdzJmZzc0S0ZJSUd2WU9SZ2FBa1hyRUFMd193Y0I.*_gcl_dc*R0NMLjE3MjY2NjE2OTkuQ2owS0NRanc5S20zQmhEakFSSXNBR1ViNG56N3NOa0NoYUF6UTlZOWREWVNiaVZBeVg4RzRqTkdJRWN3ODdJdzJmZzc0S0ZJSUd2WU9SZ2FBa1hyRUFMd193Y0I.*_gcl_au*MTk5NjgwNjY4OS4xNzI2NjYwMDYw*_ga*MTY0MDUzNzA5Ny4xNzI2NjYwMDYx*_ga_9JSNBCSF54*MTcyNjY2MDA2MC4xLjEuMTcyNjY2NzA2OS4yMi4wLjA

2 Answers, 1 is accepted

Sort by
1
Accepted
Lance | Senior Manager Technical Support
Telerik team
answered on 18 Sep 2024, 06:19 PM

Hi Software,

According to that error, your project is not looking for the Telerik packages in the correct location... "No packages exist with this id in source(s): /usr/local/share/dotnet/library-packs, NuGet"

Investigation

Since I do not see the Telerik server, or local folder, I'm assuming you have not yet added the Telerik NuGet server in your nuget.config. Let's test this assumption of mine,

  1. Open a terminal
  2. Run the following command dotnet nuget list source

You should see nuget.telerik.com/v3/index.json as one of the options. For example:

If you do not see it as a source, then it means you need to add it.

Quick Fix

Instead of manually editing your NuGet config files (which can be tricky on a mac), let me show you a single command that will do it for you

  1. First, go to https://www.telerik.com/account/downloads/nuget-keys and generate a new key
  2. Open a terminal and run the following command (using the key you just generated):

dotnet nuget add source 'https://nuget.telerik.com/v3/index.json' -n "TelerikNuGetServer" -u "api-key" -p "PASTE_THE_KEY_HERE" --store-password-in-clear-text

 

That's it, you can now restore packages from the Telerik NuGet server.

Regards,
Lance | Senior Manager Technical Support
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Software
Top achievements
Rank 1
commented on 19 Sep 2024, 07:33 AM

Thanks!
Shalin
Top achievements
Rank 1
Iron
Iron
commented on 16 Jan 2025, 06:53 AM

used this command and it says

error: The source specified has already been added to the list of available package sources. Provide a unique source.

and then I use

dotnet nuget remove source https://nuget.telerik.com/v3/index.json

it says,

error: Unable to find any package source(s) matching name: https://nuget.telerik.com/v3/index.json.

Shalin
Top achievements
Rank 1
Iron
Iron
commented on 16 Jan 2025, 07:08 AM

Some more info:
checked Nuget sources after deleting them from  key chain


dotnet nuget list source
Registered Sources:
  1.  nuget [Enabled]
      https://api.nuget.org/v3/index.json
  2.  telerik [Enabled]
      https://nuget.telerik.com/v3/index.json

But, Xamarin project can not restore:

Failed to retrieve information about 'Telerik.UI.for.Xamarin' from remote source 'https://nuget.telerik.com/nuget/FindPackagesById()?id='Telerik.UI.for.Xamarin'&semVerLevel=2.0.0'.
Failed to retrieve information about 'Telerik.UI.for.Xamarin' from remote source 'https://nuget.telerik.com/nuget/FindPackagesById()?id='Telerik.UI.for.Xamarin'&semVerLevel=2.0.0'.
Any idea on where to look at ?
Didi
Telerik team
commented on 16 Jan 2025, 09:15 AM

Hi Shalin,

A solution for this can be found here: https://docs.telerik.com/devtools/maui/knowledge-base/failed-retrieve-info-remote-source 

The Telerik Xamarin package is searched in wrong Telerik NuGet server v2 -> https://nuget.telerik.com/nuget, the correct url is: https://nuget.telerik.com/v3/index.json

Review all NuGet servers you have set on the machine, there is a wrong link that needs to be updated. Also make sure you cleared all NuGet caches. 

0
Shalin
Top achievements
Rank 1
Iron
Iron
answered on 17 Jan 2025, 03:32 AM | edited on 18 Apr 2025, 12:24 PM

This is what worked for me and hopefully, it will for others,

I used 

dotnet nuget locals --list all 

list all available nugets in MAC and used,

dotnet nuget locals --clear all

to clear nugets, but those are not fixing anything.

again used

dotnet nuget locals --list all

to check Nuget locations (in mac, use this to show hidden files - Command + Shift + . ), delete all available Nugets from there and check the inside of

NuGet.Config

The file in 

/Users/"YOUR_USERNAME"/.nuget/NuGet/NuGet.Config

may look correct with the Telerik V3 server, but the culprit is not that.

Check this,

/Users/"YOUR_USERNAME"/.config/NuGet/NuGet.Config

and you will see old server url is still there. Edit (https://nuget.telerik.com/v3/index.json), save and run project.

VOILA !!!

Tags
General Discussions Installer and VS Extensions
Asked by
Software
Top achievements
Rank 1
Answers by
Lance | Senior Manager Technical Support
Telerik team
Shalin
Top achievements
Rank 1
Iron
Iron
Share this question
or