migratin visual studio project to 2022

chang Weisen 1 Reputation point
2022-06-02T07:21:15.373+00:00

hi, i have just installed vs 2022 and i opened my old project 2019, so it cannot be run ( unable to start debugging )

The error message pops up when I want to close the Visual Studio by X button

207765-error-file.jpeg

Developer technologies | Visual Studio | Other
Developer technologies | C#
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2022-06-06T13:53:45.227+00:00

    Hi @chang Weisen ,

    Thanks for your feedback!

    Since the issue has been resolved, I will post this answer so that other users can find the solution more easily.

    Solution:
    Please close all VS instances and delete the hidden .vs, bin and obj folders in the project folder.
    Then, rebuild your project.

    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.

    0 comments No comments

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.