Build fails when building blazor wasm in AWS Amplify app
See original GitHub issueDear @jsakamoto,
Recently I was writing an article on how to deploy and host blazor wasm app using AWS Amplify. While writing the tutorial, I noticed that build gets failed with this package. I was using ilovedotnet repo as an example,
Here is my build settings in AWS Amplify:
version: 1
applications:
- frontend:
phases:
preBuild:
commands:
- npm install
- curl -sSL https://dot.net/v1/dotnet-install.sh > dotnet-install.sh
- chmod +x *.sh
- ./dotnet-install.sh -c 7.0 -InstallDir ./dotnet7
- ./dotnet7/dotnet --version
build:
commands:
- ./dotnet7/dotnet publish -c Release -o release
artifacts:
baseDirectory: /release/wwwroot
files:
- '**/*'
cache:
paths:
- node_modules/**/*
appRoot: Web
Here is the build logs:
The build log
2023-05-21T12:48:25.885Z [INFO]: # Cloning repository: git@github.com:ILoveDotNet/ilovedotnet.git
2023-05-21T12:48:29.249Z [INFO]:
2023-05-21T12:48:29.382Z [INFO]: Cloning into 'ilovedotnet'...
2023-05-21T12:48:29.382Z [INFO]: # Checking for Git submodules at: /codebuild/output/src200791159/src/ilovedotnet/.gitmodules
2023-05-21T12:48:29.390Z [INFO]: # Retrieving environment cache...
2023-05-21T12:48:29.434Z [WARNING]: ! Unable to write cache: {"code":"ERR_BAD_REQUEST","message":"Request failed with status code 404"})}
2023-05-21T12:48:29.434Z [INFO]: ---- Setting Up SSM Secrets ----
2023-05-21T12:48:29.434Z [INFO]: SSM params {"Path":"/amplify/don7yyyj7082c/main/","WithDecryption":true}
2023-05-21T12:48:29.467Z [WARNING]: !Failed to set up process.env.secrets
2023-05-21T12:48:29.469Z [INFO]: No live updates for this build run
2023-05-21T12:48:29.472Z [INFO]: # Retrieving cache...
2023-05-21T12:48:29.540Z [INFO]: # Retrieved cache
2023-05-21T12:49:04.797Z [INFO]: ## Starting Backend Build
## Checking for associated backend environment...
## No backend environment association found, continuing...
## Completed Backend Build
2023-05-21T12:49:04.800Z [INFO]: ## Starting Frontend Build
# Starting phase: preBuild
# Executing command: npm install
2023-05-21T12:49:12.273Z [WARNING]: npm WARN deprecated @npmcli/move-file@2.0.1: This functionality has been moved to @npmcli/fs
2023-05-21T12:49:16.472Z [INFO]: added 286 packages, and audited 287 packages in 11s
2023-05-21T12:49:16.474Z [INFO]: 35 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
2023-05-21T12:49:16.484Z [INFO]: # Executing command: curl -sSL https://dot.net/v1/dotnet-install.sh > dotnet-install.sh
2023-05-21T12:49:16.949Z [INFO]: # Executing command: chmod +x *.sh
2023-05-21T12:49:16.951Z [INFO]: # Executing command: ./dotnet-install.sh -c 7.0 -InstallDir ./dotnet7
2023-05-21T12:49:18.152Z [INFO]: dotnet-install: Attempting to download using aka.ms link https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.302/dotnet-sdk-7.0.302-linux-x64.tar.gz
2023-05-21T12:49:18.825Z [INFO]: dotnet-install: Extracting zip from https://dotnetcli.azureedge.net/dotnet/Sdk/7.0.302/dotnet-sdk-7.0.302-linux-x64.tar.gz
2023-05-21T12:49:24.441Z [INFO]: dotnet-install: Installed version is 7.0.302
2023-05-21T12:49:24.455Z [INFO]: dotnet-install: Adding to current process PATH: `/codebuild/output/src200791159/src/ilovedotnet/Web/dotnet7`. Note: This change will be visible only when sourcing script.
2023-05-21T12:49:24.455Z [INFO]: dotnet-install: Note that the script does not resolve dependencies during installation.
dotnet-install: To check the list of dependencies, go to https://learn.microsoft.com/dotnet/core/install, select your operating system and check the "Dependencies" section.
dotnet-install: Installation finished successfully.
2023-05-21T12:49:24.455Z [INFO]: # Executing command: ./dotnet7/dotnet --version
2023-05-21T12:49:25.494Z [INFO]: 7.0.302
2023-05-21T12:49:25.497Z [INFO]: # Completed phase: preBuild
# Starting phase: build
2023-05-21T12:49:25.497Z [INFO]: # Executing command: ./dotnet7/dotnet publish -c Release -o release
2023-05-21T12:49:25.788Z [INFO]:
2023-05-21T12:49:25.788Z [INFO]: Welcome to .NET 7.0!
---------------------
SDK Version: 7.0.302
2023-05-21T12:49:25.789Z [INFO]: Telemetry
---------
The .NET tools collect usage data in order to help us improve your experience. It is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.
Read more about .NET CLI Tools telemetry: https://aka.ms/dotnet-cli-telemetry
----------------
Installed an ASP.NET Core HTTPS development certificate.
To trust the certificate run 'dotnet dev-certs https --trust' (Windows and macOS only).
Learn about HTTPS: https://aka.ms/dotnet-https
----------------
Write your first app: https://aka.ms/dotnet-hello-world
Find out what's new: https://aka.ms/dotnet-whats-new
Explore documentation: https://aka.ms/dotnet-docs
Report issues and find source on GitHub: https://github.com/dotnet/core
Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli
--------------------------------------------------------------------------------------
2023-05-21T12:49:26.076Z [INFO]: MSBuild version 17.6.1+8ffc3fe3d for .NET
2023-05-21T12:49:27.452Z [INFO]: Determining projects to restore...
2023-05-21T12:49:29.403Z [INFO]: Restored /codebuild/output/src200791159/src/ilovedotnet/DesignPatternDemoComponents/DesignPatternDemoComponents.csproj (in 731 ms).
Restored /codebuild/output/src200791159/src/ilovedotnet/DependencyInjectionDemoComponents/DependencyInjectionDemoComponents.csproj (in 731 ms).
Restored /codebuild/output/src200791159/src/ilovedotnet/BlazorDemoComponents/BlazorDemoComponents.csproj (in 731 ms).
2023-05-21T12:49:29.423Z [INFO]: Restored /codebuild/output/src200791159/src/ilovedotnet/SharedModels/SharedModels.csproj (in 9 ms).
2023-05-21T12:49:29.428Z [INFO]: Restored /codebuild/output/src200791159/src/ilovedotnet/ReportDemoComponents/ReportDemoComponents.csproj (in 3 ms).
2023-05-21T12:49:29.433Z [INFO]: Restored /codebuild/output/src200791159/src/ilovedotnet/SharedComponents/SharedComponents.csproj (in 16 ms).
2023-05-21T12:49:29.434Z [INFO]: Restored /codebuild/output/src200791159/src/ilovedotnet/OOPSDemoComponents/OOPSDemoComponents.csproj (in 3 ms).
2023-05-21T12:49:29.436Z [INFO]: Restored /codebuild/output/src200791159/src/ilovedotnet/Components/Components.csproj (in 786 ms).
2023-05-21T12:49:29.538Z [INFO]: Restored /codebuild/output/src200791159/src/ilovedotnet/LINQDemoComponents/LINQDemoComponents.csproj (in 103 ms).
2023-05-21T12:49:30.231Z [INFO]: Restored /codebuild/output/src200791159/src/ilovedotnet/Web/Web.csproj (in 814 ms).
2023-05-21T12:49:36.081Z [INFO]: SharedModels -> /codebuild/output/src200791159/src/ilovedotnet/SharedModels/bin/Release/net7.0/SharedModels.dll
2023-05-21T12:49:36.087Z [INFO]: ReportDemoComponents -> /codebuild/output/src200791159/src/ilovedotnet/ReportDemoComponents/bin/Release/net7.0/ReportDemoComponents.dll
2023-05-21T12:49:36.089Z [INFO]: OOPSDemoComponents -> /codebuild/output/src200791159/src/ilovedotnet/OOPSDemoComponents/bin/Release/net7.0/OOPSDemoComponents.dll
DesignPatternDemoComponents -> /codebuild/output/src200791159/src/ilovedotnet/DesignPatternDemoComponents/bin/Release/net7.0/DesignPatternDemoComponents.dll
2023-05-21T12:49:36.598Z [INFO]: DependencyInjectionDemoComponents -> /codebuild/output/src200791159/src/ilovedotnet/DependencyInjectionDemoComponents/bin/Release/net7.0/DependencyInjectionDemoComponents.dll
2023-05-21T12:49:38.014Z [INFO]: BlazorDemoComponents -> /codebuild/output/src200791159/src/ilovedotnet/BlazorDemoComponents/bin/Release/net7.0/BlazorDemoComponents.dll
2023-05-21T12:49:39.452Z [INFO]: SharedComponents -> /codebuild/output/src200791159/src/ilovedotnet/SharedComponents/bin/Release/net7.0/SharedComponents.dll
2023-05-21T12:49:39.474Z [INFO]: LINQDemoComponents -> /codebuild/output/src200791159/src/ilovedotnet/LINQDemoComponents/bin/Release/net7.0/LINQDemoComponents.dll
2023-05-21T12:49:40.065Z [INFO]: Components -> /codebuild/output/src200791159/src/ilovedotnet/Components/bin/Release/net7.0/Components.dll
2023-05-21T12:49:45.776Z [INFO]:
> ilovedotnet@1.0.0 buildcss
> npm run buildcss:prod
2023-05-21T12:49:46.065Z [INFO]:
> ilovedotnet@1.0.0 buildcss:prod
> npm run buildbulma && npx tailwindcss -i wwwroot/css/app.css -o wwwroot/css/app.min.css --minify
2023-05-21T12:49:46.065Z [INFO]:
2023-05-21T12:49:46.362Z [INFO]:
> ilovedotnet@1.0.0 buildbulma
> node-sass --omit-source-map-url styles.css wwwroot/css/app.css
2023-05-21T12:49:46.721Z [INFO]: Rendering Complete, saving .css file...
2023-05-21T12:49:46.724Z [INFO]: Wrote CSS to /codebuild/output/src200791159/src/ilovedotnet/Web/wwwroot/css/app.css
2023-05-21T12:49:48.286Z [INFO]:
2023-05-21T12:49:48.287Z [INFO]: Rebuilding...
2023-05-21T12:49:49.219Z [INFO]:
Done in 989ms.
2023-05-21T12:49:50.505Z [INFO]: Web -> /codebuild/output/src200791159/src/ilovedotnet/Web/bin/Release/net7.0/Web.dll
2023-05-21T12:49:50.505Z [INFO]: Web (Blazor output) -> /codebuild/output/src200791159/src/ilovedotnet/Web/bin/Release/net7.0/wwwroot
2023-05-21T12:49:51.001Z [INFO]: Optimizing assemblies for size may change the behavior of the app. Be sure to test after publishing. See: https://aka.ms/dotnet-illink
2023-05-21T12:49:51.005Z [INFO]: Optimizing assemblies for size. This process might take a while.
2023-05-21T12:49:58.120Z [INFO]: BlazorWasmAntivirusProtection: Xor'ing .dlls
2023-05-21T12:49:58.122Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/Blazor-Analytics.dll
2023-05-21T12:49:58.123Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/BlazorDemoComponents.dll
2023-05-21T12:49:58.125Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/Components.dll
2023-05-21T12:49:58.126Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/DependencyInjectionDemoComponents.dll
2023-05-21T12:49:58.127Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/DesignPatternDemoComponents.dll
2023-05-21T12:49:58.132Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/FluentValidation.dll
2023-05-21T12:49:58.134Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/Humanizer.dll
2023-05-21T12:49:58.137Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/LINQDemoComponents.dll
2023-05-21T12:49:58.139Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/Microsoft.AspNetCore.Components.dll
2023-05-21T12:49:58.140Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/Microsoft.AspNetCore.Components.Forms.dll
2023-05-21T12:49:58.141Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/Microsoft.AspNetCore.Components.Web.dll
2023-05-21T12:49:58.143Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/Microsoft.AspNetCore.Components.WebAssembly.dll
2023-05-21T12:49:58.144Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/Microsoft.CSharp.dll
2023-05-21T12:49:58.147Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/Microsoft.Extensions.Configuration.Abstractions.dll
2023-05-21T12:49:58.148Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/Microsoft.Extensions.Configuration.Binder.dll
2023-05-21T12:49:58.150Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/Microsoft.Extensions.Configuration.dll
2023-05-21T12:49:58.150Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/Microsoft.Extensions.Configuration.Json.dll
2023-05-21T12:49:58.152Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/Microsoft.Extensions.DependencyInjection.Abstractions.dll
2023-05-21T12:49:58.153Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/Microsoft.Extensions.DependencyInjection.dll
2023-05-21T12:49:58.155Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/Microsoft.Extensions.Logging.Abstractions.dll
2023-05-21T12:49:58.156Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/Microsoft.Extensions.Logging.dll
2023-05-21T12:49:58.157Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/Microsoft.Extensions.Options.dll
2023-05-21T12:49:58.158Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/Microsoft.Extensions.Primitives.dll
2023-05-21T12:49:58.159Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/Microsoft.JSInterop.dll
2023-05-21T12:49:58.160Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/Microsoft.JSInterop.WebAssembly.dll
2023-05-21T12:49:58.160Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/netstandard.dll
2023-05-21T12:49:58.161Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/OOPSDemoComponents.dll
2023-05-21T12:49:58.162Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/ReportDemoComponents.dll
2023-05-21T12:49:58.163Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/SharedComponents.dll
2023-05-21T12:49:58.165Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/SharedModels.dll
2023-05-21T12:49:58.166Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/System.Collections.Concurrent.dll
2023-05-21T12:49:58.168Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/System.Collections.dll
2023-05-21T12:49:58.169Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/System.Collections.Immutable.dll
2023-05-21T12:49:58.170Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/System.Collections.NonGeneric.dll
2023-05-21T12:49:58.171Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/System.Collections.Specialized.dll
2023-05-21T12:49:58.172Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/System.ComponentModel.Annotations.dll
2023-05-21T12:49:58.173Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/System.ComponentModel.dll
2023-05-21T12:49:58.174Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/System.ComponentModel.Primitives.dll
2023-05-21T12:49:58.175Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/System.ComponentModel.TypeConverter.dll
2023-05-21T12:49:58.177Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/System.Console.dll
2023-05-21T12:49:58.178Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/System.Core.dll
2023-05-21T12:49:58.180Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/System.Diagnostics.TraceSource.dll
2023-05-21T12:49:58.182Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/System.dll
2023-05-21T12:49:58.183Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/System.IO.MemoryMappedFiles.dll
2023-05-21T12:49:58.185Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/System.Linq.dll
2023-05-21T12:49:58.186Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/System.Linq.Dynamic.Core.dll
2023-05-21T12:49:58.189Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/System.Linq.Expressions.dll
2023-05-21T12:49:58.192Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/System.Linq.Queryable.dll
2023-05-21T12:49:58.194Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/System.Memory.dll
2023-05-21T12:49:58.195Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/System.Net.Http.dll
2023-05-21T12:49:58.196Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/System.Net.Primitives.dll
2023-05-21T12:49:58.197Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/System.ObjectModel.dll
2023-05-21T12:49:58.204Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/System.Private.CoreLib.dll
2023-05-21T12:49:58.207Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/System.Private.Uri.dll
2023-05-21T12:49:58.209Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/System.Reflection.Emit.dll
2023-05-21T12:49:58.210Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/System.Reflection.Emit.ILGeneration.dll
2023-05-21T12:49:58.212Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/System.Reflection.Metadata.dll
2023-05-21T12:49:58.214Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/System.Reflection.Primitives.dll
2023-05-21T12:49:58.215Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/System.Runtime.dll
2023-05-21T12:49:58.217Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/System.Runtime.InteropServices.JavaScript.dll
2023-05-21T12:49:58.218Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/System.Text.Encodings.Web.dll
2023-05-21T12:49:58.221Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/System.Text.Json.dll
2023-05-21T12:49:58.223Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/System.Text.RegularExpressions.dll
2023-05-21T12:49:58.225Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/System.Threading.dll
2023-05-21T12:49:58.227Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/System.Threading.Tasks.Extensions.dll
2023-05-21T12:49:58.228Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/System.Web.HttpUtility.dll
2023-05-21T12:49:58.229Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/Toolbelt.Blazor.HeadElement.Abstractions.dll
2023-05-21T12:49:58.230Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/Toolbelt.Blazor.HeadElement.dll
2023-05-21T12:49:58.231Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/Toolbelt.Blazor.HeadElement.Services.dll
2023-05-21T12:49:58.239Z [INFO]: BlazorWasmAntivirusProtection: Xor'ed dll /codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/linked/Web.dll
BlazorWasmAntivirusProtection: Xor'ing .dlls finished
2023-05-21T12:49:58.362Z [INFO]: Compressing Blazor WebAssembly publish artifacts. This may take a while...
2023-05-21T12:50:30.013Z [INFO]: Web -> /codebuild/output/src200791159/src/ilovedotnet/Web/release/
2023-05-21T12:50:30.556Z [INFO]: It was not possible to find any compatible framework version
The framework 'Microsoft.NETCore.App', version '7.0.0' was not found.
- The following frameworks were found:
2023-05-21T12:50:30.557Z [INFO]: 3.1.32 at [/usr/share/dotnet/shared/Microsoft.NETCore.App]
2023-05-21T12:50:30.558Z [INFO]:
You can resolve the problem by installing the specified framework and/or SDK.
The specified framework can be found at:
- https://aka.ms/dotnet-core-applaunch?framework=Microsoft.NETCore.App&framework_version=7.0.0&arch=x64&rid=amzn.2-x64
2023-05-21T12:50:30.559Z [INFO]: /root/.nuget/packages/blazorwasmprerendering.build/2.0.0-preview.8/build/BlazorWasmPreRendering.Build.targets(62,5): error MSB3073: The command "dotnet "/root/.nuget/packages/blazorwasmprerendering.build/2.0.0-preview.8/build/../tools/net7.0/BlazorWasmPreRendering.Build.dll" -a "Web" -t "Web.App" --selectorofrootcomponent "#app,app" --selectorofheadoutletcomponent "head::after" -p "/codebuild/output/src200791159/src/ilovedotnet/Web/release" -i "/codebuild/output/src200791159/src/ilovedotnet/Web/obj/Release/net7.0/." -m "Toolbelt.Blazor.HeadElement.ServerPrerendering,,7.1.0" -f "net7.0" --serviceworkerassetsmanifest "" --environment "Prerendering" --emulateauthme "true" --locale "en" -o "IndexHtmlInSubFolders" -d -u "" -r "WebAssemblyPrerendered" --serverport "5050-5999" --bwapoptionsdllext "dat"" exited with code 150. [/codebuild/output/src200791159/src/ilovedotnet/Web/Web.csproj]
2023-05-21T12:50:30.606Z [ERROR]: !!! Build failed
2023-05-21T12:50:30.606Z [ERROR]: !!! Non-Zero Exit Code detected
2023-05-21T12:50:30.607Z [INFO]: # Starting environment caching...
2023-05-21T12:50:30.607Z [INFO]: # Environment caching completed
Terminating logging...
Please can you assist further on this?
Issue Analytics
- State:
- Created 4 months ago
- Reactions:1
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Deploy .NET Blazor WebAssembly Application to ...
In this post, you will deploy a Blazor WebAssembly Application from git repository to AWS Amplify. We will use .NET 6. to create...
Read more >Blazor AWS Amplify: Configuration
Amplify provides static web app hosting with built in CI/CD. This is what we will use to create, deploy, and host Blazor WASM....
Read more >Error while deploying build using AWS Amplify Console ...
I am able to run the app locally after adding the auth module. However, after committing the code to GitHub, the automated build...
Read more >AWS Amplify throws exception while running hosted Blazor ...
The exception you're encountering indicates an issue with the WebAssembly (Wasm) content in your Blazor WebAssembly app. It appears that the Wasm file...
Read more >Deploy Blazor WebAssembly to AWS Amplify
This is what we are going to build and deploy in this article. A simple Blazor WebAssembly application running on .NET 7; Push...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@jsakamoto it works. Thanks for your support.
Add the logs below for your reference in case if needed.
The detailed log
@fingers10 Could you try out the v.2.0.0-preview.9 ?