0

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

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

Amir Imam
  • 871
  • 1
  • 12
  • 23

1 Answers1

4

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.

Chris Sainty
  • 7,861
  • 2
  • 37
  • 59
  • I could run blazor on .net core 2 before https://i-msdn.sec.s-msft.com/dynimg/IC880645.png – Amir Imam Aug 23 '19 at 15:16
  • For a time Blazor ran on .NET Core 2 but that was quite a while ago. – Chris Sainty Aug 23 '19 at 15:17
  • If I can get any old Blazor template that work on sdk 2.2 this will be a good solution. Is that right ? – Amir Imam Aug 23 '19 at 15:23
  • 1
    Possibly, but I really wouldn’t recommend it. You will lose a lot of features and that’s even if you get things working. You would probably have to change back to VS 2017 as well. However, if you want to try I believe all previous releases are under the releases tab of the GitHub repo. But once again I really wouldn’t recommend it. – Chris Sainty Aug 23 '19 at 15:25