简体   繁体   English

使用azure发布asp.net mvc

[英]publishing asp.net mvc using azure

Edit: 编辑:

I am deploying my ASP.NET MVC entity framework using azure, but faced with a problem. 我正在使用azure部署ASP.NET MVC实体框架,但遇到了问题。 I have two projects to publish, one of them is a class library, but seems class library is not published. 我有两个要发布的项目,其中一个是类库,但是似乎类库未发布。

Reading this post, Deploying web site to Azure as well as class library , I found that it is related to the model DLL files. 阅读这篇关于将网站部署到Azure以及类库的文章 ,我发现它与模型DLL文件有关。 Should the model file be located in the Web Application project's bin folder? 模型文件应该位于Web应用程序项目的bin文件夹中吗? or the class library's bin folder? 或类库的bin文件夹? What is potentially causing the issue? 是什么可能导致此问题?

test1.png

Add a reference to you class library from the MVC web application. 从MVC Web应用程序添加对类库的引用。 So when you build .dll of your class library will be copied to /bin folder of the web application. 因此,当您构建类库的.dll ,会将其复制到Web应用程序的/bin文件夹中。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM