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

前端 未结 30 1900
名媛妹妹
名媛妹妹 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:12

    @Flowerking's commend did it for me.

    Right click on you project and select "Set as StartUp Project".

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

    Just delete the .vs hidden folder. This folder resides at the same location where the sln file is. Deleting this folder also refreshes intellisense cache and would fix any issues with that. Hope this helps.

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

    Had the Same Issue with the existing application, I deleted the vs settings but still the issue remained,

    Finally i just restarted the VS and it worked fine.

    I think sometimes when we load the project some library doesn't get loaded with the solution so the best option before doing anything is simply restarting the VS.

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

    Just restart your visual studio and run as admin.

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

    I also faced to this issue in VS 2015 , but finally I resolved it by following bellow steps

    In VS go to : Tools -> Options - > Projects and Solutions -> Build and Run

    Select "Always Build" in "On Run when project are out of date"

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

    Close the Visual Studio and re-open it again.

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