Share via

Publish - omit multi languages folders

Dani_S 5,581 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

Developer technologies | .NET | .NET Multi-platform App UI

1 answer

Sort by: Most helpful
  1. Anonymous
    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.

    Was this answer 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.