# Payload creation \[.NET]

## Interacting with application libraries

If we want to interact with application code in order to get some information from the code of debugged information we have to Import References:

**Project > Add Reference**

<figure><img src="https://1482599896-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FnRXyYnODTImJmzJG5aHD%2Fuploads%2FGIUNBOBGxFpkZPLoigRI%2Fimage.png?alt=media&#x26;token=7c617f2d-425c-4147-8ee5-6109f1ac38c5" alt="" width="308"><figcaption></figcaption></figure>

After that we have to select all required libraries, if they are not present we have to browse for .dll file containing the data.

## DNSpy + local program

Want to play a little bit with functions in dnSpy using your own program?

Try this:

**Debugger > Start Debugging > Enter path for debug binary**
