Visual Studio version selector always chooses preview version

Péter Hazai 36 Reputation points
2022-07-08T10:27:09.253+00:00

I have Visual Studio 2022 Pro and 2022 Pro Preview versions both installed on my system. Since the preview version installed, all my solution files opens with the preview version but I rather like it to be opened with the previous RTM build (in which that solution actually had been created). My current workaround is to rightclick on sln file and choose "Open with...", but this is very inconvinient and sometimes I forgot which can lead to other issues.
It there a better workaround, or maybe set the version selector to prefer different application for current version defined in the solution file?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,875 questions
Visual Studio Setup
Visual Studio Setup
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Setup: The procedures involved in preparing a software program or application to operate within a computer or mobile device.
1,010 questions
0 comments No comments
{count} votes

Accepted answer
  1. Anna Xiu-MSFT 27,816 Reputation points Microsoft Vendor
    2022-07-11T03:17:48.76+00:00

    Hi @Péter Hazai ,

    Welcome to Microsoft Q&A!

    If you want to open .sln file with Visual Studio 2022 Pro version, you can select Start > Settings > Apps > Default apps > Choose default apps by file type.
    Then, you can navigate to .sln file and select the stable Visual Studio version you want to open with.

    You can refer to: Change default programs in Windows.

    Sincerely,
    Anna
    *
    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful