Posts

Showing posts from February, 2020

How to create Blazor webassembly and server apps in visual studio code

Painful memories of ActiveX controls, java applets, Silverlight, Flash and the other attempts at portable code are all being revenged by WebAssembly. I don't care how good someone is at JavaScript. They will make more mistakes (especially subtle, hard-to-find bugs) in JavaScript than they would doing the same task in C#. Every time. Blazor with WebAssembly is mature now to the point of being very useful. The great thing about WebAssembly is that it is a standard, unlike ActiveX or Silverlight.  Here are the steps to create either a Blazor WebAssembly or a Blazor Server app in Visual Studio Code: From a command shell: dotnet new -i Microsoft.AspNetCore.Blazor.Templates::3.2.0-preview1.20073.1 1. Install Visual Studio Code, if not already installed. 2. Install the latest C# for Visual Studio Code extension. 3. For a Blazor WebAssembly experience, execute the following command in a command shell: dotnet new blazorwasm -o WebApplication1 You can do the above from a comman