-
Notifications
You must be signed in to change notification settings - Fork 0
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
Action fails with 'Could not load file or assembly 'Microsoft.CodeAnalysis, Version=4.6.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified.' #1
Comments
Hi, thanks for reporting! This is a known dotnet-format issue: It sadly does not seem like there will be a fix soon (the issue was opened over 1 year ago, closed in the meantime, but now the problem occurs again). As a workaround, you can remove any |
Another workaround is mentioned here: This involves downgrading the SDK to 7.0.1xx. |
Neither of those worked unfortunately. The hardest part is not knowing what triggers the issue. It started for us out of the blue two days ago... |
@slaterx Would it be possible to share (one of) your *.csproj file(s)? Otherwise it's hard for me to reproduce it. And please paste me the output of
Edit: The above workaround does not seem to work either. |
The issue is triggered by a .NET SDK update on the GitHub runner images. They do now ship version I published The CI workflow has been adjusted to make use of this option (installs the .NET 8 SDK, installs the latest Note that all other |
Running the action now fails with error:
Here's the full pipeline:
The text was updated successfully, but these errors were encountered: