Skip to content

System.TypeLoadException utilizing latest Blazor Web App Authentication build failure. #9342

@Aquaritek

Description

@Aquaritek

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

Likely this issue can get handed off to it will be resolved in the final RC2 release but in case no one has noticed. Utilizing the latest daily build of DotNet creating a fresh Blazor Web App with Indvidual Accounts will not build. The .Client project won't successfully compile with a System.TypeLoadException related to Microsoft.CodeAnalysis.

Expected Behavior

The vanilla Blazor Web App with Individual Accounts template should build.

Steps To Reproduce

  1. Use the latest VS 2022 Version 17.8.0 Preview 2.0
  2. Download and install latest DotNet daily build.
  3. Open VS and create a new Blazor Web App project with individual accounts and support for both Server rendering and Client Wasm rendering selected.
  4. Add new item NuGet.config (xml) to be able to support daily build dependencies
  5. Close and re-open solution to get dependencies to download.
  6. Build the solution and observe the failure.

Exceptions (if any)

Unhandled Exception: System.TypeLoadException: Could not load type 'Enumerator' from assembly 'Microsoft.CodeAnalysis, Version=4.8.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. BlazeAuth.Client C:\Program Files\Microsoft Visual Studio\2022\Preview\MSBuild\Current\Bin\Roslyn\Microsoft.CSharp.Core.targets 84

.NET Version

8.0.100-rtm.23479.1

Anything else?

image

Metadata

Metadata

Assignees

Labels

area-blazorarea-compilerUmbrella for all compiler issuesbugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions