Publish - omit multi languages folders

Dani_S 4,251 Reputation points
2023-09-14T08:32:19.04+00:00

Hi,

When publishing Maui app as exe it create these folder(320 MG).

What are these folder ? if i do not use multi- languages, it can be avoided through publish action ?

My publish command is:

dotnet publish -f net7.0-windows10.0.19041.0 -c Release -p:WindowsPackageType=None -p:WindowsAppSDKSelfContained=true /p:PackageCertificateThumbprint="c01ba45666762f3615cf6813aeb4dc4b1919541d"

User's image

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
4,012 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Leon Lu (Shanghai Wicresoft Co,.Ltd.) 80,771 Reputation points Microsoft External Staff
    2023-09-18T01:56:25.13+00:00

    Hello,

    There is no way to prevent these from being generated in a self-contained project by dotnet publish

    If you only want to deploy specific languages, you can ignore the other language folders that you don't want and deploy only the directories for the languages you want. 

    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.


Your answer

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