How setting VS C# Console App (.NET Framework) template to target Framework 7.0?

To duro 61 Reputation points
2023-07-20T14:33:21.2133333+00:00

The default setting is until Framework 4.8 in my VS 2022.

How set to versions greater than 4.8?

Developer technologies Visual Studio Other
Developer technologies C#
0 comments No comments
{count} votes

Accepted answer
  1. Viorel 122.5K Reputation points
    2023-07-20T14:51:04.08+00:00

    Try to create a new “Console App” project instead of “Console App (.NET Framework)”. In the New Project dialog, select “.NET 7.0” and optionally the “Do not use top-level statements” option.

    Then copy your code from previous project. (Sometimes some adjustments are required).

    The new versions are called “.NET” without “Framework”. You can find the details in documentation.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.