A couple of questions concerning accessing Telerik NuGet server

1 Answer 187 Views
AutoComplete
Rod
Top achievements
Rank 1
Rod asked on 29 Apr 2022, 09:07 PM

I'm trying to get AutoComplete to work in a new Visual Studio 2022 project. We're using .NET 6. 

First question: when I try to run an AutoComplete sample app, I get error CS0246, "The type or namespace name 'Kendo' could not be found (are you missing a using directive or an assembly reference?" I believe the problem is that I don't have a link to Telerik's NuGet server where it can get this information. What is that link, please?

Second, in researching error CS0246 and what I might be able to do about it, I came across a page for a NuGet server from Telerik at nuget.telerik.com/v3/index.json. When I navigated to that link I was prompted to provide my Telerik credentials, which I did. That let me download a the Index.json file, which is was list of other servers, I presume NuGet servers, from Telerik. That's OK, for some individual development, but I want to put this into Azure Pipelines. I really do not want to put my credentials into either Azure Pipelines Library | Secure or Azure KeyVault. What is Telerik's work around so that I can put this information into Azure CI Pipelines?

1 Answer, 1 is accepted

Sort by
0
Stoyan
Telerik team
answered on 04 May 2022, 02:50 PM

Hi Rod,

You have correctly identified that you need to install the Telerik NuGet that contains the server-side resources of the product. For more information about the installation please refer to the Add the Telerik NuGet Feed for Users with Commercial License article of the Getting Started Documentation section or the Installing with Nuget article that goes over the different installation approaches. 

The workaround to putting your credentials into Azure's Pipelines is to download and store the NuGet packages in a shared folder that would be used by the Azure Pipeline as a source.

Alternatively, you can use encryption to protect your credentials .

For more information about both of the approaches above I'd recommend our Continuous Integration and Delivery article.

Hopefully this information is useful.

Regards,
Stoyan
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Rod
Top achievements
Rank 1
commented on 06 May 2022, 07:37 PM

Hi Stoyan,

Thank you for the links. I've read them and have also gone through a Getting Started tutorial here on this website, for learning how to use Kendo UI for jQuery. I'm still struggling with making it work in the ASP.NET MVC 6 app that we're working on, but I've got a different question related to what you shared here.

I've gone through the process of adding the Telerik NuGet feed for users with a Commercial License you linked to. That's now set up in my Visual Studio 2022 instance, in the branch I'm working on. But if I understand that article, it won't address what we're going to be facing trying to get a working version of the ASP.NET Core app building in Azure Pipelines. Is the second link you shared, Installing with NuGet a better approach?If not, what do you mean by, "...download and store the NuGet packages in a shared folder that would be used by the Azure Pipeline as a source"? Would that be in a Azure Blob storage account? Or on a network share on-prem with appropriate ports open, etc.? Or did you mean something else?

Stoyan
Telerik team
commented on 11 May 2022, 04:46 PM

Hi Rod,

I am glad you've successfully managed to setup your project with the Telerik NuGet feed.

Based on the communication so far,  I'd recommend the approach from the Installing with Nuget article's Setup with NuGet CLI section as the most appropriate to store the encrypted credentials in Azure:

  1. Execute the following command in the Visual Studio's Package Manager Console while the relevant project is open for editing:
    NuGet Sources Add -Name "telerik.com" -Source "https://nuget.telerik.com/v3/index.json" -UserName "your login email" -Password "your password"

The above command stores a token in the %AppData%\NuGet\NuGet.config file and your original credentials cannot be obtained from this token.

Alternatively, you can host the downloaded .nupkg file as you would any other static content in the Azure Pipeline.

In general the implemented approach to build Azure Pipelines does not effect the performance of Telerik and you can opt to use one approved by your organization or following its best practices.

I hope the information above is useful. Please don't hesitate to contact me should further questions arise.

 

 

Tags
AutoComplete
Asked by
Rod
Top achievements
Rank 1
Answers by
Stoyan
Telerik team
Share this question
or