This is a migrated thread and some comments may be shown as answers.

Trouble using licensed NuGet package with docker

3 Answers 1304 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Isha
Top achievements
Rank 1
Isha asked on 12 Oct 2019, 07:44 PM

I am having dockerized Asp.Net Core application and using telerik UI for Asp.Net Core licensed NuGet Package by creating Telerik Package Source with physical path on my disk for nupkg file. All development was going well in debug mode, but when I tried to make a release, its giving the error - Unable to find package Telerik.UI.for.AspNet.Core with version >= 2018.2.620. Then it says that Found 1 version in nuget.org with Version 2016.3.914. 

I don't think I should use this older version from nuget.org and moreover I will get trial version there.

Please suggest, if I am missing some steps to reference it properly.

3 Answers, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 16 Oct 2019, 10:50 AM

Hi Isha,

The configuration of the private feed shown is globally for your local machine. Whereas using Docker you should setup the private feed using a NuGet.config file in the solution folder and add the account credentials and the private feed to properly have the NuGet restore the package in the Docker machine. Similar to this KB article: https://docs.telerik.com/aspnet-core/knowledge-base/setup-private-nuget-feed-azure.

Regards,
Ianko
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
0
Isha
Top achievements
Rank 1
answered on 16 Oct 2019, 01:06 PM

Hi lanko,

I haven't added any account credentials, just added this Telerik.UI.for.AspNet.Core nupkg package as shown in Capture1 in root folder of project and referenced this using Telerik package source and given source of that Telerik.UI.for.AspNet.Core nupkg package path as shown in Capture 2

Its not finding this package in release mode in docker application. What I need to change here ?

Please suggest.

0
Ianko
Telerik team
answered on 17 Oct 2019, 04:58 AM

Hello Isha,

Setting up the NuGet feed through the Visual Studio sets up only the global configuration. This setup is not available for the docker machine. This is why you will need to setup a NuGet.config file so that the nuget restore command can read the config file and get the package from a destination accessible for the docker machine. 

This github issue discusses extensively this topic: https://github.com/dotnet/dotnet-docker/issues/463.

Regards,
Ianko
Progress Telerik

Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
Tags
General Discussions
Asked by
Isha
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Isha
Top achievements
Rank 1
Share this question
or