edumserrano/dotnet-sdk-extensions

dotnet format fails with: Could not load file or assembly 'Microsoft.CodeAnalysis, Version=4.1.0.0'

Closed this issue · 0 comments

The dotnet format workflow is failing with the error:

Unhandled exception: System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types.
Could not load file or assembly 'Microsoft.CodeAnalysis, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified.

This is related with:

The temporary fix is to use the version 6.0.1.00 of the SDK.
This will be fixed when the version 6.0.202 of the SDK is released.

When the new version of the SDK is released update the dotnet format workflow to revert the change to fix the SDK to 6.0.100.