Skip to content

Commit

Permalink
feat(skia): Use PackageInstalledLocation for the path
Browse files Browse the repository at this point in the history
  • Loading branch information
ajpinedam committed Jan 7, 2021
1 parent f910b24 commit c801466
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Uno.UWP/Storage/StorageFile.skia.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using Windows.ApplicationModel;

namespace Windows.Storage
{
Expand All @@ -18,8 +19,7 @@ private static async Task<StorageFile> GetFileFromApplicationUri(CancellationTok

var path = uri.PathAndQuery.TrimStart(new char[] { '/' });

var baseDir = global::System.IO.Path.GetDirectoryName(global::System.Reflection.Assembly.GetExecutingAssembly().Location);
var resourcePathname = global::System.IO.Path.Combine(baseDir, path);
var resourcePathname = global::System.IO.Path.Combine(Package.Current.InstalledLocation.Path, path);

if (resourcePathname != null)
{
Expand Down

0 comments on commit c801466

Please sign in to comment.