Thomas Stocker

Results 155 comments of Thomas Stocker

1. I compiled it with .NET 9 (SkiaSharp caused an AOT Compile Error) so it seems SkiaSharp in Version 2.88 is not AOT Comptible yet. So SkiaSharp needs to be...

With .Net 9 and SkiaSharp 3 (Beta) in AOT following Compilation Error occours MapAotTest.Client fehlerhaft mit 1 Fehler(n) (24.8s) ``` C:\Program Files\dotnet\packs\Microsoft.NET.Runtime.WebAssembly.Sdk\9.0.0-preview.6.24327.7\Sdk\WasmApp.Common.targets(692,5): error : Precompiling failed for D:\MapAotTest\MapAotTest\MapAotTest.Client\obj\Release\net9.0\wasm\for-publish\aot-in\Skia Sharp.Views.Blazor.dll with...

In the Developer tools in Edge you see this reason: Access to fetch at 'https://tile.openstreetmap.org/2/0/1.png' from origin 'https://jolly-bay-02809fc03.6.azurestaticapps.net' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on...

Maybe Access-Control-Allow-Origin Header can be added in the request - Don't know have to investigate.

In c# a Raw string can be used to avoid escaping https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/proposals/csharp-11.0/raw-string-literal for example ``` var svg = """ svg:// """; ```