Skip to content
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

EnforceCodeStyleInBuild - System.IO.FileNotFoundException Microsoft.CodeAnalysis, Version=4.1.0.0 #1528

Closed
marklechtermann opened this issue Feb 23, 2022 · 1 comment

Comments

@marklechtermann
Copy link

Summary

After upgrading to .NET 6.0.200, a System.IO.FileNotFoundException is thrown when EnforceCodeStyleInBuild is enabled.

Steps

  • dotnet new console
  • Add <EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild> to the csproj file
  • dotnet format

File name: 'Microsoft.CodeAnalysis, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35' System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.CodeAnalysis, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified.

@marklechtermann
Copy link
Author

Duplicate of #1519

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant