locked
How do I recreate a solution file when the old one was deleted? RRS feed

  • Question

  • User297437924 posted

    view of open solution

    I had a folder with aspx and aspx.vb files but a problematic solution file.   So I deleted the solution file.   Then I started Visual studio, chose 'open web site', navigated to the folder, and then chose SAVE.   This created a reference to the website, but no solution file.

    So when I try to compile, the 'debug' option (to compile and run) is grayed out.  I assume the absence of a solution file explains the grayed out options.     How do I recreate a solution file (I had to delete the old one because it could not locate IISexpress, then I reinstalled IISexpress, but the old solution file still couldn't work with it).   

    Thanks

    Sunday, February 7, 2021 10:11 PM

Answers

  • User1535942433 posted

    Hi RateFor,

    As far as I think, there's no way to recreate a solution for an existing project.

    I suggest you could create a new blank solution and then add the existing project into the solution.

    Best regards,

    Yijing Sun

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, February 8, 2021 3:36 AM