Upgrade to GeoBlazor Pro
If you have started an application with the free GeoBlazor Core library, and later want to take advantage of the expanded feature set and support of the GeoBlazor Pro library, here are the simple set of steps to upgrade your projects.
Visit https://licensing.dymaptic.com, and generate a new GeoBlazor Pro license key.
Replace the GeoBlazor Core key in your
appsettings.jsonorsecrets.jsonwith the new Pro key.{ "ArcGISApiKey": "THIS_DOES_NOT_CHANGE", "GeoBlazor": { "LicenseKey": "THIS_SHOULD_BE_YOUR_NEW_PRO_KEY" } }{ "ArcGISApiKey": "THIS_DOES_NOT_CHANGE", "GeoBlazor": { "LicenseKey": "THIS_SHOULD_BE_YOUR_NEW_PRO_KEY" } }Remove the NuGet package reference for GeoBlazor Core.
From command line:
dotnet package remove dymaptic.GeoBlazor.Core
dotnet package remove dymaptic.GeoBlazor.Core
Or directly in the
.csprojfile:<ItemGroup> <!-- DELETE THIS NEXT LINE ---> <PackageReference Include="dymaptic.GeoBlazor.Core" Version="4.1.0" /> </ItemGroup>
<ItemGroup> <!-- DELETE THIS NEXT LINE ---> <PackageReference Include="dymaptic.GeoBlazor.Core" Version="4.1.0" /> </ItemGroup>
Add the NuGet package reference for GeoBlazor Pro.
From command line:
dotnet package add dymaptic.GeoBlazor.Pro
dotnet package add dymaptic.GeoBlazor.Pro
Or directly in the
.csprojfile:<ItemGroup> <!-- ADD THIS NEXT LINE ---> <PackageReference Include="dymaptic.GeoBlazor.Pro" Version="4.1.0" /> </ItemGroup>
<ItemGroup> <!-- ADD THIS NEXT LINE ---> <PackageReference Include="dymaptic.GeoBlazor.Pro" Version="4.1.0" /> </ItemGroup>
Replace the
AddGeoBlazorline inProgram.cswithAddGeoBlazorPro.builder.Services.AddGeoBlazorPro(builder.Configuration);
builder.Services.AddGeoBlazorPro(builder.Configuration);
Namespace imports are handled automatically — the GeoBlazor Pro NuGet package provides implicit global
usingdirectives for all Pro namespaces. You can remove any existing@using dymaptic.GeoBlazor.Pro.*lines from_Imports.razor, as they are no longer needed.CSS stylesheets are also handled automatically — GeoBlazor injects both Core and Pro CSS via Blazor's
<HeadContent>component when aMapVieworSceneViewrenders. You can remove any existing<link href="_content/dymaptic.GeoBlazor.Pro" />lines from yourApp.razororindex.html.Blazor Hybrid (MAUI) exception:
<HeadContent>is not supported in hybrid apps. You must keep the manual CSS link inwwwroot/index.html:<link href="_content/dymaptic.GeoBlazor.Pro"/>
<link href="_content/dymaptic.GeoBlazor.Pro"/>
Finally, we always suggest to clear out
binandobjfolders, as well as open the browser developer tools and choosedisable cacheonce after an upgrade, to ensure that all the new assets are being loaded correctly. If you encounter any issues, join our Discord server or contact us for support.