简体   繁体   中英

How to downgrade Blazor app from .Net Core 3 to .Net Core 2

I have finished Blazor application using .Net Core 3 on Visual studio 2019 Community (Not Preview), but when I tried to publishing it on the host I found that the host doesn't support .Net Core 3, only supports version 2.1,2.2, and technical support told me to subscribe to another hosting plan and it is very expensive at least for now

I tried to downgrade the .Net core version in the application but so many errors appeared like that image

图片

I tried to create a new Blazor project with .Net Core 2.2, but Blazor just exists in version 3

I need to find any way to downgrade my app .Net core version to 2.2 and keep at least the basic features of Blazor

There's not much you can do on this one, Blazor runs on .NET Core 3, you can't run it on a lower version of .NET Core.

However, if you're running client-side Blazor then you don't actually need to run .NET on the server at all as it publishes static files. Otherwise there isn't much you can do.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM