Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/azure/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Azure应用程序服务部署-包括grunt内置部署包中的文件_C#_Azure_Azure Devops_Gruntjs - Fatal编程技术网

C# Azure应用程序服务部署-包括grunt内置部署包中的文件

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: ''

使用Azure DevOps管道,我有一个任务要部署到Azure应用程序服务,在我的YAML文件中如下所示:

 - 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?你能帮忙吗?