.NET MSIX config file location

상준 이 251 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?

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,346 questions
C#
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.
10,205 questions
0 comments No comments
{count} votes

Accepted answer
  1. Tianyu Sun-MSFT 27,106 Reputation points Microsoft Vendor
    2022-03-15T01:43:40.727+00:00

    Hello @상준 이 ,

    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