【发布时间】:2017-03-09 20:13:22
【问题描述】:
如本文所述,使用 appveyor 部署 azure 函数非常简单 - https://alastairchristian.com/deploying-azure-functions-from-appveyor-75fe03771d0c#.x7stvprna
我无法弄清楚的是如何在 /bin 文件夹中部署自定义 dll(同一 repo 的库部分),以便能够使用 #r 并使用参考。
手动过程就是使用Kudu复制/bin文件夹中的dll并开始使用。
另请参阅关于 appveyor 的讨论 - http://help.appveyor.com/discussions/questions/2842-deployment-to-azure-function-app
这是我的 appveyor.yml -
-
branches:
only:
- master
version: 0.0.{build}
os: Visual Studio 2015
configuration: Release
init:
- nuget sources update -Name nuget.org -Source https://api.nuget.org/v3/index.json
environment:
SolutionDir: $(APPVEYOR_BUILD_FOLDER)\
cache:
- packages -> **\packages.config
assembly_info:
patch: true
file: '**\AssemblyInfo.*'
assembly_version: '{version}'
assembly_file_version: '{version}'
assembly_informational_version: '{version}'
before_build:
- nuget restore -verbosity detailed
build:
verbosity: normal
project: MyLibrary\MyLibrary.csproj
publish_wap: true
publish_azure: true
parallel: true
artifacts:
- path: AzureFuncCIPOC
name: AzureFuncCIPOC
deploy:
- provider: WebDeploy
server: https://functioncipoc.scm.azurewebsites.net:443/msdeploy.axd?site=FunctionCIPOC
website: FunctionCIPOC
username: $FunctionCIPOC
password:
secure: <secure>
artifact: AzureFuncCIPOC
【问题讨论】:
标签: azure azure-functions appveyor