Resharper broken after VS 2022 RTM

After I uninstalled VS 2019/2022 Preview and installed the VS 2022 RTM release (and re-installed the latest EAP7), I now get the following error with all of my .NET Core projects (targeting both .NET 5 and 6):

 

11/9/2021 8:34:46 AM Critical Project 'PROJECT_NAME_HERE' load failed| [MSB4236] The SDK 'Microsoft.NET.Sdk' specified could not be found. C:\s\MirrorRepos2\some\path\to\project\My.Project.csproj at (0:0)

 

Here is the beginning of my csproj file:

<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
</PropertyGroup>

2 comments
Comment actions Permalink

Potential workaround -- I'm not really sure what this setting is doing, yet...but, I found if I uncheck General / Solution Model / Read solution model directly from project/solution files... Resharper seemingly is able to get the project information it needs from my 'Microsoft.NET.Sdk'-based projects.

0
Comment actions Permalink

Hello,

it happens to be a known issue - RSRP-486809.

We've confirmed that ReSharper uses the wrong path to .NET and we're working on the fix.

For anyone who faces this issue, too, as a temporary workaround, please do one of the following:

  1. in environment variable Path, move the value Program Files\dotnet above Program Files (x86)\dotnet 
  2. install the .net 5.0 SDK for x86 manually (can be downloaded from official site)
  3. uncheck the "Read solution model directly..." setting in ReSharper | Options | Environment | General.

Thank you.

0

Please sign in to leave a comment.