Can't debug .net core app after installing .net 7 preview 6

Hello,

I am using latest VS 2022 preview version on Windows.

After I install the .net 7 preview 6 SDK, I can’t debug the app. I didn’t change any code.

If I uninstall the .net 7 preview 6 SDK, everything is back to normal.

Could you have a look? Thanks.

Regards,
Xiaoguang

Which version do you have installed/use when you uninstall .NET 6 Preview 6? Also whats your CPU architecture and what version (arm64 on x86_64) of the .NET Core SDK did you install?

thanx,
marc

Hmm, yeah curious; I have Preview 3 and 4 installed, and now also installed 6, and it falls back to using /usr/local/share/dotnet/shared/Microsoft.NETCore.App/7.0.0-preview.3.22175.4/libdbgshim.dylib for me, because it seems the later previews no longer include that library :(.

Not sure of that is “as designed” or a bug with the previews; we’ll have to investigate. Unfortunately, my colleague who’s in charge of this is off on vacation this week.

Workaround for now: install/keep Preview 3 as well.

Logged as bugs://E26064.

le sigh.

Thanks. I saw latest post, OK, I will install/keep Preview 3 as well.

Just for your information, I am using VS 2022 community 17.3.0 preview 5.0 on an AMD computer, so the architecture is X86_64. On my computer the .Net Core SDK include:

OS Name: Windows
OS Version: 10.0.22000
OS Platform: Windows
RID: win10-x64
Base Path: C:\Program Files\dotnet\sdk\7.0.100-preview.6.22352.1\

Host:
Version: 7.0.0-preview.6.22324.4
Architecture: x64
Commit: d3fa592f6d

.NET SDKs installed:
6.0.400-preview.22330.6 [C:\Program Files\dotnet\sdk]
7.0.100-preview.6.22352.1 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 6.0.6 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 6.0.7 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.AspNetCore.App 7.0.0-preview.6.22330.3 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 6.0.6 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 6.0.7 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.NETCore.App 7.0.0-preview.6.22324.4 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 6.0.6 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 6.0.7 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]
Microsoft.WindowsDesktop.App 7.0.0-preview.6.22351.3 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found:
x86 [C:\Program Files (x86)\dotnet]
registered at [HKLM\SOFTWARE\dotnet\Setup\InstalledVersions\x86\InstallLocation]

Environment variables:
Not set

global.json file:
Not found

bugs://E26064 was closed as fixed.