[英]Visual Studio creates bin folder on opening web application solution?
Visual Studio is creating a \\bin folder and copying various assemblies into it when I open a web application solution, even before I compile Visual Studio正在创建一个\\ bin文件夹,并在我打开Web应用程序解决方案时将各种程序集复制到其中,甚至在我编译之前
What is triggering this action? 是什么触发了这个动作?
And how do I control it? 我该如何控制它?
Reason I'm questioning the process, is the assemblies are not the expected ones 我正在质疑这个过程的原因是装配不是预期的
This is where Visual Studio puts all the dlls for runtime for your project. 这是Visual Studio为项目提供运行时的所有dll的地方。 Library dependencies that the project needs. 项目需要的库依赖项。 All the dlls that Visual Studio needs for a web project are kept here as well as other packages from Nuget that you might add, and your own. Visual Studio对Web项目所需的所有dll以及Nuget中您可能添加的其他软件包以及您自己的软件包都保存在此处。 If you look in the References section in the Web Project, you will see many of the dlls that appear in the bin directory. 如果查看Web项目的“引用”部分,您将看到bin目录中出现的许多dll。
If there are some assemblies there that you do not want. 如果有一些你不想要的组件。 You can try removing the reference from the Reference folder. 您可以尝试从Reference文件夹中删除引用。 Right click on the library in the Reference folder and select remove. 右键单击Reference文件夹中的库,然后选择remove。
Be careful with removing references though, because your project may need it to function. 但要小心删除引用,因为您的项目可能需要它才能运行。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.