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

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

    VS 2019, two Core 3.1 projects (an MVC and an API), brand new projects created, no other changes to the solution or projects.

    I kept getting the referenced error when trying to start both projects within the IDE, despite having checked all the things already mentioned in this SO.

    However, I finally realized, I forgot to specify the "Action" after switching the solution to "Multiple startup projects" (they were both still set to "None"). Right-click solution in "Solution Explorer", choose "Properties" (at very bottom).

    Such a ridiculously simple thing. Hope it helps someone else.

    "Broken"

    Working

提交回复
热议问题