简体   繁体   English

如何将我的Visual Studio 2013 C#.NET MVC网站发布到Azure?

[英]How to publish my visual studio 2013 C# .NET MVC Website to Azure?

I have created a project using C#.NET MVC 4.0 and I want to publish the project (website) to my azure account... I cannot see any way of publishing my project to my windows azure? 我已经使用C#.NET MVC 4.0创建了一个项目,并且想要将该项目(网站)发布到我的Azure帐户...我看不到任何将项目发布到Windows Azure的方法吗? I have followed the Cloud service set up guide only to be utterly confused at how I link it up to my existing project? 我一直遵循Cloud Service设置指南,只是对如何将其链接到现有项目感到困惑。

Any help? 有什么帮助吗?

So overview is, I have a project (MVC web application) and I just want to publish it to azure so that it works like a website others can view. 因此,概述是,我有一个项目(MVC Web应用程序),我只想将其发布为天蓝色,以便它像其他人可以查看的网站一样工作。

我会尝试右键单击“项目Project Explorer部分中的Project Explorer然后按照“ Publish或“ Deploy查找内容。

One of the easiest ways of getting your MVC project "out there" is to go to the Azure portal, and create a new "Web Site". 使MVC项目“移出”最简单的方法之一就是转到Azure门户,并创建一个新的“网站”。 The difference between Azure Websites and Azure Cloud Services are answered in other questions here on Stack. 堆栈上的其他问题回答了Azure网站和Azure云服务之间的区别。 Here is how you can do it with Azure Websites: 使用Azure网站的方法如下:

  1. In the Azure portal create a new website. 在Azure门户中创建一个新网站。
  2. On the WebSites dashboard, click the link "Download the publish profile". 在“网站”仪表板上,单击链接“下载发布配置文件”。
  3. Open up your solution in Visual Studio 2013, right click your web-project and select "Publish...". 在Visual Studio 2013中打开您的解决方案,右键单击您的Web项目,然后选择“发布...”。
  4. In the dialogbox, click "Import..." to import the publish profile you just downloaded. 在对话框中,单击“导入...”以导入刚刚下载的发布配置文件。
  5. Hit the "Validate Connection" button to verify that everything is OK. 点击“验证连接”按钮以确认一切正常。
  6. Click publish and your MVC application gets published to your newly created Azure Website. 单击发布,您的MVC应用程序将发布到您新创建的Azure网站。

Another option is to deploy directly from sourcecontrol eg. 另一个选择是直接从sourcecontrol部署,例如。 GitHub. GitHub上。 Follow the wizard in the Azure portal. 按照Azure门户中的向导进行操作。 In the website dashboard, hit the link "Set up deployment from source control". 在网站仪表板中,单击链接“从源代码管理设置部署”。

是的,转到azure门户-创建网站并使其处于启动模式,然后进入Visual Studio选择发布-从azure网站导入-只需输入您的凭据,VS就会自动获取设置并显示我们创建的网站-只需从列表中选择即可。就是这样-无需明确下载发布配置文件。

This video series the last part explains really well how to deploy to Azure, with all the small details involved. 该视频系列的最后一部分非常好地解释了如何部署到Azure,并涉及了所有小细节。

Series: 系列:
http://www.pluralsight.com/courses/mvc4-building http://www.pluralsight.com/courses/mvc4-building

Direct link to relevant vid: 直接链接到相关的vid:
http://www.pluralsight.com/training/player?author=scott-allen&name=mvc4-building-m10-deploy&mode=live&clip=0&course=mvc4-building http://www.pluralsight.com/training/player?author=scott-allen&name=mvc4-building-m10-deploy&mode=live&clip=0&course=mvc4-building

暂无
暂无

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

相关问题 在Visual Studio 2013上发布用c#asp.net创建的网站,我需要做什么? - What do I need to do to publish a website made in c# asp.net on Visual Studio 2013? 如何在Visual Studio 2013中编辑ASP.Net MVC C#项目模板文件? - How can I edit ASP.Net MVC C# project template files in Visual Studio 2013? c# Visual Studio Ultimate 2013 asp.net 网站发布部署 - c# visual studio ultimate 2013 asp.net website release deployment (Visual Studio) 如何将 powershell 脚本导入 c# 项目,以便我可以将 .NET 应用程序与脚本一起发布 - (Visual Studio) How to import powershell scripts into c# project so that I can publish my .NET application together with the scripts 在Visual Studio 2013上运行下载的MVC C#博客模板 - run downloaded mvc C# blog template on visual studio 2013 如何在Visual Studio 2013 Mvc4 C#上添加服务器提供程序名称 - how to add a server provider name on visual studio 2013 Mvc4 c# 如何使用发布配置文件将Visual Studio 2013中的项目和数据库导入网站 - How to import projects and database from visual studio 2013 to website using publish profile 尝试从 Visual Studio 2013 更新 4 发布 azure webjob - Trying to publish an azure webjob from visual studio 2013 update 4 如何从发送到我的电子邮件的文本框中获取信息? (C#,Visual studio 2013) - How do I get information from a text box sent to my email? (C#, Visual studio 2013) 如何使用Visual Studio在C#应用程序中发布Access数据库? - How do I publish an Access database with my C# application using Visual Studio?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM