[英]How to Deploy/Publish two projects in ASP.NET MVC with VS (Codeplex: AspNet.Identity.MySQL)
I have created an ASP.NET MVC 5 project with Entity Framework and a MySQL database. 我已经使用实体框架和MySQL数据库创建了一个ASP.NET MVC 5项目。 In Debug-mode everything works perfectly, but now I would like to publish it to my IIS-Server.
在调试模式下,一切都可以正常运行,但是现在我想将其发布到IIS服务器。
Publishing the second project by itself is no problem. 单独发布第二个项目没有问题。 I just don´t know how to publish the first project (AspNet.Identity.MySQL).
我只是不知道如何发布第一个项目(AspNet.Identity.MySQL)。
Long story short, I have this and don´t know how to deploy/publish it via File-System: 长话短说, 我有这个,不知道如何通过文件系统部署/发布它:
IdentityWeb is the ASP.NET MVC Appliaction. IdentityWeb是ASP.NET MVC应用程序。
Thanks for your help, Beardy Bear 谢谢您的帮助,Beardy Bear
The first project AspNet.Identity.MySql
is a class library, so it's output is a DLL only. 第一个项目
AspNet.Identity.MySql
是一个类库,因此它的输出仅是DLL。 When you build the solution, a DLL is output into the bin folder. 生成解决方案时,DLL将输出到bin文件夹中。 If project
IdentityWeb
has a reference to the other one, the DLL for it will appear in the bin for that project too. 如果项目
IdentityWeb
引用了另一个,则其DLL也将出现在该项目的bin中。
As long as when you publish the IdentityWeb
project, it has the DLL AspNet.Identity.MySQL.dll
in the bin, then you should be able to deploy your ASP.NET MVC application to IIS. 只要发布
IdentityWeb
项目,该项目在bin中具有DLL AspNet.Identity.MySQL.dll
,那么您就应该能够将ASP.NET MVC应用程序部署到IIS。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.