I am using Visual studio 2022, to create a .NET 7 application.
I have a config.xml file in my project, that my app loads. When I build and run the application normally, all is fine. However, the XML file will not load when I produce and run my application from an MSIX bundle.
Here is my project structure:
-> Solution
----> Project_a (Main entry point)
----> Project_b (DLL)
------> my_config.xml
----> MSIX_APPLICATION
I have a post build event, that copies my_config.xml from Project_b, into project_a's build folder.
As mentioned, all works fine when running my application normally, but not when running via a MSIX App Bundle. it wont find and load my_config.xml.
When I go into the location MSIX installs it to, c:\program_files\WindowsApp\<myapp>
directory, I can see the my_config.xml file is there alongside the binary. If I run the main binary from there, it seems to load the XML file fine.
Any idea's?