开发者

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

开发者 https://www.devze.com 2023-02-04 16:23 出处:网络
I have an asp.net website with a reference to a class libr开发者_开发知识库ary. I can reference the class library in the aspx pages but how do I configure my site so that I can also reference the clas

I have an asp.net website with a reference to a class libr开发者_开发知识库ary. 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?


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

0

精彩评论

暂无评论...
验证码 换一张
取 消