Problem with Telerik nuget for Asp.Net Core

1 Answer 187 Views
TreeList
Mariusz
Top achievements
Rank 1
Mariusz asked on 21 Apr 2023, 01:04 PM

Hi

After installing Telerik nuget package, my application stopped working.
I added lines to the csproj

<PackageReference Include="Microsoft.CodeAnalysis.CSharp.Workspaces" Version="4.5.0" />

<PackageReference Include="Microsoft.CodeAnalysis.VisualBasic.Workspaces" Version="4.5.0" />
<
PackageReference Include="Telerik.UI.for.AspNet.Core" Version="2023.1.314" />

When I run my application, I get log file looks like that:

2023-04-21 14:49:05.5881 INFO DEVELOPMENT Mode
2023-04-21 14:49:05.7374 INFO User profile is available. Using 'C:\Users\mariuszw\AppData\Local\ASP.NET\DataProtection-Keys' as key repository and Windows DPAPI to encrypt keys at rest.
2023-04-21 14:49:06.3588 INFO Now listening on: https://localhost:7040
2023-04-21 14:49:06.3588 INFO Now listening on: http://localhost:5041
2023-04-21 14:49:06.3588 INFO Application started. Press Ctrl+C to shut down.
2023-04-21 14:49:06.3588 INFO Hosting environment: Development
2023-04-21 14:49:06.3588 INFO Content root path: C:\vs\WebApp\ASP.NET_CORE_CQRS\MwTechCqrs\MwTech.UI
2023-04-21 14:49:07.7292 INFO Request starting HTTP/2 GET https://localhost:7040/ - -
2023-04-21 14:49:07.8831 INFO Request finished HTTP/2 GET https://localhost:7040/ - - - 404 0 - 148.1378ms

Did i do something wrong ?

 

1 Answer, 1 is accepted

Sort by
0
Mihaela
Telerik team
answered on 26 Apr 2023, 09:39 AM

Hi Mariusz,

The described issue occurs because there is a dependency from Telerik.UI.for.AspNet.Core 2023.1.314 to Microsoft.CodeAnalysis.CSharp.Workspaces (= 4.0.0) and Microsoft.CodeAnalysis.VisualBasic.Workspaces (=4.0.0):

 

In the latest version (2023.1.425), the Microsoft.CodeAnalysis package version is upgraded to 4.4.0:

 

Regards, Mihaela 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.

Aliaksandr
Top achievements
Rank 1
commented on 17 Oct 2023, 09:08 AM

Hello Mihaela,

Why is it still dependent on Microsoft.CodeAnalysis? I tried compiling the source code without this dependency for .net7 and it works fine

Mihaela
Telerik team
commented on 19 Oct 2023, 10:05 AM

Hello Aliaksandr,

At this stage, the Microsoft.CodeAnalysis dependency cannot be excluded because the Microsoft.CodeAnalysis.Emit Method is used for creating dynamic classes for the queries.

There is a feature request to include NET Standard 2.1, which supports the AssemblyBuilder class. This way, we can exclude the Microsoft.CodeAnalysis dependency. You can follow the progress here and receive status updates:

https://feedback.telerik.com/aspnet-core-ui/1606134-support-of-net-standard-2-1

Best,

Mihaela

Tags
TreeList
Asked by
Mariusz
Top achievements
Rank 1
Answers by
Mihaela
Telerik team
Share this question
or