受欢迎的博客标签

 

1.1 .net core 2.0

Install the .NET Core 2.1 SDK (2.1.300 or later).

Install Visual Studio 2017 (15.7 or later) with the ASP.NET and web development workload selected.

Install the latest Blazor Language Services extension from the Visual Studio Marketplace.           https://blogs.msdn.microsoft.com/webdev/2018/07/25/blazor-0-5-0-experimental-release-now-available/ Blazor 0.5.0 experimental release now available

https://blazor.net/  .

 

1.2 .net core 3.0  

 

.NET Core 3.0  SDK

https://dotnet.microsoft.com/download/dotnet-core/3.0

select  .NET Core Installer: x64, Download and install it。


Visual Studio 2019 Preview.

https://visualstudio.microsoft.com/zh-hans/vs/preview/

 

Razor Components (Server-Side Blazor) 

How do Razor Components work?
When you make the initial request your browser will download an index.html file and a small javascript file called blazor.server.js. Blazor then establishes a connection between your browser and the server using SignalR.

The server will execute the component logic server side producing HTML. This is then compared, on the server, to a snap-shot of the DOM currently on the client. From this comparison the changes required to make the DOMs match are produced. These changes are then packaged up and sent down to the browser via the SignalR connection. Once at the browser the HTML changes are unpackaged and applied to the DOM.

 

not Visual Studio 2019 RC

The latest Blazor extension from the Visual Studio Marketplace.

https://marketplace.visualstudio.com/items?itemName=aspnet.blazor

Blazor Language Services 

Install the latest Blazor Language Services extension from the Visual Studio Marketplace. This step makes Blazor templates available to Visual Studio.