Open Dexus opened 3 weeks ago
Can you provide more information on the problem? The library targets netstandard2.0 which is supported by .NET 8 so it should work fine.
hi @zanaptak its not because i try to create a webassembly that targets net8 only, and when I add the package, its not working.
I've tried it using the Visual Studio 2022 Blazor project templates and it is working for me.
For instance it works with the following .csproj targeting net8.0 and referencing the library:
<Project Sdk="Microsoft.NET.Sdk.BlazorWebAssembly">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<NoDefaultLaunchSettingsFile>true</NoDefaultLaunchSettingsFile>
<StaticWebAssetProjectMode>Default</StaticWebAssetProjectMode>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Components.WebAssembly" Version="8.0.8" />
<PackageReference Include="Zanaptak.BinaryToTextEncoding" Version="1.1.0" />
</ItemGroup>
</Project>
and I am able to call it successfully in the code with e.g. Zanaptak.BinaryToTextEncoding.Base16.Default.Encode(new byte[] { 127, 128, 129 })
(returns 7F8081
).
So I don't really know what could be the issue. Can you provide an example project in a temp repository that reproduces the issue?
I'm running now a repair maybe something got broken. Will check this later. But I only use Sdk="Microsoft.NET.Sdk"
if I'm not wrong right now without access to my pc.
Hi would it be possible to make it net8 compatible?