1

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?

3
  • what makes you think you can't access types in your class library from classes located in App_Code !? What are the error messages? Commented Jan 13, 2011 at 2:05
  • well, I have a class in app code and a reference to a class library in bin and I can't say something like using MyLibrary; in the class in app code Commented Jan 13, 2011 at 2:08
  • In my website project (not WAP) I see that I can reference the class library but there is no intellisense. Commented Jan 14, 2011 at 18:18

1 Answer 1

1

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

Sign up to request clarification or add additional context in comments.

1 Comment

This is correct, I think I must have been seeing a bug in Visual Studio as there was no intellisense until I reopened the project.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.