CS0012 error trying to run or compile a project

1 Answer 105 Views
General Discussions
Paola
Top achievements
Rank 1
Paola asked on 24 Jul 2024, 02:01 PM | edited on 24 Jul 2024, 03:00 PM

Hi,

I'm developing an ASP.NET Core MVC app targeting .NET 8 with VS2022 on a x64 Windows 10 Professional.

The app has one grid using a custom popup editing template with some editing Kendo widgets in it.
I've found that, if I omit to call ".Deferred()" on the Grid or ".ToClientTemplate()" on every widgets inside the custom template, I got the following error trying to run or compile my app from Visual Studio:

Error CS0012 The type 'Object' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e'

The very same happens if I try to run or compile the example project found in the UI for ASP.NET Core MSI installer package!

I'm using a trial version of Telerik.UI.for.AspNet.Core 2024.2.514.

Can you help me, please?

1 Answer, 1 is accepted

Sort by
-1
Mihaela
Telerik team
answered on 29 Jul 2024, 09:18 AM

Hello Paola,

Since we discussed the case in a support thread, I will post the solution here in case someone else hits the same error:

The issue occurred when the application targeted .NET 8 and was a NuGet cache problem. When cleaning up the application cache, the error was resolved.

 

Regards,
Mihaela
Progress Telerik

Do you have a stake in the designеr-developer collaboration process? If so, take our survey to share your perspective and become part of this global research. You’ll be among the first to know once the results are out.
-> Start The State of Designer-Developer Collaboration Survey 2024

William
Top achievements
Rank 1
commented on 09 Aug 2024, 10:30 PM

I down-voted this because it did not solve my issue.  Maybe it would solve someone elses?
Tags
General Discussions
Asked by
Paola
Top achievements
Rank 1
Answers by
Mihaela
Telerik team
Share this question
or