Blazor.MonoRuntime.targets error code -532462766
See original GitHub issueThis section of Blazor.MonoRuntime.targets is problematic and unstable.
<!-- Run the linker and put the results in /obj/<<configuration>>/<<targetframework>>/blazor/blazor/linker --> <Exec Command="dotnet "$(MonoLinkerPath)" $(_BlazorLinkerAdditionalOptions) @(_BlazorFolderLookupPaths, ' ') -o "$(BlazorIntermediateLinkerOutputPath)" @(_BlazorAssemblyDescriptorFiles, ' ') @(_BlazorAssembliesToLink, ' ')" />
I’m not sure if it’s an issue related to .NET, Blazor, Preview 6/7, or Entity Framework. It seems to happen after installing EF as in the top side of this article: https://code.msdn.microsoft.com/Creating-An-SPA-Using-0b76bd13
Sometimes the solution will build and launch fine, sometimes it won’t and it produces this error:
MSB3073 The command [the result of everything pasted above] exited with code -532462766.
I’ll restart VS and sometimes it builds fine, sometimes it doesn’t.
Issue Analytics
- State:
- Created 4 years ago
- Comments:7
Top GitHub Comments
I was having the same problem when working with Telerik UI component. I got the solution from Telerik docs.
Open the Client .csproj file and ensure that the following switch is present. At the moment the IL Linker needs to be disabled because of an issue in Mono.
<PropertyGroup> <!-- there may be other elements here --> <BlazorLinkOnBuild>false</BlazorLinkOnBuild> </PropertyGroup>
This certainly fixed the problem. hope it will help to others as well (even if they’re not using Telerik UI)
Everything should be working now with the latest bits and workshop updates. Let us know though if you’re still hitting issues!