Cannot debug project after upgrading to Service Fabric SDK v2.3.301

后端 未结 3 1665
心在旅途
心在旅途 2021-01-15 16:10

Recently upgraded to Service Fabric SDK v2.3.301, but for some reason my project got corrupted. I cannot debug the project, I get the following error: \"A project with an Ou

相关标签:
3条回答
  • 2021-01-15 16:50

    I have had the same issue a couple of times. I have not been able to identify the source. But I have solved it with the following actions:

    1. Close all Visual Studio windows.
    2. Restart the Service Fabric service: Type services.msc in the windows run tool. Find Microsoft Service Fabric Host Service. Right Click + Restart.
    3. Reset the local cluster: Look at the Service Fabric Local Cluster Manager Icon in the notification area in the right side of the task bar. Right Click + Reset Local Cluster.
    4. Open the problematic solution in Visual Studio.
    5. Clean and Rebuild solution.
    6. Finally run your solution (press F5).

    Hope this helps.

    0 讨论(0)
  • 2021-01-15 16:56

    We have been using Service Fabric to develop a product for about a year with various versions of the SDK and I see this frequently. It happens both when hitting F5 with the SF Application as the sole startup project and even when right-clicking the SF Application and choosing "Debug -> Start New Instance".

    Sometimes I have to try several times before it finally works. Other developers in our team see this as well, going all the way back to v2.0.

    One thing that seems to make it happen less frequently is not touching anything on your computer after launching the project. Don't click anything else. Don't select another window. Let go of the mouse. Don't touch the keyboard.

    Something I've started doing on the advice of a colleague is choosing "Debug -> Start Without Debugging", then attaching to the process if I want to debug it. I've had better luck with this approach in general - including not getting the "A project with an Output Type of Class Library cannot be started" issue.

    I hope that helps.

    0 讨论(0)
  • 2021-01-15 17:08

    The error indicates that the service fabric application project (*.sfproj) is not set as start up project. Please try to change the start up project as some other project and again change it back to service fabric application project and see if that resolves the issue.

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