@david.hurtado gets error when publishing his Blazor app. Reported here https://support.abp.io/QA/Questions/626/Bugs--Issues-v4X#answer-483f87d2-bff9-c59b-c696-39f95f90af2e
@david can you create a new empty Blazor app and add <PublishTrimmed>false</PublishTrimmed>
then publish it to your server?
we will understand if the issue is in your code or in the app-template, then we'll solve the problem.
@christianharo can you provide us your template type ? angular / mvc / blazor (tier or seperated identity server)
guys there are several ABP templates, so you should tell us which type of project you have created. otherwise it's getting more time to understand your issue!
@david.hurtado
adding the following line to your Blazor.csproj is a requirement because Blazor has problems when treeshaking reflection objects.
<PublishTrimmed>false</PublishTrimmed>
Failed to find a valid digest in the 'integrity' attribute for resource '<URL>' with computed SHA-256 integrity
This error might be related with your firewall. It says the hash of the DLL files on your browser doesn't match the official hashes. So some firewalls may block your *.dll because they think it's a malicious file. In this post, he's also facing the same issue https://github.com/dotnet/aspnetcore/issues/5477#issuecomment-619261730
adding the following line to your Blazor.csproj ... this disables integrity check.
<BlazorCacheBootResources>false</BlazorCacheBootResources>
but I guess this will also not correct it if your DLL is being blocked.
secondly you can ask your system admin to add a firewall rule to allow *.DLL
lastly you can rename your Blazor DLLs. See https://docs.microsoft.com/en-us/aspnet/core/blazor/host-and-deploy/webassembly?view=aspnetcore-5.0#change-the-filename-extension-of-dll-files
I got the following error while publishing the Blazor project:
System.Runtime.CompilerServices.SuppressIldasmAttribute.SuppressIldasmAttribute()
to fix this, you can update the following templates:
editcshtml_cs_LookupDropdownProperty.txt
public List<SelectListItem> %%np-entity-name%%LookupList { get; set; } = new List<SelectListItem>
{
new SelectListItem(string.Empty, %%np-entity-type-as-empty%%)
};
Index.cshtml_cs.FilterDefinitionNavigationPropertyList.txt
public List<SelectListItem> %%np-entity-name%%LookupList { get; set; } = new List<SelectListItem>
{
new SelectListItem(string.Empty, %%np-entity-type-as-empty%%)
};
PS: this will be fixed in the next version.
@dmeagor I reproduced module create with add to solution issue. reported as an internal issue. wait for 4.0.1
@dmeagor created an internal issue for docs search. alternatively you can use google search with site parameter until it gets fixed.
google.com
your-search-words site:https://docs.abp.io
@huy.quan for Angular code generation, you need to do this workaround until v4.0.1 https://support.abp.io/QA/Questions/626#answer-f02d209c-0bb8-e1bd-a4d6-39f940b19df6