-
Notifications
You must be signed in to change notification settings - Fork 10.3k
[WebToolsE2E]Create Blazor(ASP.NET Core hosted) project, add **.Client project reference Blazor Class library project, meet an error:"*** exited with code -532462766" #10651
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Actual error is this. Seems like the linker is missing a reference. We'll have to check the build code to see what we pass to the linker. Fatal error in IL Linker Unhandled Exception: Mono.Linker.LoadException: Error while processing references of 'blazorhosted.Client, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null' ---> Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'Microsoft.Extensions.Logging.Abstractions, Version=3.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' ---> Mono.Cecil.AssemblyResolutionException: Failed to resolve assembly: 'Microsoft.Extensions.Logging.Abstractions, Version=3.0.0.0, Culture=neutral, PublicKeyToken=adb9793829ddae60' |
I think the issue here is that Microsoft.AspNetCore.Components references Disabling the linker gets the app to build (after fixing build errors, the templates need updating) but the application is still completely busted. I'm not sure what our options here are.
I haven't tried, but I believe all blazor client-side might be busted. |
This is the plan of record. If this isn't happening then that's what we need to figure out. |
PR is out to make this happen: #10684 |
Fix is in, pending verification. |
I'm getting a similar error on preview 7 - with the IL linker blowing up about Microsoft.Extensions.Logging when compiling a client side Blazor project generated from the hosted blazor template. This seems to be caused by referencing Identity in the xxxx.Shared project. I have got it to compile happily by manually adding a PackageReference to Microsoft.Extensions.Logging in the blazor client project csproj file (latest available preview7.19362.4, slightly different to the rest of the packages preview7.19365.7) Should I file a new issue or post details and repro details here? |
Hi @ar0311. It looks like you are posting on a closed issue! We're very likely to lose track of your bug/feedback/question unless you:
|
INSTALL STEPS
Install Dev16.1.1 VSE from: https://aka.ms/vs/16/release/vs_Enterprise.exe
Select Web + .NetCore workload
check 2.2 and 1.x Development tools
https://dotnetcli.blob.core.windows.net/dotnet/Sdk/master/dotnet-sdk-latest-win-x64.exe
REPRO STEPS
Install the Blazor VSIX to get the Blazor(ASP.NET Core hosted) template.
Run dotnet new -i Microsoft.AspNetCore.Blazor.Templates::3.0.0-preview6-19278-02 (the version is under the folder dotnet\shared\Microsoft.AspNetCore.App in machine)to install the Blazor CLI templates.
File > New Project > ASP.NET Core Web Application > ASP.ENT Core 3.0 ~ .NET Core > Blazor(ASP.NET Core hosted), click Create.
F5, meet error 900412
open a command prompt at the location of the solution folder and Blazor Class library to the solution by running:dotnet new blazorlib -o BlazorLib1
dotnet sln add BlazorLib1
dotnet add reference BlazorLib1
Return to VS, Click reload
Build, and meet an error in Output.
ACTUAL
The text was updated successfully, but these errors were encountered: