C# Azure应用程序服务部署-包括grunt内置部署包中的文件
使用Azure DevOps管道,我有一个任务要部署到Azure应用程序服务,在我的YAML文件中如下所示:C# Azure应用程序服务部署-包括grunt内置部署包中的文件,c#,azure,azure-devops,gruntjs,C#,Azure,Azure Devops,Gruntjs,使用Azure DevOps管道,我有一个任务要部署到Azure应用程序服务,在我的YAML文件中如下所示: - task: AzureRmWebAppDeployment@4 inputs: ConnectionType: 'AzureRM' appType: 'webApp' packageForLinux: '$(build.artifactStagingDirectory)/Project.zip' azureSubscription: ''
- task: AzureRmWebAppDeployment@4
inputs:
ConnectionType: 'AzureRM'
appType: 'webApp'
packageForLinux: '$(build.artifactStagingDirectory)/Project.zip'
azureSubscription: ''
WebAppName: ''
ResourceGroupName: ''
deployToSlotOrASE: true
SlotName: 'production'
enableCustomDeployment: true
RemoveAdditionalFilesFlag: false
project.zip文件是使用标准msbuild任务生成的
- task: VSBuild@1
inputs:
solution: '$(solution)'
msbuildArgs: '/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(build.artifactStagingDirectory)"'
platform: '$(buildPlatform)'
configuration: '$(buildConfiguration)'
clean: true
但是,在Project.zip文件中,我想包含一些从grunt构建管道构建的文件,如下所示:
- task: Grunt@0
inputs:
gruntFile: 'Project\gui\styleguide\gruntfile.js'
targets:
gruntCli: 'node_modules/grunt-cli/bin/grunt'
如何将从grunt构建的资产包含到部署到我的Azure应用程序的包中?嗨,詹姆斯,你的项目是针对.net核心还是.net framework?你能帮忙吗?