开发者

creating a class library in asp.net

开发者 https://www.devze.com 2023-01-03 15:14 出处:网络
how to create a class library file and how to imp开发者_开发百科lement in web forms?Just right-click the solution in Solution Explorer and choose Add->New Project. As the project type, choose \"Class

how to create a class library file and how to imp开发者_开发百科lement in web forms?


Just right-click the solution in Solution Explorer and choose Add->New Project. As the project type, choose "Class Library".

As to how to use it, it's easy if you used a Web Application Project (File->New Project), but I don't know how to do it if you used File->New Web Site (I never use that).

If you used a Web Application Project, then just right-click the project and choose "Add Reference". Then click the "Project" tab, and select the class library project from the list. Click ok and you're done.


Not really sure what the question is - you add a new project to your solution and choose "Class Library"?

Depending on what you're putting in your class library you might need to manually add references to ASP.Net assemblies.

0

精彩评论

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