How to debug classlibrary project code


I create a new classlibrary project, the default debug configurations show "no projects to run", so how to debug classlibrary code? 

see my screenshot

my way is create nunit project to test code, but in this way, I don't know how to import Class1 in Class1Test.cs.

so how to debug classlibrary code, here is my full project 

1 comment
Comment actions Permalink

There are multiple possibilities

1. Type class name and Alt+Enter on type will propose to add reference and add using at once

2. Normal way would require to add reference - call it from project context menu.


Please sign in to leave a comment.