Migrating .net framework from 4.8 to 8.0 and also migrating from Kendo.UI.MVC to KendoUICore package

2 Answers 257 Views
Accessibility General Discussions
Renu
Top achievements
Rank 1
Iron
Iron
Iron
Renu asked on 19 Sep 2024, 05:40 AM | edited on 19 Sep 2024, 09:50 AM
Hi ,

I have migrated my MVC project from .net framework 4.8 to .net 8.0. This need me to install KendoUICore package. Earlier i was using 
Kendo.Mvc.dll

I'm not finding any relevant documents to fix the error related to Kendo 
Error (active) CS0246 The type or namespace name 'DataSourceRequest' could not be found (are you missing a using directive or an assembly reference?)
Error (active) CS0246 The type or namespace name 'DataSourceRequestAttribute' could not be found (are you missing a using directive or an assembly reference?)
Error (active) CS0246 The type or namespace name 'ContextMenuItem' could not be found (are you missing a using directive or an assembly reference?)
Error (active) CS0246 The type or namespace name 'MenuItem' could not be found (are you missing a using directive or an assembly reference?)

Issue is there in all the controls, I'm not able to compile my application.. Added few errors above

Need help on how to migrate from Kendo.Mvc to KendoUICore in ASP.Net MVC project with .net 8.0 as target framework

2 Answers, 1 is accepted

Sort by
0
Eyup
Telerik team
answered on 23 Sep 2024, 08:28 AM

Hello Renu,

 

Thank you for writing to us.

The good news is that MVC and Core MVC are similar technologies and it is possible to migrate the project from one to the other with small changes. But it is also important to note that the project needs to be a new one. You cannot somehow transform the .NET Framework 4.8 app to a Core version 8 app:
https://docs.telerik.com/aspnet-mvc/installation/migrating

Telerik provides multiple different UIs for the various technologies. Allow me to share them with you so you have a bigger and better picture:

Telerik UI for MVC is suitable for .NET framework versions 4.0, 4.5, 4.6, 4.7 and 4.8:
https://demos.telerik.com/aspnet-mvc/grid

For .NET Core versions 7 and 8+ you will use Telerik UI for Core:
https://demos.telerik.com/aspnet-core/grid

Blazor is the newest technology offering by Microsoft where Telerik is the lead component provider (based on WebAssembly, not JavaScript):
https://demos.telerik.com/blazor-ui/grid/overview

There is also option for using client frameworks and toolsets like:

- jQuery:
https://demos.telerik.com/kendo-ui/grid/index

- React native:
https://www.telerik.com/kendo-react-ui/components/grid/

- Angular native:
https://www.telerik.com/kendo-angular-ui/components/grid/

- Vue native:
https://www.telerik.com/kendo-vue-ui/components/grid/

We have some pretty neat blogs for describing the migration between different technologies:
 - From Web Forms to Core
 - From Web Forms to Blazor
 - From MVC to Core MVC
 - From MVC to Blazor

Having said that, I highly suggest that you follow the following steps to achieve this migration:

1. Create a new Telerik UI for ASP.NET Core project from the Visual Studio Templates:

2. Write the desired name and click Create:


3. Select Grid & Menu option from the list:


4. Next->Next->Finish.

5. Build the project and run it in the browser

6. And now you have a full working 4.8 Core project with Grid and Menu:

7. Using this Core project as a base, you can start transferring code files and logic (step by step) from the old MVC to the new Core project.

Do you find this research and information beneficial? Let me know what you think.

 

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

0
Renu
Top achievements
Rank 1
Iron
Iron
Iron
answered on 24 Sep 2024, 07:11 AM

Hi Eyup,
Thanks for the documentations.

I have to upgrade existing project only. As of now I have installed the Telerik.UI.for.AspNet.Core(2024.3.806) package.
All the error that i have mentioned above are gone.

I have a doubt, should we import the @using Kendo.Mvc.UI in the .cshtml files wherever we use the Kendo controls like dropdown, window, textbox?. Unless i import it I'm not able to see the definitions

Before Importing

 

After Importing




Note: Since the upgrade is not complete. Unable to check the issues..
Will keep updating this thread for help.

Eyup
Telerik team
commented on 25 Sep 2024, 10:09 AM

Hi

Telerik.UI.for.AspNet.Core packaged to the old project is not supported because it is different technology (ASP.NET MVC).

You will need to create a new ASP.NET Core project and add it there.

Tags
Accessibility General Discussions
Asked by
Renu
Top achievements
Rank 1
Iron
Iron
Iron
Answers by
Eyup
Telerik team
Renu
Top achievements
Rank 1
Iron
Iron
Iron
Share this question
or