.NET MSIX config file location

vincent219 256 Reputation points
2022-03-14T07:25:05.867+00:00

I'm using MSIX packaging in .NET 5 WPF.

I'm also using a generic host, so I build the config file via IConfigurationBuilder.

When debugging without MSIX, there is no problem when I make my settings file as appsettings.json file name and use it as shown in the screenshot below.

182667-image.png

However, when starting debugging in MSIX format, the configuration file is not copied to my application path.

182660-image.png

Where are my config files copied to on MSIX?

The build action of my appsettings.json file is 'content' and always copy.

-------------------------------------

Another question, but I came across this forum mainly when posting questions about Azure Functions.

Can I get an answer if I post it here as well regarding msix?
If so, is it ok to tag as it is now?

Developer technologies | .NET | Other
Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
0 comments No comments
{count} votes

Answer accepted by question author
  1. Tianyu Sun-MSFT 34,686 Reputation points Microsoft External Staff
    2022-03-15T01:43:40.727+00:00

    Hello @vincent219 ,

    Welcome to Microsoft Q&A forum.

    MSIX is currently not supported in the Microsoft Q&A forums, you can ask here: MSIX community for MSIX related questions.

    Thanks for your understanding, have a great day.

    Best Regards,
    Tianyu

    • If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
      Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.