BlazorWasmPreRendering.Build: publish and deploy by action from github - Oryx has failed to build the solution.
I use static web app on azure and publish through github action.
this is the error i get:
/var/nuget/blazorwasmprerendering.build/2.0.0-preview.4/build/BlazorWasmPreRendering.Build.targets(58,5): error MSB3073: The command "dotnet "/var/nuget/blazorwasmprerendering.build/2.0.0-preview.4/build/../tools/net6.0/BlazorWasmPreRendering.Build.dll" -a "SD.WEB" -t "SD.WEB.App" --selectorofrootcomponent "#app,app" --selectorofheadoutletcomponent "head::after" -p "/bin/staticsites/ss-oryx/app" -i "/github/workspace/SD.WEB/obj/Release/net6.0/." -m "" -f "net6.0" --serviceworkerassetsmanifest "service-worker-assets.js" -e "Prerendering" --locale "en" -o "IndexHtmlInSubFolders" -u "" -r "Static" --serverport "5050-5999" --bwapoptionsxorkey """ exited with code 1. [/github/workspace/SD.WEB/SD.WEB.csproj] | 1 | Please build your app locally before publishing. | https://docs.microsoft.com/en-us/azure/app-service/configure-language-dotnetcore?pivots=platform-linux
my project: https://github.com/drma-dev/SD
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 25 (12 by maintainers)
I don’t think I was ever going to find that out. I’m bad at authentication.
@drma-dev [Progress report] I’m investigating the problem that your site could not prerender with the “BlazorWasmPreRendering.Build” after upgrade to .NET7. Unfortunately, it has been a difficult task. I can’t say anything about the root reason for now, but I think that there is a possibility the Azure static web app’s authentication library might involve with this problem. I continue to try to resolve this problem.
I’m trying to solve it with IMemoryCache, if it doesn’t work, then I’m going to use OnAfterRenderAsync .
now is public