Matthias Hoste
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
0 deletions
-
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
|
|
|
} |
|
|
} |
|
|
|