凡存储Web应用程序项目集引用? [英] Where are Web Application Project Assembly references stored?

查看:96
本文介绍了凡存储Web应用程序项目集引用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在哪里组装refernces存储为Web应用程序?

Where are assembly refernces stored for a web application?

在一个网站,我看到写在web.config中的装配节点装配标记,当你添加一个引用。我只是好奇,怎么Web应用程序项目,使得到正确的本地的dll的连接?

In a Web Site, I see assembly tags written to the assembly node in the web.config when you add a reference. I am just curious as to how the Web Application Project makes the connection to get the correct local dll?

我手动添加引用和应用程序构建,但该dll不会导入到bin文件夹,并在Web配置,因为他们是在一个网站不创建装配节点。我做一个解决方案,搜索文本组件=SomeAssembly ......,没有结果发现。

I manually add the reference and the application builds, but the dll is not imported into the BIN folder, and the assembly nodes are not created in the web config as they are in a Web Site. I do a solution search for the text 'assembly="SomeAssembly..." and no results are found.

我只是好奇,我想作为一个第三方供应商的控制推出修补程序定期集中更新程序集引用,我们最终不得不奔波和更新所有的个人页面refernces大会。我能在网站项目有效地做到这一点,但我是相当新的Web应用程序项目。任何意见或链接将AP preciated。我想我在寻找的装配和放提示;控制基准管理ASP.NET Web应用程序项目。

I am just curious as I am trying to centralize updating assembly references as a 3rd party control vendor puts out hotfixes on a regular basis and we end up having to run around and update all the individual page refernces to the assembly. I was able to do this effectively in the Web Site project, but I am fairly new to Web Application Projects. Any advice or links would be appreciated. I guess I'm looking for tips on assembly & control reference management for ASP.NET Web Application Projects.

推荐答案

最喜欢的Visual Studio项目,引用保持在项目中。

Like most Visual Studio projects, references are kept in the project.

有两种参考:

项目引用是指在同一个解决方案的另一个项目引用。他们看起来是这样的:

Project References are references to another project in the same solution. They look like this:

<ProjectReference Include="..\VBClassLibrary1\VBClassLibrary1.vbproj">
  <Project>{045D7D9F-8E44-4C4B-95F8-620E86593C5B}</Project>
  <Name>VBClassLibrary1</Name>
</ProjectReference>

文件引用到磁盘上的任意文件引用:

File references are references to an arbitrary file on disk:

<Reference Include="System.Core">
  <RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>

如果您展开引用文件夹,然后单击参考,然后查看属性窗口中,你会发现这两种基准有一个复制本地属性。对于项目它引用默认为真,为假文件引用(尽管也许这只是如果该文件是在GAC)。更改默认补充说:

If you expand the References folder and click on a reference, then look in the Properties window, you'll see that both kinds of reference have a "Copy Local" property. For project references it defaults to true, for file references to false (though maybe that's only if the file is in the GAC). Changing the default adds:

  <Private>False</Private>

这篇关于凡存储Web应用程序项目集引用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆