We have a UWP app which references a UWP class library. The UWP class library has a Common folder with files that are required at runtime.
The files are marked Copy As Content. The files are copied to ..\UWP\bin\x64\Debug\Appx\<LibraryName>\Common
. The app finds those files at runtime in package.InstalledLocation\<LibraryName>\Common
The UWP class library is now a .NET Standard 2.0 class library. At runtime the Common folder is now copied to a folder at the same level as the Appx folder ..\UWP\bin\x64\Debug\Common
where I cannot access. I tried
StorageFolder installedFolder = package.InstalledLocation;
StorageFolder parentFolder = await installedFolder.GetParentAsync();
but parentFolder
returns null
. How do I access files and folders that are content from a .NET Standard 2.0 class library?