Error when running under .NET 6.0.200 in a container
See original GitHub issueWe are running dotnet-format in a container (mcr.microsoft.com/dotnet/sdk:6.0). As of today, that tag was upgraded to .NET 6.0.200, and dotnet format started failing with the following error:
Could not load file or assembly 'Microsoft.CodeAnalysis.CSharp, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified.
Could not load file or assembly 'Microsoft.CodeAnalysis, Version=4.1.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified.
I creating a simple example here: https://github.com/mispencer/net6_0_200-docker-format-issue/blob/master/Dockerfile The build-working target, referencing a direct image hash to the old 6.0.10x image, works. The build-broken target, referencing mcr.microsoft.com/dotnet/sdk:6.0 tag and thus 6.0.200, fails with said error.
Issue Analytics
- State:
- Created 2 years ago
- Reactions:10
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Can't access .Net Core application through Docker Container
Your application is listen for connection inside container (localhost) only. Now listening on: http://localhost:5000.
Read more >Breaking changes in .NET 6
Binary compatible - Existing binaries will load and execute successfully without recompilation, and the run-time behavior won't change.
Read more >"You must install .NET Desktop Runtime 6.0.4 (x64)" error
When I try running the binaries on a Windows 10 machine, I get the following message box: To run this application, you must...
Read more >Installing .NET 6 on your M1 Mac (manually) - Maarten Merken
In this short article, I'll show you how to uninstall any previous dotnet versions on your M1 Mac and install the latest .NET...
Read more >Fixing NuGet error: Unable to load the service index for source
Something I've ran into several times is when running dotnet restore or dotnet add package <name> , the tool throws and error with...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
might be related to https://github.com/dotnet/format/issues/1519
Closing as duplicate of https://github.com/dotnet/format/issues/1519. See this comment for a workaround https://github.com/dotnet/format/issues/1519#issuecomment-1055922333