部署的网站的Azure以及类库 [英] Deploying web site to Azure as well as class library

查看:201
本文介绍了部署的网站的Azure以及类库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想部署一个ASP.NET MVC 4网站天青。在我的解决方案,我有两个项目:其中包含的文件夹视图,控制器,jQuery的,CSS等其他项目是一个类库,它包含了所有的车型,如数据模型,和的ViewModels迁移设置实体框架的MVC项目。

I am trying to deploy an ASP.NET MVC 4 Website to Azure. In my solution I have two projects: The MVC project which contains folders for views, controllers, jQuery, CSS etc. The other project is a class library which contains all of the models such as data models, viewmodels and migration settings for Entity Framework.

我已经发布了第一个项目(MVC的网站),没有任何问题到Azure但当然离不开一流的库函数。没有选项公布类库,当我右键点击它。

I've published the first project (the MVC website) to Azure with no problems but of course it can't function without the class library. There is no option to publish the class library when I right click on it.

如何发布的类库以及因此在Azure中MVC项目能够访问它

How do I publish the class library as well so the MVC project in Azure has access to it.

下面是显示我的解决方案(项目名称删节)图像:

Here's an image showing my solution (project name redacted):

推荐答案

如果您的dependencys MVC的项目权,使用VS部署(由发布配置文件),它会自动上传要部署的主要项目的所有相关的项目。

If you have the dependencys of the MVC Project right, using VS to deploy (by publish profile) it will automatically upload all the dependent projects of the main project you want to deploy.

这是之一认为,你必须说,它只是工作

It's one of the thinks that you must say that it just works

这篇关于部署的网站的Azure以及类库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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