Azure DevOps extensions - what language can I use?

拥有回忆 提交于 2021-02-16 09:32:10

问题


I want to develop a DevOps hub plugin that gets work item details and generates a PDF.

I have viewed the samples that all seem to use typescript: https://docs.microsoft.com/en-us/azure/devops/extend/develop/samples-overview?view=azure-devops.

I'm having trouble understanding the context that the code runs in, does it run on the server or in the browser? I know I need to use a web server as I have made a test hub plug in and is running from my local web server.

I would prefer to be able to use server side C# ASP.NET, is this possible or do we have to use a client side language?


回答1:


It depends on how you want to do it.

The DevOps extension itself is only on client side and is Javascript/Typescript. So, if you are developing say a custom control for the work item form, that's all you can use. But it is hosted within Azure DevOps itself.

If your hub shows an external page, you can do whatever you want. But you have to host all that content yourself.

For your example I would not use an external site. It can all be done in the browser. In fact I made a (private) extension that does something very similar.



来源:https://stackoverflow.com/questions/58743308/azure-devops-extensions-what-language-can-i-use

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!