A project with output type of class library cannot be started directly - with a startup exe

后端 未结 9 821
南方客
南方客 2020-12-20 11:38

Firstly I\'m completely aware of this message and why it happens normally. It\'s not that I\'m just trying to run a dll (like this question).

I have a project that c

相关标签:
9条回答
  • 2020-12-20 12:19

    no just make a start up project

    0 讨论(0)
  • 2020-12-20 12:19

    I've seen this as well, and it seems like a bug in VS. It happens after you right-click/build a class library (that requires rebuilding), and then right-click/debug > start new instance.

    edit- It's still very intermittent, I can't seem reproduce it reliably

    0 讨论(0)
  • 2020-12-20 12:22

    I've found that I've had the Startup Project on the Solution set to Current selection, then at some point, I've unloaded a project, and the solution has reverted to Single startup project on a project that happens to be a class library.

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