[英]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:但是,这些依赖于其他一些库:
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.