我有一个包含以下内容的解决方案:
我为Angular项目准备了以下管道。我应该像这样定义单独的任务吗?是否有一种方法可以在此处复制Visual Studio构建呢?
几个Asp.net项目 (微服务和网关)
.Net Core + Angular 8 (前端)
我为Angular项目准备了以下管道。我应该像这样定义单独的任务吗?是否有一种方法可以在此处复制Visual Studio构建呢?
# ASP.NET
# Build and test ASP.NET projects.
# Add steps that publish symbols, save build artifacts, deploy, and more:
# https://learn.microsoft.com/azure/devops/pipelines/apps/aspnet/build-aspnet-4
trigger:
- master
pool:
vmImage: 'windows-latest'
variables:
solution: '**/*.sln'
buildPlatform: 'Any CPU'
buildConfiguration: 'Release'
steps:
- task: NuGetToolInstaller@1
- task: Npm@1
inputs:
command: install
workingDir: 'd:\a\1\s\Ok.Web\ClientApp'
- task: Npm@1
inputs:
command: custom
workingDir: 'd:\a\1\s\Ok.Web\ClientApp'
customCommand: run build
- task: CopyFiles@2
inputs:
targetFolder: '$(Build.ArtifactStagingDirectory)'
- task: PublishBuildArtifacts@1