我们在Azure Dev中为每个解决方案使用什么项目或管道



azure管道所需的帮助。只是测试它,并考虑从TeamCity迁移到Azure Dev,我想知道:

我有:

1. Asp.Net Core Web Api (Web1)
2. Asp.Net Core Web Api (Web2) 
3. WPF App
4. Several infrastructure class libraries that are shared libs between the above 3 solutions (Web1, Web2, WPF).

我是否创建4个azure项目?

1 project that includes the repository of Web1 project with 1 pipeline that nuget restores, builds and publish artifacts 
1 project that includes the repository of Web1 project with 1 pipeline that nuget restores, builds and publish artifacts 
1 project that includes the repository of WPF App with 1 pipeline that nuget restores, builds and publish artifacts 
1 project that includes all repositories of all class libs and for each library I create a pipeline

或者我为所有人创建一个项目,并为每个项目添加一个管道(web1、web2、wpf应用程序和类库(

编写注释作为答案,以便我们可以结束问题

这些.NET项目位于不同的git存储库中吗?你的git工具是Github还是Azure Devops repos?

就我个人而言,我使用项目来区分不同的逻辑项目(开发团队(,以及团队不同项目中同一项目内的不同管道。

例如,团队A可能有4个项目,我会选择一个DevOps项目和其中的4个管道。团队B将有一个单独的项目等。

共享库的处理方式可以与不同的项目相同。你可以构建它们,并通过nuget上的任务上传它们。如果它们应该包含在项目中,那么你的web1、web2和wpf项目中应该已经有了,因此,执行msbuild和nuget-restore的管道也将处理库。

如果你不想把一些项目留给特定的人,那么我会选择一个DevOps项目,并为每个库项目选择不同的管道。

通常,您将管道与github存储库相结合。因此,如果你的所有库都放在一个github存储库中,你将使用一个管道,否则你必须在同一个Azure Devops项目中创建多个管道。

一般来说,我主要使用的方法是:

Different Azure DevOps projects -> Different dev teams.
Projects inside one dev team -> Different pipelines inside the project.
Different github repositories -> Different pipelines for each one (exceptions apply here but in most cases it is a practice)

最新更新