简体   繁体   English

Web 部署不包括部署中 NHibernate 所需的文件

[英]Web Deploy does not include files necessary for NHibernate in deployment

I am building my deployment process and I am running into a really annoying problem.我正在构建我的部署过程,我遇到了一个非常烦人的问题。

Using Visual Studio 2010 Sp1 on a.Net4 project with ASP.NET MVC3 that I want to deploy to an IIS7.5 webserver.在带有 ASP.NET MVC3 的 A.Net4 项目上使用 Visual Studio 2010 Sp1,我想将其部署到 IIS7.5 网络服务器。 The deployment works fine - both from Visual Studio and command line - except for this one important part:部署工作正常 - 来自 Visual Studio 和命令行 - 除了这一重要部分:

I am using NHibernate (with Fluent NH) in a class library that is referenced by my web app.我在 web 应用程序引用的 class 库中使用 NHibernate(带有 Fluent NH)。 These were installed using NuGet, and also show up on the server when deployed.这些是使用 NuGet 安装的,并且在部署时也会显示在服务器上。

However, these depend on some other libraries:但是,这些依赖于其他一些库:

  • Castle.Core城堡核心
  • Iesi.Collections Iesi.Collections
  • NHibernate.ByteCode.Castle NHibernate.ByteCode.Castle

These are also fetched by NuGet, they are referenced in my class library, and the references have "Copy Local" set to True.这些也由 NuGet 获取,它们在我的 class 库中被引用,并且引用将“复制本地”设置为 True。 However, out of these three, only Iesi.Collections actually show up on the server!但是,在这三个中,实际上只有 Iesi.Collections 出现在服务器上!

Of course, I can copy them manually, but the next time I run the deploy, it will delete them.当然,我可以手动复制它们,但是下次运行部署时,它会删除它们。 Deleting unused files is actually something I want, but these files should not be in that category!删除未使用的文件实际上是我想要的,但这些文件不应该属于那个类别!

What can I do to make Web Deploy respect the fact that these guys are desired members of my application??我该怎么做才能使 Web Deploy 尊重这些人是我的应用程序所需成员的事实?

Try adding those assemblies as references to your web project otherwise implicit references in class libraries might not be included.尝试将这些程序集添加为对 web 项目的引用,否则可能不包括 class 库中的隐式引用。

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

相关问题 为什么我的Web部署项目会从我的MVC2项目中删除.ascx文件? - Why does my Web Deployment Project remove .ascx files from my MVC2 project? 为什么Visual Studio 2008 Web部署项目会创建不需要的文件? - Why does a Visual Studio 2008 web deployment project create unwanted files? 如何将“ Web部署程序包”部署到我的实时服务器 - How to deploy a “Web Deployment Package” to my live server Web 部署“删除目标位置的其他文件”但出现异常 - Web Deploy "Remove additional files at destination" with exception 是否需要绑定(包括=“”,“”等) - Is Bind(Include = “”,“”,etc) necessary 如何使用Web Essentials在网页中包含LESS文件? - How to include LESS files in web page using Web Essentials? 部署到Azure虚拟目录-Web部署任务失败(无法完成对远程代理URL的请求 - Deploy to Azure Virtual Directory - Web deployment task failed.(Could not complete the request to remote agent URL Web场中的nHibernate策略 - nHibernate strategies in a web farm 如何在Visual Studio项目中包含网络网站源文件 - how to include net web site source files in Visual Studio project 是否有人知道使用ASP.NET MVC1或MVC2,NHibernate,Fluent NHibernate和Castle的Solid Web示例? - Does Anyone Know Of A Solid Web Example Using ASP.NET MVC1 or MVC2, NHibernate, Fluent NHibernate & Castle?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM