Unable to start debugging. The startup project could not be launched. VS2015

前端 未结 30 1899
名媛妹妹
名媛妹妹 2020-12-14 13:27

I have started a new console project in VS2015. I only have this code :

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text         


        
相关标签:
30条回答
  • 2020-12-14 14:23

    I had this problem developing a react native app for windows in Visual Studio 2019. I started the debugger then stopped it in the terminal by using ctrl-C. I was not able to restart the debugger and the "start debugging" and "start without debugging" options were disabled in the debug dropdown. Restarting Visual Studio, etc, and some of the things described above did not work. Through hunting and testing, I noticed that if I switched views in the Solution Explorer to the MyProject.sln instead of the fileview, the debugging was enabled again. I'm not sure why, but it appears I need to be in the sln view to start the debugger.

    0 讨论(0)
  • 2020-12-14 14:24

    The solution for me was to delete all *.user files that are normally generated for both solution and project files

    0 讨论(0)
  • 2020-12-14 14:24

    I got this problem solved by clearing MEF component cache.

    Use this VS Extension to clear cache very easily.!!

    0 讨论(0)
  • 2020-12-14 14:25

    After upgrading MSVC2015 to Update3, I had the same problem: instead of std::map in the Watch window display as a horrible std::_Tree<std::_Tmap_traits... etc., some plugins started to throw exceptions, some projects was not able to run in debug mode.

    All was solved by deleting CurrentSettings.vssettings. It is usually located at Documents\Visual Studio 2015\Settings If not, go to `Tools -> Options -> Environment -> Import and Export Settings ' to find the location of this file.

    0 讨论(0)
  • 2020-12-14 14:31

    Delete all relevant /obj and /bin folders. Run again.

    0 讨论(0)
  • 2020-12-14 14:32

    Additionally to "Unable to start debugging" I also had errors "The operation could not be completed: Unspecified error" when I tried to rebuild.
    Thanks to Visual Studio popup: "the operation could not be completed" it was enough to close Visual Studio 2015 and then open again.

    0 讨论(0)
提交回复
热议问题