在不向外部存储库添加源代码的情况下将WCF服务发布到Azure? [英] Publish WCF service to Azure without adding source code to external repository?

查看:74
本文介绍了在不向外部存储库添加源代码的情况下将WCF服务发布到Azure?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我们在VS2017中创建了一个WCF服务,并决定在Azure中发布它以了解它是如何发展的。 Azure有200美元的功劳,所以我决定尝试一下。

We create a WCF service in VS2017 and decided to publish it in Azure to see how it goes. Azure has a $200 credit, so I decided to try it out.


当我尝试发布它时,Visual Studio告诉我必须添加源代码在将服务发布到Azure之前,将代码写入远程源控件。我不能这样做,因为我们的客户希望将所有源代码保存在公司的服务器中。

When I try to publish it, Visual Studio tells me that I have to add the source code to a remote source control before publishing the service to Azure. I cannot do that because our client wants to keep all the source code within the company's servers.


我们只需要Azure,这样我就可以发布服务了外部可以访问。

We just need Azure so that I can publish the service so it's accessible to the outside.


将我们的源代码复制到远程存储库是否需要在Azure中发布WCF服务?

Is copying our source code to a remote repository a requirement for publishing a WCF service in Azure?

VM

推荐答案

嗨rbhatup,

Hi rbhatup,

I不相信这是一个要求。您可以从私人仓库发布代码。但是,您需要在GitHub / Bitbucket / GitLab上设置SSH"部署密钥"。请参阅

this维基
了解更多信息。

I don't believe it is a requirement. You can publish code from a private repo. However, you will need to need to set up an SSH 'deploy key' on GitHub/Bitbucket/GitLab. See this wiki for more info.


这篇关于在不向外部存储库添加源代码的情况下将WCF服务发布到Azure?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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