如何使用visual studio community for mac将ASP.NET应用程序发布到azure? [英] How to publish ASP.NET application to azure using visual studio community for mac?

查看:71
本文介绍了如何使用visual studio community for mac将ASP.NET应用程序发布到azure?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我是Mac OS新手,我已经为MAC安装了Visual Studio社区,并在.net中创建了我的应用程序。现在我一直在寻找通常出现在WINDOWS操作系统中的VS社区的发布选项,但它不在那里。

如何将应用程序发布到Visual Studio社区的Azure用于MAC?



我尝试过:



右键单击解决方案时未找到任何发布选项。

Hi,
I am new to Mac os and i have installed Visual studio community for MAC and created my application in .net. Now I was looking for Publish option that usually appears with VS community in WINDOWS OS but it is not there.
How to publish the application to azure from Visual studio community for MAC?

What I have tried:

No publish option found on right clicking the solution.

推荐答案

我找到了问题的答案并在此处发布。



以下是部署我们的问题的步骤应用到创建的网站:



(注意:由于Mac系统没有直接从Visual Studio发布的选项,我使用Visual Studio Code进行部署Git)



1.在Visual Studio Code中打开应用程序,选择Git(本地安装) - >单击Initialize Git Repository,然后提交所做的更改。

2.现在单击Explorer并右键单击面板 - >选择在终端中打开

3.现在在终端中输入以下命令:

git remote add azure ________(该URL应该从Git Clone URL下的azure门户网站复制)。

4. git push -u azure master(这里git master分支中的代码被推送到上一步用URL创建的azure分支)。

5.现在输入在azure portal中创建的密码。



结果它应该推送代码并成功部署。
I found the answer for my question and posting it here.

Following are the steps to deploy our application to the website created:

(Note: As The Mac system does not have an option to publish directly from Visual studio, I have used Visual Studio Code for deployment Via Git)

1. Open the application in Visual Studio Code, choose the Git (installed locally)-> click Initialize Git Repository, then commit the changes made.
2. Now click on Explorer and right click on the panel-> choose open in terminal
3. Now enter the following commands in the terminal:
git remote add azure ________(the URL should be copied from the azure portal under Git Clone URL).
4. git push -u azure master (here the code in master branch of git is being pushed to azure branch created in previous step with the URL).
5. Now enter the password created in azure portal.

As the result it should push the code and becomes successful deployment.


我遇到了同样的问题,看起来多个论坛上的问题没有答案。你有没有弄明白?
I am having the same issue and it looks like there is no answer to the question on multiple forums. Did you ever figure it out?


这篇关于如何使用visual studio community for mac将ASP.NET应用程序发布到azure?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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