Home > Net >  C # and webassembly
C # and webassembly

Time:12-29

Look at the c # web assembly, with vs2019 established blazor assembly project.
The page or razor, but I'm really realize the c # code running in the browser, feel severe

Don't know, can you be more simple to no razor page, regardless of the user interface (UI), only to replace JS with c #.
Such as js way in the browser using c #

<script lang="c #" & gt;
Console. WriteLine (" Hello World ");
</script>

Console. WriteLine (" Hello World ");
</script>

CodePudding user response:

Razor page is for the sake of compatibility, not all browsers support Blazor, Blazor front-end of HTML + CSS + javascript, c # parts equivalent to a browser plug-in, rather than HTML embedded scripting,

CodePudding user response:

Oh. The document said seems not like silglight that plug-in. But is compiled into IL wasm format
reference 1st floor icoolno1 response:
Razor page is for the sake of compatibility, not all browsers support Blazor, Blazor front-end of HTML + CSS + javascript, c # parts equivalent to a browser plug-in, rather than HTML embedded scripting,

CodePudding user response:

refer to the second floor mirror030 response:
oh. Document said seems not like silglight that plug-in. But is compiled into IL wasm format
Quote: refer to 1st floor icoolno1 response:
Razor page is for the sake of compatibility, not all browsers support Blazor, Blazor front-end of HTML + CSS + javascript, c # parts equivalent to a browser plug-in, rather than HTML embedded scripting,


Need the equivalent of ah, before installation, now no, the browser can be run directly, or, the browser comes with a virtual machine,

CodePudding user response:

An empty project load should be 6.7 M for the first time, also has been optimized, what other pictures haven't count, that is, a 1 M server open to more than 20 seconds, do a CDN could better
This is the biggest drawback, and browser compatibility problems, I know a few years ago the old machine is part of the android function can't use, I now win10 EDGE also cannot use, Google is better
  •  Tags:  
  • C#
  • Related