diff --git a/src/Avalonia.Base/Platform/IAssetLoader.cs b/src/Avalonia.Base/Platform/IAssetLoader.cs
index ec1f97f178..e3899784ad 100644
--- a/src/Avalonia.Base/Platform/IAssetLoader.cs
+++ b/src/Avalonia.Base/Platform/IAssetLoader.cs
@@ -74,6 +74,6 @@ namespace Avalonia.Platform
/// The URI.
/// The base URI.
/// All matching assets as a tuple of the absolute path to the asset and the assembly containing the asset
- IEnumerable GetAssets(Uri uri, Uri baseUri);
+ IEnumerable GetAssets(Uri uri, Uri? baseUri);
}
}
diff --git a/src/Shared/PlatformSupport/AssetLoader.cs b/src/Shared/PlatformSupport/AssetLoader.cs
index 95ac79ae31..43f9211889 100644
--- a/src/Shared/PlatformSupport/AssetLoader.cs
+++ b/src/Shared/PlatformSupport/AssetLoader.cs
@@ -109,7 +109,7 @@ namespace Avalonia.Shared.PlatformSupport
/// The URI.
/// Base URI that is used if is relative.
/// All matching assets as a tuple of the absolute path to the asset and the assembly containing the asset
- public IEnumerable GetAssets(Uri uri, Uri baseUri)
+ public IEnumerable GetAssets(Uri uri, Uri? baseUri)
{
if (uri.IsAbsoluteUri && uri.Scheme == "resm")
{