How to debug classlibrary project code

Answered

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 https://github.com/roroco/How.To.Dbg.Cs.Lib.Code 

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.

0

Please sign in to leave a comment.