blazorise

Blazor [WASM] System.TypeLoadException: Could not resolve type with token 0100001a

北慕城南 提交于 2021-01-27 07:22:32
问题 I'm getting this error: enter code here System.TypeLoadException: Could not resolve type with token 0100001a from typeref (expected class 'System.Threading.Tasks.Task' in assembly 'System.Runtime, Version=4.2.2.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a') When I switch to: <TargetFramework>netcoreapp3.1</TargetFramework> or <TargetFramework>netcoreapp5.0</TargetFramework> from netstandard2.1 My packages are: <PackageReference Include="Blazored.LocalStorage" Version="2.1.5" />

Component which apply default parameters to other component

萝らか妹 提交于 2020-12-13 04:35:14
问题 I am using Blazorise, which provide multiple base components such as <Button> , with multiple parameters. I would like to create a simple component which would render a <Button> with one or two parameters hard-coded (such as Color="Colors.Primary") and then pass the rest of the parameters onto the <Button> . This is what I would like to be able to write: <PrimaryButton Outline>Text</Button> I would like to achieve this without having to manually set all parameters available from <Button> in

Component which apply default parameters to other component

旧城冷巷雨未停 提交于 2020-12-13 04:35:06
问题 I am using Blazorise, which provide multiple base components such as <Button> , with multiple parameters. I would like to create a simple component which would render a <Button> with one or two parameters hard-coded (such as Color="Colors.Primary") and then pass the rest of the parameters onto the <Button> . This is what I would like to be able to write: <PrimaryButton Outline>Text</Button> I would like to achieve this without having to manually set all parameters available from <Button> in