Browse Source

Fix for #2544

pull/2879/head
Matthias Hoste 7 years ago
committed by GitHub
parent
commit
3e17bb571f
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Shared/PlatformSupport/AssetLoader.cs

2
src/Shared/PlatformSupport/AssetLoader.cs

@ -4,6 +4,7 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using System.Web;
using System.Linq; using System.Linq;
using System.Reflection; using System.Reflection;
using Avalonia.Platform; using Avalonia.Platform;
@ -242,6 +243,7 @@ namespace Avalonia.Shared.PlatformSupport
throw new InvalidOperationException( throw new InvalidOperationException(
$"Assembly {name} needs to be referenced and explicitly loaded before loading resources"); $"Assembly {name} needs to be referenced and explicitly loaded before loading resources");
#else #else
name = HttpUtility.UrlDecode(name);
AssemblyNameCache[name] = rv = new AssemblyDescriptor(Assembly.Load(name)); AssemblyNameCache[name] = rv = new AssemblyDescriptor(Assembly.Load(name));
#endif #endif
} }

Loading…
Cancel
Save