简体   繁体   English

Visual Studio在打开Web应用程序解决方案时创建bin文件夹?

[英]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.

相关问题 两个版本的 Web 应用程序的 Visual Studio 解决方案 - Visual studio Solution for two versions of a web application Visual Studio 创建乱码文件夹 - Visual Studio creates gibberish folder 通过提供Visual Studio Solution的release文件夹来部署wpf应用程序 - Deploying a wpf application by giving the release folder of Visual Studio Solution 无法在Visual Studio解决方案的调试文件夹中运行应用程序? - Can't run application in debug folder of Visual Studio Solution? Visual Studio构建解决方案不会将dll复制到bin文件夹,但是构建项目可以 - Visual Studio building solution does not copy dll to bin folder, but building project does Web解决方案中的Visual Studio C#调试控制台应用程序 - Visual Studio C# debug console application that is part of web solution Visual Studio不刷新bin文件夹 - Visual studio does not refresh the bin folder 将文件/资源​​移动到Visual Studio中的bin文件夹 - Move files/resources to the bin folder in Visual Studio Visual Studio 2019 未创建 OBJ 或 BIN 文件夹 - Visual Studio 2019 not creating OBJ or BIN folder 打开解决方案时,Visual Studio 2008挂起 - Visual Studio 2008 hangs while opening the solution
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM