Mar 14 2022 07:48 PM - edited Mar 15 2022 11:42 PM
I'm using MSIX packaging in .NET 5 WPF.
I'm also using a generic host, so I build the config file via IConfigurationBuilder.
Where are my config files copied to on MSIX?
The build action of my appsettings.json file is 'content' and always copy.
----
When debugging in .NET project debug mode, the path to HostBuilderContext.HostingEnvironment.ContentRootPath will be in the debug folder in the normal project subpath.
But when I debug in MSIX project debug mode, the path to HostBuilderContext.HostingEnvironment.ContentRootPath is C:\Windows\SysWoW64 .
Why does MSIX have different paths?
Mar 24 2022 03:35 AM