question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Latest .NET SDK fails to compile existing project

See original GitHub issue

Is 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

  1. Take an existing .NET 6 SS project
  2. Install the latest .NET SDK
  3. 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:closed
  • Created 7 months ago
  • Reactions:3
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
Jejunicommented, Mar 2, 2023

There is no v13 for StrawberryShake.CodeGeneration.CSharp.Analyzers yet. When will it be out?

1reaction
tobias-tenglercommented, Mar 2, 2023

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 😃

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found