Hello,
If you want to get rid of these languages folders when publish your application. Please set the -p:WindowsAppSDKSelfContained=false.
Before running published application, you need to install Latest downloads for the Windows App SDK - Windows apps | Microsoft Learn
When your application is self contained(WindowsAppSDKSelfContained=true), what actually happens is that Visual Studio copies the contents of the Windows App SDK framework package to your application directory. This is the file named Microsoft.WindowsAppRuntime.1.x.msix. So, you can't really stop the creation of the language directories.
Best Regards,
Leon Lu
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.