简体   繁体   English

如何仅将dll和静态文件提供给客户以部署到Azure

[英]How do I give only dlls and static files to a customer to deploy to azure

I have created a .net web api project and I wish to give the dlls to some customers so that they can deploy it to azure as a web app. 我已经创建了一个.net Web api项目,我希望将这些dll提供给某些客户,以便他们可以将其部署为Azure作为Web应用程序。

While azure seem to expect the solution and build it there. 虽然天青似乎期望解决方案并在那里建立它。 Is there a way around? 有办法吗?

[Update] [更新]

We can deploy ASP.Net applications hosted on Github repositories directly to Azure as an App Service. 我们可以将托管在Github存储库上的ASP.Net应用程序直接作为应用程序服务部署到Azure。 Azure App service automatically detects the project type and deploy a web app in isolated VM (shared/dedicated). Azure App服务自动检测项目类型,并在隔离的VM(共享/专用)中部署Web应用。 So we can publish a Github Repository with dlls and config files and share it with customers. 因此,我们可以发布包含dll和配置文件的Github存储库,并与客户共享。 This also have added advantage of easily pushing updates to such customers. 这还具有易于将更新推送给此类客户的优势。 Here's link to a write up . 这里是写文章的链接。

Your customers could connect to the Web App with FTP using the publishing credentials and put the files there. 您的客户可以使用发布凭据通过FTP连接到Web应用程序,然后将文件放在此处。

This answer shows how that is done: https://stackoverflow.com/a/25278829/1658906 该答案显示了如何完成此操作: https : //stackoverflow.com/a/25278829/1658906

Another option is using something like OneDrive or Dropbox for Continuous Deployment in the Web App. 另一种选择是使用OneDrive或Dropbox之类的工具在Web App中进行连续部署。 This allows you to synchronize a folder in eg OneDrive to a Web App. 这使您可以将OneDrive中的文件夹同步到Web App。

Though I am not sure why they cannot give you RBAC access in the new portal so you could do the deployment. 尽管我不确定为什么他们不能在新门户中为您提供RBAC访问权限,所以您可以进行部署。

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

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