Latest .NET SDK fails to compile existing project
See original GitHub issueIs there an existing issue for this?
- I have searched the existing issues
Product
Strawberry Shake
Describe the bug
When using an existing .NET project with no globals.json
, we can no longer compile the code using the latest .NET SDK. The error we are getting is:
CSC : error SS0006: Access to the path 'C:\Program Files\dotnet\sdk\7.0.200\Roslyn\bincore\obj\berry' is denied. [C:\gi
t\BLAH.csproj]
Note 7.0.200
. I’m running 7.0.100
on my machine and it doesn’t happen.
Obviously, we’d expect the project compilation to be robust to changes in the SDK.
Steps to reproduce
- Take an existing .NET 6 SS project
- Install the latest .NET SDK
- Try to build
Relevant log output
CSC : error SS0006: Access to the path 'C:\Program Files\dotnet\sdk\7.0.200\Roslyn\bincore\obj\berry' is denied. [C:\git\BLAH.csproj]
Additional Context?
Given the seriousness of the problem, I’m loath to reproduce this on my machine. But it’s already affected two members of my team.
Version
12.18.0
Issue Analytics
- State:
- Created 7 months ago
- Reactions:3
- Comments:6 (2 by maintainers)
Top Results From Across the Web
NETSDK1045: The current .NET SDK does not support ...
This error occurs when the build tools can't find the version of the .NET SDK that's needed to build a project. This is...
Read more >Unable to compile .net 6.0 projects in VS 2022
I am unable to compile .net 6.0 projects in VS 2022 (version 17.4.3). I see error message that - MSB3971 The reference assemblies...
Read more >Unable to build project using latest .NET sdk (Xamarin forms)
I've managed to fix the issue. What worked for me was to set my "core" project to build with MSBuild at Mono. You...
Read more >SDK Resolver Failure - Net 7 - Net 6
NET projects. I uninstalled the 7.0.100-preview.2.22153.17 SDK using add remove programs and I was able to create a new project again.
Read more >Can't Compile .Net Core 2.2 Project
I have the latest 2.2 preview installed, since upgrading VS to 15.9.2, I can no longer build my project. I get this error:...
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 FreeTop 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
Top GitHub Comments
There is no v13 for
StrawberryShake.CodeGeneration.CSharp.Analyzers
yet. When will it be out?The package has been removed in v13 in favor of MSBuild for a more stable building experience.
How you can upgrade is explained in our migration guide: https://chillicream.com/docs/strawberryshake/v13/migrating/migrate-from-12-to-13
If you encounter issues upgrading, let us know 😃