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

dotnet CLI installs a wrong Nuget version for AspNet.Core

3 Answers 261 Views
Installer and VS Extensions
This is a migrated thread and some comments may be shown as answers.
Enrico
Top achievements
Rank 1
Enrico asked on 22 Oct 2019, 11:10 PM

Hello,
we are currently following this guide (https://docs.telerik.com/aspnet-core/getting-started/first-steps-cli)
to setup Telerik UI for ASP.NET Core 3.0.100 (not RC).
After we run "dotnet add package Telerik.UI.for.AspNet.Core" we see that the version "2016.3.914" is downloaded and installed, and NOT the version "2019.3.917" we see from here: https://www.telerik.com/account/product-download?product=UIASPCORE
Obviously with old this version "dotnet run" throws errors.

What are we missing?

We tried to downgrade to dotnet SDK 3.0.100-RC but nothing changes.
Forcing installing the specific version with "dotnet add package Telerik.UI.for.AspNet.Core -v 2019.3.917" returns error "Unable to find package Telerik.UI.for.AspNet.Core with version (>= 2019.3.917)"
Our platform is Linux and we downloaded dotnet sdk from here https://dotnet.microsoft.com/download/thank-you/dotnet-sdk-3.0.100-linux-x64-binaries
We have trial license of ProgressĀ® TelerikĀ® UI for ASP.NET Core

 

Thanks for your support

 

my nuget.config

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <packageSources>
    <add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
    <add key="telerik.com" value="https://nuget.telerik.com/nuget" />
  </packageSources>
  <packageSourceCredentials>
      <telerik.com>
           <add key="Username" value="enrico.papi@re-lab.it" />
         <add key="ClearTextPassword" value="*********" />
      </telerik.com>
  </packageSourceCredentials>
</configuration>

 

my csproj after we add the package:

<Project Sdk="Microsoft.NET.Sdk.Web">
  <PropertyGroup>
    <TargetFramework>netcoreapp3.0</TargetFramework>
  </PropertyGroup>
  <ItemGroup>
  </ItemGroup>
  <ItemGroup>
    <PackageReference Include="Telerik.UI.for.AspNet.Core" Version="2016.3.914" />
  </ItemGroup>
</Project>

3 Answers, 1 is accepted

Sort by
0
Enrico
Top achievements
Rank 1
answered on 23 Oct 2019, 04:19 PM

Hi,

why Nuget selects this package from official nuget feed (https://www.nuget.org/packages/Telerik.UI.for.AspNet.Core/)

instead of taking packages from Telerik.com Nuget feed?

I've tried commenting "nuget.org" entry in nuget.config but nothing changes.

Any suggestion?

Thanks in advance

0
Enrico
Top achievements
Rank 1
answered on 23 Oct 2019, 04:34 PM
Solved. I had to specify "dotnet add package Telerik.UI.for.AspNet.Core.Trial" with ending ".Trial"
0
Dimitar
Telerik team
answered on 25 Oct 2019, 09:17 AM

Hi,

I am glad to know that the issue is resolved now.

Telerik.UI.for.AspNet.Core is distributed through Telerik private NuGet feed. Still there is a package version someone uploaded in 2016 on nuget.org - https://www.nuget.org/packages/Telerik.UI.for.AspNet.Core/ . Although the package is marked as unlisted, it is still visible on nuget.org and causing such issues sometimes.

Regards,
Dimitar
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
Installer and VS Extensions
Asked by
Enrico
Top achievements
Rank 1
Answers by
Enrico
Top achievements
Rank 1
Dimitar
Telerik team
Share this question
or