部署到 Azure Blob 存储以错误结束

Deployment to Azure Blob Storage ends up with error

尝试部署工件时出现以下错误:

The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters.

我在 AppVeyor 中构建应用程序之前和之后是 运行 两个脚本:

cd $env:APPVEYOR_BUILD_FOLDER\patch;
npm install;
node patch-project-json.js $env:APPVEYOR_BUILD_FOLDER\src\Project1\project.json $env:APPVEYOR_BUILD_VERSION;
node patch-project-json.js $env:APPVEYOR_BUILD_FOLDER\src\Project2\project.json $env:APPVEYOR_BUILD_VERSION;
node patch-project-json.js $env:APPVEYOR_BUILD_FOLDER\src\Project3\project.json $env:APPVEYOR_BUILD_VERSION;


cd $env:APPVEYOR_BUILD_FOLDER
dotnet restore

dotnet publish .\src\Project1 --output $env:APPVEYOR_BUILD_FOLDER\deploy\Project1 --configuration Release --no-build;
dotnet publish .\src\Project2 --output $env:APPVEYOR_BUILD_FOLDER\deploy\Project2 --configuration Release --no-build;
dotnet publish .\src\Project3 --output $env:APPVEYOR_BUILD_FOLDER\deploy\Project3 --configuration Release --no-build

如您所见,我正在使用 this 根据 $env:APPVEYOR_BUILD_VERSIONproject.json 文件中设置版本。不知道是不是相关资料​​。所以在成功构建和发布后,我想上传一个工件到 blob 存储。

原来我在 Storage access key 条目的部署设置中有错别字 ;)