Replies: 2 comments 1 reply
-
These aren't generated. Now, when you set your project to self contained, it needs to copy the files from the framework package to your application directory to satisfy dependencies. But this copying process is basically a dumb copy of all the non appx/msix files from the package. This means you can infer some behaviour as to how things work. Windows will use the Multilingual User Interface functions to access these files, and as you can see from Windows itself, only the relevant ones to your set languages are installed. So, if you are willing and daring and have no issues testing your application in all possible ways to make sure that things keep working, it may be possible to delete the languages that you don't need. But again, this should be technically taken as unsupported since the Windows App SDK groups these directories together. |
Beta Was this translation helpful? Give feedback.
-
I used this method:
now open your csproj file and import RemoveLanguageFolders.targets file:
you should edit Project="RemoveLanguageFolders.targets" if your file created in another place! Now you can specify which folders should not be deleted, all folders will be automatically deleted unless specified with the following code:
|
Beta Was this translation helpful? Give feedback.
-
Hi,
When I build the WinUI project, I see a lot of culture folders generated by this
Microsoft.ui.xaml.dll.mui
.I've tried different ways but none seems to work. I've tried these two properties but still, all folders are being generated.
How can I disable these folders generation?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions