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?
-
what makes you think you can't access types in your class library from classes located in App_Code !? What are the error messages?Pauli Østerø– Pauli Østerø2011-01-13 02:05:25 +00:00Commented 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 codeJoe Cartano– Joe Cartano2011-01-13 02:08:55 +00:00Commented 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.Joe Cartano– Joe Cartano2011-01-14 18:18:56 +00:00Commented Jan 14, 2011 at 18:18
Add a comment
|
1 Answer
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
1 Comment
Joe Cartano
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.