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

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

    I had visual studio 2015 with an ASP.net MVC5 arcitectured with DDD (Domain Driven Design). The problem was the same since I just opened visual studio normally.

    The problem was solved when I closed all instance visual studio and restarted as an adminstrator.

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

    There is no need to delete everything in my case, I just opened the

    "CurrentSettings.vssettings"

    file and commented this property

    <PropertyValue name="DefaultBehaviorForStartupProjects">1</PropertyValue>
    

    and everything fixed.

    Sample

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

    I just had the same problem and solved it by deleting the .vs directory in the project directory.

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

    Make sure you're launching Visual Studio as Administrator.

    1. Right click on the Visual Studio 2015 Shortcut
    2. Select the Shortcut tab
    3. Click on Advanced
    4. Check the box to "Run as administrator" at all times(see below)

    This has resolved the issue for me with the exact error message in question.

    It is not ideal to run the VS in administrator mode at all times. Make sure you un-check the box once your issue has been resolved.

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

    I had this problem when I tried to start (without) Debugging my Asp.Net MVC project

    are you running Visual studio as Administrator

    so just restart visual studio As Administrator

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

    I had this with a Xamarin.iOS project in my Xamarin.Forms solution. I tried every suggestion here, without success.

    The source of the error was a misconfigured .csproj of the project. I never edited it myself and not even touched the project properties. I use Visual Studio 2017 RC. I came across the solution when I compared the project file with previous versions on Source Control.

    Solution: Compare the project file with a previous version and try to granually revert changes until you eliminated the problem and know what the cause was.

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