0

Is there a way I can set the dotnet version to use for the debugger. I am using the one (debugger) that comes with C# Dev Kit. I currently have dotnet 8 and dotnet 2.2 installed but the debugger always defaults to dotnet 8.

Is there a way to force it to use dotnet 2.2 for this specific project not for the whole system. Some configuration file I can use perhaps?

The message I get when I run the debugger: Message From Debugger

My installed SDK's and Runtimes

Installed Runtimes

My SDK's

7
  • Please see: Why should I not upload images of code/data/errors?. Commented Nov 17 at 13:12
  • 1
    There's no dotnet 2.2. The oldest supported .NET (Core) version is 8.0. .NET Core 2.2 reached End of Life on December 2019 and was never a Long-Term-Support version to begin with. C# Dev Kit (released in 2023) was never built to support such old versions Commented Nov 17 at 13:14
  • 1
    What are you trying to do? Why are you trying to use a dead .NET Core version? 2.2 had a lot of issues and missing functionality that was introduced in .NET Core 3.1. There's no good reason to keep using it. Old projects should be upgraded to work with the supported LTS versions at least. If you want to target both .NET Framework and .NET, target .NET Standard 2.0. If you still have to support old projects, .NET 6 was reasonably feature-complete. Commented Nov 17 at 13:19
  • 1
    Are you just trying to ignore the message? Why do you care about that? Commented Nov 17 at 13:19
  • 1
    In any case, the answer is You can't use C# Dev Kit with .NET Core 2.2 because it was already dead before Dev Kit was released Commented Nov 18 at 13:10

1 Answer 1

0

As stated by @PanagiotisKanavos C# Dec Kit does not have support for any Dot Net version below 7, my work around was to use a windows VM (my main system runs linux) with Visual Studio 2019 installed to implement the feature and debug the code.

I should mention that I can run the code perfectly fine using Linux it's just the lack of any debugging tools for that version so you have to write to the console to see what's happening.

The version used in the project should be updated though but that's not my call to make. ̄\_ (ツ)_/ ̄

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.