简体   繁体   English

C#dll初学者-它在哪里?

[英]C# dll beginner - where does it go?

So i've created my first C# Class Library. 因此,我创建了我的第一个C#类库。 I've created my one method. 我已经创建了一种方法。 I've got my dll and have set the reference in my web project and it works locally. 我已经有了自己的dll,并在我的网络项目中设置了引用,并且它可以在本地运行。

Now I create my war file and deploy it on our webserver. 现在,我创建我的war文件并将其部署在我们的网络服务器上。

Is the DLL bundled in the WAR file or do I need to create a directory on the webserver with the DLL in it? DLL是否捆绑在WAR文件中,还是需要在其中包含DLL的Web服务器上创建目录?

Sorry if this is a basic question, but I can't seem to find an answer. 抱歉,这是一个基本问题,但我似乎找不到答案。

Thanks! 谢谢! Leslie 莱斯利

Your web project should have a bin folder. 您的Web项目应该有一个bin文件夹。 You can place your dll there. 您可以在其中放置dll。

只要您具有对DLL的引用,并且已将其复制到Web项目中的bin文件夹中,就可以了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM