Azure Static Web APP for Blazor CI build error after update to Net 5.0

Thomas Diggelmann 1 Reputation point
2020-11-25T19:34:08.85+00:00

After updating my Blazor Webassembly project to .Net 5.0 I get an error in the CI build:

...
Microsoft (R) Build Engine version 16.8.0+126527ff1 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.

Determining projects to restore...
All projects are up-to-date for restore.
Copying the minified builld styles to WWWROOT
Client -> /github/workspace/Client/bin/Release/net5.0/Client.dll
Client (Blazor output) -> /github/workspace/Client/bin/Release/net5.0/wwwroot
Optimizing assemblies for size, which may change the behavior of the app. Be sure to test after publishing. See: https://aka.ms/dotnet-illink
Compressing Blazor WebAssembly publish artifacts. This may take a while...
/tmp/oryx/platforms/dotnet/5.0.100/sdk/5.0.100/Sdks/Microsoft.NET.Sdk.BlazorWebAssembly/targets/Microsoft.NET.Sdk.BlazorWebAssembly.Current.targets(548,5): error MSB6006: "/tmp/oryx/platforms/dotnet/5.0.100" exited with code 1. [/github/workspace/Client/Client.csproj

Do anyone know why the compressing step will fail?

The .yml file:

build_and_deploy_job:
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.action != 'closed')
runs-on: ubuntu-latest
name: Build and Deploy Job
steps:
- uses: actions/checkout@v2
with:
submodules: true
- name: Build And Deploy
id: builddeploy
uses: Azure/static-web-apps-deploy@v0.0.1-preview
with:
azure_static_web_apps_api_token: ${<!-- -->{ secrets.AZURE_STATIC_WEB_APPS_API_TOKEN_PROUD_GLACIER_0E6325403 }}
repo_token: ${<!-- -->{ secrets.GITHUB_TOKEN }} # Used for Github integrations (i.e. PR comments)
action: "upload"
###### Repository/Build Configurations - These values can be configured to match you app requirements. ######
# For more information regarding Static Web App workflow configurations, please visit: https://aka.ms/swaworkflowconfig
app_location: "Client" # App source code path
api_location: "API" # Api source code path - optional
output_location: "wwwroot" # Built app content directory - optional
###### End of Repository/Build Configurations ######

Thanks for any help!

Blazor
Blazor
A free and open-source web framework that enables developers to create web apps using C# and HTML being developed by Microsoft.
1,385 questions
Azure Static Web Apps
Azure Static Web Apps
An Azure service that provides streamlined full-stack web app development.
761 questions
{count} votes