Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On Mac Intel, with SDK:3.1.420 x64 and latest C# extension:1.25.0 installed, debugging 3.1 project doesn't work in VSCode. #5237

Closed
v-xiaofchen opened this issue May 27, 2022 · 5 comments

Comments

@v-xiaofchen
Copy link

Environment:
VSCode: 1.67.2
C# extension:1.25.0

Repro steps:

  1. Create a new project via CLI
  2. Open the project in VSCode

Expected behavior:
VSCode pops up message "Required asserts to build and debug are missing from ‘11’. Add them?"
image

Actual behavior:
Message "Required asserts to build and debug are missing from ‘11’. Add them?" did not pop up and debug didn't work.
image
image

dotnet --info:
.NET Core SDK (reflecting any global.json):
Version: 3.1.420
Commit: c4a02e4c2d

Runtime Environment:
OS Name: Mac OS X
OS Version: 10.15
OS Platform: Darwin
RID: osx.10.15-x64
Base Path: /usr/local/share/dotnet/sdk/3.1.420/

Host (useful for support):
Version: 3.1.26
Commit: dae24f14e7

.NET Core SDKs installed:
3.1.420 [/usr/local/share/dotnet/sdk]

.NET Core runtimes installed:
Microsoft.AspNetCore.App 3.1.26 [/usr/local/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 3.1.26 [/usr/local/share/dotnet/shared/Microsoft.NETCore.App]

To install additional .NET Core runtimes or SDKs:
https://aka.ms/dotnet-download

@v-xiaofchen
Copy link
Author

This issue is not repro on SDK:3.1.419/3.1.420 + C# extension:1.24.4 in VSCode.

@JoeRobich
Copy link
Member

@v-xiaofchen The C# extension now requires a .NET 6 SDK be installed when working with .NET Core/.NET SDK projects. See the announcement at #5120

@ghzhouxin
Copy link

@v-xiaofchen The C# extension now requires a .NET 6 SDK be installed when working with .NET Core/.NET SDK projects. See the announcement at #5120

How can I set .NET core sdk version to 3.1.4xx for .NET core 3 project?
When I set it in vscode settings like this:
image
Omnisharp show log:
The Sdk version specified in the OmniSharp settings was not a valid semantic version. Configured version is ''3.4.419''. Please update your settings and restart OmniSharp.

@JoeRobich
Copy link
Member

@ghzhouxin O# requires .NET 6 SDK installed. The .NET 6 SDK can still build apps that are targeting netcoreapp3.1. For running apps built against netcoreapp3.1 you would only need a .NET Core 3.1 runtime to be installed.

@ghzhouxin
Copy link

@ghzhouxin O# requires .NET 6 SDK installed. The .NET 6 SDK can still build apps that are targeting netcoreapp3.1. For running apps built against netcoreapp3.1 you would only need a .NET Core 3.1 runtime to be installed.

Thanks for your help.

@JoeRobich JoeRobich closed this as not planned Won't fix, can't repro, duplicate, stale Nov 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants