简体   繁体   English

如何在带有VS的ASP.NET MVC中部署/发布两个项目(Codeplex:AspNet.Identity.MySQL)

[英]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服务器。

  1. The first project in my Solution is AspNet.Identity.MySQL which 我的解决方案中的第一个项目是AspNet.Identity.MySQL,
    allows me to use Entity Framework in combination with Identity 2.0 允许我将Entity Framework与Identity 2.0结合使用
    and MySQL. 和MySQL。 It is from codeplex. 它来自codeplex。 https://aspnet.codeplex.com/SourceControl/latest#Samples/Identity/AspNet.Identity.MySQL/ https://aspnet.codeplex.com/SourceControl/latest#Samples/Identity/AspNet.Identity.MySQL/
  2. The second project is my ASP.NET MVC application. 第二个项目是我的ASP.NET MVC应用程序。

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是ASP.NET MVC应用程序

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.

相关问题 如何将MySql与asp.net身份一起使用以及将MVC与Microsoft ASP.NET身份示例一起使用? - How to use MySql with asp.net identity and MVC with Microsoft ASP.NET Identity Samples? 如何在Mac上使用Vs代码部署ASP.NET Core MVC? - How to Deploy ASP.NET Core MVC with Vs Code on a Mac? ASP.NET核心MVC MySQL身份 - ASP.NET Core MVC MySQL Identity 在多个项目中使用 Asp.net mvc 标识 - Using Asp.net mvc identity in multiple projects ASP.NET MVC Integrated Identity项目如何仅一次创建表? - How does ASP.NET MVC Integrated Identity projects create tables once and only once? 如何使用AspNet.Identity使用Asp.Net MVC5 RTM位登录/验证用户? - How do you login/authenticate a user with Asp.Net MVC5 RTM bits using AspNet.Identity? 如何在ASP.NET项目中发布引用的项目 - How to publish referenced projects within an ASP.NET project 单点登录使用两个ASP.NET MVC项目之间的ASP.NET标识 - Single Sign On using ASP.NET Identity between 2 ASP.NET MVC projects 不使用Microsoft.AspNet.Identity.EntityFramework的自定义Asp.net MVC 5身份验证 - Custom Asp.net mvc 5 authentication without using Microsoft.AspNet.Identity.EntityFramework 在asp.net mvc中获取用户ID aspnet.Identity的用户名 - Get username by user ID aspnet.Identity in asp.net mvc
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM