-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Publish fails when blazor app uses BlazorWasmAntivirusProtection Nuget in the project #22
Comments
@fingers10 Thank you for reporting! |
@fingers10 |
@jsakamoto , I tried the new package. Publish is successful. Here is the link. However, I noticed two issues.
|
@fingers10 |
@jsakamoto lemme check and get back. Meanwhile with due diligence can we raise this issue in respective repo if it can help other consumers? |
@fingers10
Yes, I strongly agree with that your opinion. I hope the pull request above will be accepted and resolve the problem. |
@jsakamoto BlazorWasmAntivirusProtection Package approved the PR and published it. Now the workaround that you have suggested in the
|
@fingers10 Sorry too late since I was busy watching the .NET Conf 2022 that was held this week. (I live in Japan, so I had to wake up at midnight in the Japan Standard Time zone and keep staying up).
Yes, that's right, it should work well even after removing that workaround. |
@jsakamoto No worries. Yep I know that you are watching .NET Conf 22. I saw your question on C# required properties. Your question was too specific on adding required to property injection in blazor. Good question. Back to this issue. I'll validate this and get back. |
@jsakamoto Just confirmed. Prerendering is working with |
@jsakamoto I noticed that publish fails when we have lazy loading enabled with |
@fingers10 I'm currently investigating the revival problem. I'll inform you the progress as soon as I can. |
@fingers10 The latest version of the "BlazorWasmPreRendering.Build" has now supported the latest version of the "BlazorWasmAntivirusProtection". Please check it out. However, your sample project still failed because the project uses the "lazy assembly loading" feature of Blazor WebAssembly. Again, the "BlazorWasmPreRendering.Build" depends on the pre-rendering feature of the Blazor Server. The "BlazorWasmPreRendering.Build" is implemented pre-rendering feature by making a Blazor WebAssembly app run as a Blazor Server app forcibly with some hacking. But these magics are not applicable for the "lazy assembly loading" feature because that feature is very specific on the client side running. I'll try to add support for the "lazy assembly loading" feature to the "BlazorWasmPreRendering.Build" later, but it must be very tough work, and please keep your mind that it might be impossible. |
@fingers10 Now the latest version of the "BlazorWasmPreRendering.Build" has supported lazy loading assemblies! 🎉 Could you check it out? and, thank you for giving me the big challenge that is adding support for lazy loading assemblies! |
@jsakamoto salute to you. You are making a great solutions. You earned my respect a lot. I'll check this and keep you posted |
@jsakamoto I have noticed few observations.
logs:
|
@fingers10 |
@jsakamoto ah ha.. I'm wondering how this flag was set to true in the codebase. I couldn't remember...but history shows this was added along with Nuget Update commit. Never mind. It's good it works with simple scenarios.. lemme check with production project and share my updates. |
@jsakamoto for some reason the publish fails in github actions deploy. Here is the link. Error:
Logs:
|
@fingers10 I could not reproduce the error with that I forked the "ILoveDotNet/ilovedotnet" repository, hard reset the Moreover, the error you reported seems telling us that the reason of the error comes from the "BlazorWasmAntivirusProtection" package, not the "BlazorWasmPreRendering.Build" package. I would like to recommend:
|
@jsakamoto Many thanks for your suggestions and guidance. This thread can be closed. |
Thanks! |
Sometimes blazor apps dlls are flagged as false positive and blocked by firewalls or antiviruses. There is already an issue 36978 tracking this.
Meanwhile there is an another great library BlazorWasmAntivirusProtection which is used to overcome this false flagging of blazor apps by antivirus or firewall.
When we use this BlazorWasmAntivirusProtection library and try to prerender, publish fails!!!.
Here is the repo - BlazorWasmAVPrerender to replicate the issue.
Error log:
BlazorWasmAvPrerender GitHub Actions Link to check additional details if needed
The text was updated successfully, but these errors were encountered: