diff --git a/src/MonkeyCache.SQLite/MonkeyCache.SQLite.csproj b/src/MonkeyCache.SQLite/MonkeyCache.SQLite.csproj index 40a92bc..17f9c36 100644 --- a/src/MonkeyCache.SQLite/MonkeyCache.SQLite.csproj +++ b/src/MonkeyCache.SQLite/MonkeyCache.SQLite.csproj @@ -48,7 +48,7 @@ - + diff --git a/src/MonkeyCache.TestApp/MonkeyCache.TestApp.csproj b/src/MonkeyCache.TestApp/MonkeyCache.TestApp.csproj index b77db3c..67aa4d8 100644 --- a/src/MonkeyCache.TestApp/MonkeyCache.TestApp.csproj +++ b/src/MonkeyCache.TestApp/MonkeyCache.TestApp.csproj @@ -6,7 +6,7 @@ - + diff --git a/src/MonkeyCache.TestsSQLite/MonkeyCache.TestsSQLite.csproj b/src/MonkeyCache.TestsSQLite/MonkeyCache.TestsSQLite.csproj index 1bf7452..5bdfb3e 100644 --- a/src/MonkeyCache.TestsSQLite/MonkeyCache.TestsSQLite.csproj +++ b/src/MonkeyCache.TestsSQLite/MonkeyCache.TestsSQLite.csproj @@ -7,7 +7,7 @@ - + diff --git a/src/MonkeyCache/BarrelUtils.cs b/src/MonkeyCache/BarrelUtils.cs index 3d6a331..4c28d66 100644 --- a/src/MonkeyCache/BarrelUtils.cs +++ b/src/MonkeyCache/BarrelUtils.cs @@ -63,7 +63,14 @@ internal static string GetBasePath(string applicationId) #elif ANDROID basePath = Application.Context.CacheDir.AbsolutePath; #elif WINDOWS - basePath = Windows.Storage.ApplicationData.Current.LocalCacheFolder.Path; + try + { + basePath = Windows.Storage.ApplicationData.Current.LocalCacheFolder.Path; + } + catch(Exception ex) + { + basePath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData); + } #else basePath = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData); #endif