Joe Cartano
Joe Cartano

Reputation: 3037

reference a class library in app code of an asp.net website

I have an asp.net website with a reference to a class library. I can reference the class library in the aspx pages but how do I configure my site so that I can also reference the class library from a .cs file in app code?

Upvotes: 1

Views: 1045

Answers (1)

Jimmy
Jimmy

Reputation: 9815

If you have the reference in your project, you should be able to just add some using clauses to the top of your .cs files to import the code libraries

EDIT: you will need to add a using clause for the namespace of the library, not your project

Upvotes: 1

Related Questions