You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
Summary
After upgrading to .NET 6.0.200, a
System.IO.FileNotFoundException
is thrown whenEnforceCodeStyleInBuild
is enabled.Steps
dotnet new console
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
to the csproj filedotnet 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.
The text was updated successfully, but these errors were encountered: