sb / smallbasic-editor

Home to the Small Basic editor (beta)
https://smallbasic-publicwebsite-code.azurewebsites.net/
MIT License
101 stars 34 forks source link

Update to Visual Studio 2019+ #165

Open Ed-Price opened 4 years ago

Ed-Price commented 4 years ago

We need to change project dependencies in order to be compatible with VS2019. Currently we have to install/use VS2017, which slows down the development onboarding and process. (VS2017 is supported through April 2027.)

Blazor has some dependencies. We're using an incompatible set of components and are facing an error when compiling with VS 2019.

ERROR:

7>------ Build started: Project: SmallBasic.Editor, Configuration: Debug Any CPU ------

7>C:....nuget\packages\microsoft.aspnetcore.blazor.build\0.7.0\targets\RazorCompilation.targets(236,5): error : rzc discover exited with code 1.

kmelmon commented 4 years ago

Converting will likely require upgrading to latest version of Blazor. Daniel Roth says:

"This project is on a really old version of Blazor from back when Blazor was still experimental. There have been a lot of changes since 0.7.0.

For experimental & preview releases we publish upgrade guidance as part of the Blazor release announcement blog posts. So you’d have to go back and find all of the posts starting with 0.7.0 to the latest. There been probably a dozen or so releases since 0.7.0, so that’s probably not worth it.

An alternative approach is to start with a new Blazor WebAssembly 3.2 project and restructure your app to match. That’s probably what I would do."

kmelmon commented 4 years ago

Daniel Roth followed up with this comment:

"Instead of starting with Blazor WebAssembly 3.2, I actually think you should go ahead and start working with Blazor WebAssembly in .NET 5 RC2. .NET 5 will release in about two weeks, and the RC2 bits are really close to the final version."