Declined
Last Updated: 25 Feb 2021 19:15 by ADMIN
Rafał
Created on: 25 Feb 2021 11:23
Category: UI for Blazor
Type: Bug Report
0
Cannot upgrade Telerik.UI.for.Blazor from 2.20.0 to 2.22.0 "Telerik.Documents.SpreadsheetStreaming" is incompatible with "all" frameworks in project. Regression?

Hi,
I tried today to upgrade version of Telerik.UI.for.Blazor. My previous, working version was 2.20.0. All my projects are using .NET 5.0 framework and it's running on linux.

It seems like kind of regression issue, all I did was to push packages to our private feed (I checked them all few times) and update Telerik.UI.for.Blazor from 2.20 to 2.22. It should just work.

➜  App git:(charts) ✗ dotnet add package Telerik.Documents.SpreadsheetStreaming -v 2021.1.222
  Determining projects to restore...
  Writing /tmp/tmpgV3v8N.tmp
info : Adding PackageReference for package 'Telerik.Documents.SpreadsheetStreaming' into project '/PathToProject/App/ProjectName.App.csproj'.
info : Restoring packages for /PathToProject/App/ProjectName.App.csproj...
info :   GET https://api.nuget.org/v3-flatcontainer/telerik.documents.spreadsheetstreaming/index.json
info :   CACHE https://nuget.pkg.jetbrains.space/pozitive/p/hcs/nuget-with-telerik/v3/flatcontainer/telerik.documents.spreadsheetstreaming/index.json
info :   NotFound https://api.nuget.org/v3-flatcontainer/telerik.documents.spreadsheetstreaming/index.json 411ms
error: NU1102: Unable to find package Telerik.Documents.SpreadsheetStreaming with version (>= 2021.1.222)
error:   - Found 1 version(s) in space-nuget-with-telerik [ Nearest version: 2020.3.1019 ]
error:   - Found 0 version(s) in nuget.org
error: Package 'Telerik.Documents.SpreadsheetStreaming' is incompatible with 'all' frameworks in project '/PathToProject/App/ProjectName.App.csproj'.

For reference, here are csproj of my two projects (app and test)

App.csproj:

<Project Sdk="Microsoft.NET.Sdk.Web">

  <PropertyGroup>
    <TargetFramework>net5.0</TargetFramework>
    <Nullable>enable</Nullable>
    <WarningsAsErrors>nullable</WarningsAsErrors>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="AngleSharp" Version="1.0.0-alpha-844" />
    <PackageReference Include="Blazored.Toast" Version="3.1.2" />
    <PackageReference Include="Marten" Version="4.0.0-alpha.5" />
    <PackageReference Include="Marten.NodaTime" Version="2.0.0-alpha.5" />
    <PackageReference Include="Microsoft.AspNetCore.Components.DataAnnotations.Validation" Version="3.2.0-rc1.20223.4" />
    <PackageReference Include="Microsoft.AspNetCore.WebUtilities" Version="2.2.0" />
    <PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="5.0.1" />
    <PackageReference Include="Telerik.UI.for.Blazor" Version="2.20.0" />
  </ItemGroup>
  
  <!-- Identity stuff-->
  <ItemGroup>
    <PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="5.0.1" />
    <PackageReference Include="Microsoft.AspNetCore.Identity.UI" Version="5.0.1" />
    <PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="5.0.1" />
    <PackageReference Include="Microsoft.EntityFrameworkCore.Tools" Version="5.0.1">
      <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
      <PrivateAssets>all</PrivateAssets>
    </PackageReference>
  </ItemGroup>
  <ItemGroup>
    <Folder Include="wwwroot\css\bootstrap" />
  </ItemGroup>

</Project>

Tests:

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <TargetFramework>net5.0</TargetFramework>

    <IsPackable>false</IsPackable>
    <Nullable>enable</Nullable>
    <WarningsAsErrors>nullable</WarningsAsErrors>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.7.1" />
    <PackageReference Include="NSubstitute" Version="4.2.2" />
    <PackageReference Include="NSubstitute.Analyzers.CSharp" Version="1.0.14" />
    <PackageReference Include="xunit" Version="2.4.1" />
    <PackageReference Include="xunit.runner.visualstudio" Version="2.4.3">
      <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
      <PrivateAssets>all</PrivateAssets>
    </PackageReference>
    <PackageReference Include="coverlet.collector" Version="1.3.0">
      <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
      <PrivateAssets>all</PrivateAssets>
    </PackageReference>
  </ItemGroup>

  <ItemGroup>
    <ProjectReference Include="..\App\AppName.App.csproj" />
  </ItemGroup>

</Project>
Those are the working ones. The only thing required to crash is to bump Telerik.UI version.

 

Best Regards,

Rafał Kopczyński

3 comments
ADMIN
Marin Bratanov
Posted on: 25 Feb 2021 19:15

Hello Rafał,

I am marking this bug report as "declined" since this was not a bug in the components, but an issue with the build pipeline, and I'd like to keep the portal tidy and avoid confusion.

On uploading our packages to a third party provider - yes, it does violate the license. You must not share our packages with third parties and/or make them available to other people to use and download. You are allowed to copy them to your internal source so long as this is not public and it will be used only by your company and to produce automated builds. I would suggest using credentials of a Telerik account with a valid license to use our online feed, you can store them as, for example, GitHub secrets so they are not visible to anyone.

 

Regards,
Marin Bratanov
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/.

Rafał
Posted on: 25 Feb 2021 14:20

Ugh... I don't know what happened...

So I just deleted all those packages from local .nuget cache and now it works fine. Seems like somehow my config is broken, I don't know.

Issue is gone.

 

I just want to ask though. Does storing telerik packages on 3rd party nuget provider violate license? We needed this to make our CI/CD work. There could be a better way to do this using credentials from some Telerik user without actually storing it, but that was a little too much hassle.

ADMIN
Marin Bratanov
Posted on: 25 Feb 2021 11:54

Hello Rafał,

This looks like an issue with the nuget feed setup that you have.

The pasted log indicates that the following happened:

  • there is no Telerik package on api.nuget.org - this is absolutely expected
  • there is no Telerik package on nuget.pkg.jetbrains.space - this also seems expected - this looks like a third party feed that should not carry our packages
  • there is no Telerik package with the required version (2021.1.222) on space-nuget-with-telerik - this looks to be the custom feed that you've made and it seems to only contain version 2020.3.1019

Thus, you must ensure that the build machine has access to the required packages - either by setting up our private feed (see here), or copying the necessary .nupkg files to your custom feed. You can download them from your account, or get them from your local installation.

Regards,
Marin Bratanov
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/.