Onyx Build Fail Azure DevOps Task AzureStaticWebApp@0 with Local Hosted Windows Agent
- Dominant language
- No language data
- Stars
- 346
- Forks
- 67
- PR merge metrics
- No merged PRs in 30d
Description
1. I started out by copying the contents of https://github.com/staticwebdev/blazor-starter repo into an Azure DevOps repo
2. I installed a Locally Hosted Agent in my Windows Machine with Admin permission
3. Created A static web app and connected it to my DevOps Project (main) Branch
4. Installed Docker, Git Bash (and generally) and added them to Path
5. Tried to build the pipeline and get this error:
"2023-07-31 07:57:43"|ERROR|MSBuild version 17.6.8+c70978d4d for .NET
Determining projects to restore...
All projects are up-to-date for restore.
Shared -> /working_dir/Shared/bin/Release/netstandard2.0/Shared.dll
Client -> /working_dir/Client/bin/Release/net7.0/Client.dll
Client (Blazor output) -> /working_dir/Client/bin/Release/net7.0/wwwroot
Optimizing assemblies for size may change the behavior of the app. Be sure to test after publishing. See: https://aka.ms/dotnet-illink
Optimizing assemblies for size. This process might take a while.
Shared -> /working_dir/Shared/bin/Release/netstandard2.0/Shared.dll
Optimizing assemblies for size may change the behavior of the app. Be sure to test after publishing. See: https://aka.ms/dotnet-illink
/bin/sh: 2: /tmp/MSBuildTemproot/tmp5c1cefd0de8f4866b3faa56b4d064ed2.exec.cmd: emcc: not found
/opt/dotnet/7.0.306/packs/Microsoft.NET.Runtime.WebAssembly.Sdk/7.0.9/Sdk/WasmApp.Native.targets(485,5): error : /bin/sh: 2: /tmp/MSBuildTemproot/tmpe04aa62fe66d4ad39b34f15eaa5aca6e.exec.cmd: emcc: not found [/working_dir/Client/Client.csproj]
/opt/dotnet/7.0.306/packs/Microsoft.NET.Runtime.WebAssembly.Sdk/7.0.9/Sdk/WasmApp.Native.targets(485,5): error MSB3073: The command "emcc --version" exited with code 127. [/working_dir/Client/Client.csproj] | 1 | Please build your app locally before publishing. | https://docs.microsoft.com/en-us/azure/app-service/configure-language-dotnetcore?pivots=platform-linux
---End of Oryx build logs---
Oryx has failed to build the solution
Why does this happen?
Can someone guide me to the steps to solve this.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.