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 | Visual Studio | Other
A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.
Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
{count} votes

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 31,156 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' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.