从内置YAML配置azure管道中排除项目
我试图从azure管道中构建中排除一些项目 我尝试了以下选项从内置YAML配置azure管道中排除项目,azure,azure-devops,yaml,azure-pipelines,azure-pipelines-yaml,Azure,Azure Devops,Yaml,Azure Pipelines,Azure Pipelines Yaml,我试图从azure管道中构建中排除一些项目 我尝试了以下选项 试图只构建核心下的项目 及 正在尝试使用任务@dotnetcli2.0 引用 但是找不到一个好的例子 我要构建的项目位于不同的子文件夹下,如。/../Core/Domain/Domain.csproj和。/../Core/Presentation/Presentation.csproj 有没有什么我错过了,有没有可能;或者我只是做错了什么。您可以将dotnetcore cli任务用于以下内容: - task: DotNetCo
- 试图只构建核心下的项目
- 正在尝试使用任务@dotnetcli2.0
- 引用
。/../Core/Domain/Domain.csproj
和。/../Core/Presentation/Presentation.csproj
有没有什么我错过了,有没有可能;或者我只是做错了什么。您可以将dotnetcore cli任务用于以下内容:
- task: DotNetCoreCLI@2
inputs:
command: 'build'
projects: |
**/*.csproj
!**/*Mobile*.csproj # this ignores projects with the occurunce of Mobile anywhere in the filename
谢谢,不过有个问题,为什么像这样的东西不行呢<代码>-任务:DotNetCoreCLI@2输入:命令:“构建”项目:|“***.csproj”!***。Presentation.Mobile*.csproj',它说,
*droid*
作为星号通配符可以放置多次。。所以我希望它能正常工作,只是出现了“不匹配此模式的文件”的错误。好吧,azure管道似乎理解了这一点,我需要删除“(单引号)。。我将这样编辑答案。
- script: dotnet build **/Core/**/*.csproj --configuration $(buildConfiguration)
- task: DotNetCoreCLI@2
inputs:
command: 'build'
projects: |
**/*.csproj
!**/*Mobile*.csproj # this ignores projects with the occurunce of Mobile anywhere in the filename