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

Problem running program in vscode terminal with C# Dev Kit #264

Closed
skrtz opened this issue Oct 9, 2024 · 2 comments
Closed

Problem running program in vscode terminal with C# Dev Kit #264

skrtz opened this issue Oct 9, 2024 · 2 comments
Labels
area-tutorials Issues related to getting started tutorials needs-more-info Not enough information has been provided. Please share more detail as requested. tutorial-console Console tutorial related issues

Comments

@skrtz
Copy link

skrtz commented Oct 9, 2024

URL

https://dotnet.microsoft.com/en-us/learn/dotnet/hello-world-tutorial/run

Operating system

macos

More information about your system

OS: BigSur

Description

After running the program it fails and opens up a debug consol error:
Internal error in the debugger.
Exception = System.DllNotFoundException

If I run the program in the mac terminal app it runs without issue.

dotnet --info

.NET SDK:
Version: 8.0.403
Commit: c64aa40a71
Workload version: 8.0.400-manifests.18f19b92
MSBuild version: 17.11.9+a69bbaaf5

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

.NET workloads installed:
Configured to use loose manifests when installing new manifests.
There are no installed workloads to display.

Host:
Version: 8.0.10
Architecture: x64
Commit: 81cabf2857

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

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

@skrtz skrtz added area-tutorials Issues related to getting started tutorials needs-triage Issues that haven't been triaged yet labels Oct 9, 2024
@mairaw mairaw added the tutorial-console Console tutorial related issues label Oct 9, 2024
@katiesavage
Copy link

Can you try restarting VS Code? And, to confirm, did you select "Run project..." or "Debug project..."?

@katiesavage katiesavage added needs-more-info Not enough information has been provided. Please share more detail as requested. and removed needs-triage Issues that haven't been triaged yet labels Oct 11, 2024
@skrtz
Copy link
Author

skrtz commented Oct 14, 2024

@katiesavage I ran a restart but same issue. Also, the error persists for both run project and debug. I think the issue is related to my MacBook OS's compatibility with the .NET SDK version. I'm running .NET 8 with Big Sur but unfortunately it looks like 6 is the last compatible version with this OS:

https://learn.microsoft.com/en-us/dotnet/core/install/macos#supported-releases

@skrtz skrtz closed this as completed Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-tutorials Issues related to getting started tutorials needs-more-info Not enough information has been provided. Please share more detail as requested. tutorial-console Console tutorial related issues
Projects
None yet
Development

No branches or pull requests

3 participants