Repro steps:
dotnet new -i Microsoft.AspNetCore.Blazor.Templates::0.8.0-preview-19075-0444dotnet new blazor -o BlazorApp1Console.WriteLine("Hello, world!"); in Program.MainExpected result:
Actual result:

WASM: mono_pe_file_map: Error opening file mscorlib.dll (3): No such file or directorymono_pe_file_map: Error opening file Mono.WebAssembly.Interop.dll (3): No such file or directorymono_pe_file_map: Error opening file Microsoft.JSInterop.dll (3): No such file or directorymono_pe_file_map: Error opening file BlazorApp1.dll (3): No such file or directorymono_pe_file_map: Error opening file Microsoft.AspNetCore.Blazor.dll (3): No such file or directorymono_pe_file_map: Error opening file Microsoft.Extensions.DependencyInjection.Abstractions.dll (3): No such file or directory锘縃ello, world
@SteveSandersonMS @lewing
I think this was a temporary logging regression in mono right around the hash you pulled. See https://github.com/mono/mono/pull/12588
In my case, Console.WriteLine simply doesn't write anything. I can hit a breakpoint while debugging razor components, but nothing is displayed in chrome console.
@tezine Console.WriteLine will only write to the browser console when you're running client-side in the browser. For a Razor Components app Console.WriteLine will write to the console on the server.
@tezine Console.WriteLine will only write to the browser console when you're running client-side in the browser. For a Razor Components app Console.WriteLine will write to the console on the server.
For anyone who doesn't know, you can see the server console in the Output window in Visual Studio, just select 'ASP.NET Core Web Server in the select list:

@tezine Console.WriteLine will only write to the browser console when you're running client-side in the browser. For a Razor Components app Console.WriteLine will write to the console on the server.
For anyone who doesn't know, you can see the server console in the Output window in Visual Studio, just select 'ASP.NET Core Web Server in the select list:
So many thanks for that... I was stuck on Debug log... 馃槃
Most helpful comment
For anyone who doesn't know, you can see the server console in the Output window in Visual Studio, just select 'ASP.NET Core Web Server in the select list: