-
Install the latest preview SDK:
- Install dotnet-install script from https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script
dotnet-install -Channel main -InstallDir <some-install-dir>
- Add
<some-install-dir>
to your path so you're using it for the next steps
-
Install the blazor-aot tool and acquire the SDK
dotnet new nugetconfig
- edit the
nuget.config
file to include nightly feed:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
interface IRequestDecompressionProvider | |
{ | |
bool TryDecompressRequest(HttpContext httpContext); | |
} | |
public sealed class GzipDecompressionProvider : IRequestDecompressionProvider | |
{ | |
bool TryDecompressRequest(HttpContext context) | |
{ | |
// e.g. Content-Encoding: br, deflate, gzip |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
======= Backtrace: ========= | |
/lib/x86_64-linux-gnu/libc.so.6(+0x777f5)[0x7f76c838c7f5] | |
/lib/x86_64-linux-gnu/libc.so.6(+0x8038a)[0x7f76c839538a] | |
/lib/x86_64-linux-gnu/libc.so.6(cfree+0x4c)[0x7f76c839958c] | |
/lib/x86_64-linux-gnu/libcrypto.so.1.0.0(CRYPTO_free+0x1d)[0x7f76bf8520cd] | |
/lib/x86_64-linux-gnu/libcrypto.so.1.0.0(+0x13a69f)[0x7f76bf92969f] | |
/lib/x86_64-linux-gnu/libcrypto.so.1.0.0(+0x13ae70)[0x7f76bf929e70] | |
/lib/x86_64-linux-gnu/libcrypto.so.1.0.0(+0x1416a0)[0x7f76bf9306a0] | |
/lib/x86_64-linux-gnu/libcrypto.so.1.0.0(+0x142336)[0x7f76bf931336] | |
/lib/x86_64-linux-gnu/libcrypto.so.1.0.0(+0x1425ad)[0x7f76bf9315ad] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public record Person([FromRoute][Required][StringLength(1, 8)] string id); | |
public record Person | |
{ | |
public Person(string id) => Id = id; | |
[FromRoute][Required][StringLength(1, 8)] | |
public string Id { get; init; } | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public record Person([FromRoute][Required][StringLength(1, 8)] string id); | |
public record Person | |
{ | |
public Person(string id) => Id = id; | |
[FromRoute][Required][StringLength(1, 8)] | |
public string Id { get; init; } | |
} |
## Current
637287883825561612: watch : Exited
637287883825568665: watch : File changed: D:\temp\c\Views\Home\Index.cshtml <--- a1
637287883831872268: watch : Started
637287883852917785: info: Microsoft.Hosting.Lifetime[0]
637287883852923489: Now listening on: https://localhost:5001 <--- b1 (b1 - a1): TotalMilliseconds : 2735.4824
637287883852928268: info: Microsoft.Hosting.Lifetime[0]
637287883852932657: Now listening on: http://localhost:5000
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
warning: Ignoring unresolved assembly 'StandaloneApp.dll'. | |
warning: Ignoring unresolved assembly 'System.CodeDom'. | |
warning: Ignoring unresolved assembly 'Microsoft.Win32.SystemEvents'. | |
warning: Ignoring unresolved assembly 'System.Configuration.ConfigurationManager'. | |
warning: Ignoring unresolved assembly 'System.Diagnostics.PerformanceCounter'. | |
warning: Ignoring unresolved assembly 'System.Diagnostics.EventLog'. | |
warning: Ignoring unresolved assembly 'System.Security.Permissions'. | |
warning: Ignoring unresolved assembly 'System.IO.Ports'. | |
warning: Ignoring unresolved assembly 'System.Windows.Extensions'. | |
warning: Ignoring unresolved assembly 'System.Threading.AccessControl'. |
Name | Length |
---|---|
http://localhost:5000/ | 904 |
customJsFileForTests.js | 188 |
_framework/blazor.webassembly.js | 13295 |
_framework/blazor.boot.json | 1424 |
_framework/wasm/dotnet.3.2.0.js?customizedbootresource=true | 50911 |
_framework/_bin/HostedInAspNet.Client.dll | 2874 |
_framework/_bin/Microsoft.AspNetCore.Components.dll | 48735 |
_framework/_bin/Microsoft.AspNetCore.Components.Forms.dll | 7899 |
Name | Length |
---|---|
http://localhost:5000/ | 904 |
customJsFileForTests.js | 188 |
_framework/blazor.webassembly.js | 13295 |
_framework/blazor.boot.json | 1424 |
_framework/wasm/dotnet.3.2.0.js?customizedbootresource=true | 50911 |
_framework/_bin/HostedInAspNet.Client.dll | 2874 |
_framework/_bin/Microsoft.AspNetCore.Components.dll | 48735 |
_framework/_bin/Microsoft.AspNetCore.Components.Forms.dll | 7899 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Person | |
{ | |
static readonly string[] Clearances = new[] { "Alpha", "Beta", "Gamma", "Delta", "Epsilon" }; | |
public string Name { get; set; } | |
public int Salary { get; set; } | |
public bool IsAdmin { get; set; } | |
public List<Person> Subordinates { get; set; } | |
public Dictionary<string, object> SecurityClearances { get; set; } |
NewerOlder