Visual Studio 2022 debugging mode unavailable

Yağız Atilla Aktaş 0 Reputation points
2023-05-11T21:07:52.4533333+00:00

Hello everybody, I have an problem...

There should be "debug" and "any cpu" options where I circled, but there is no option, I can't debug either.

I need a solution.

Visual Studio 2022, 17.5.5 version.

User's image

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,888 questions
Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
967 questions
{count} votes

1 answer

Sort by: Most helpful
  1. David Lowndes 4,711 Reputation points
    2023-05-11T22:21:09.2466667+00:00

    It looks like you've just created a single standalone .cs file. VS needs a "project" to build.
    Start again by using the File, New Project option and choose the Console App (C#).

    1 person found this answer helpful.
    0 comments No comments