Share via

How to Disable Compression while Archiving in Visual Studio

David Harper 0 Reputation points
2026-05-30T02:58:20.63+00:00

Hello,

While archiving my application and signing, the UI Version of Visual Studio's Archiving, is compressing resource files. The store I am uploading to does not allow for the compression. Is there any way to disable the compression during archiving? It's the only last hope I have of using my keystore in this fashion.

Sincere,

David

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

3 answers

Sort by: Most helpful
  1. Nancy Vo (WICLOUD CORPORATION) 4,845 Reputation points Microsoft External Staff Moderator
    2026-06-01T03:26:40.5366667+00:00

    Hello @David Harper ,

    Thanks for your question.

    Visual Studio does not expose a compression setting in the Archive UI.

    In .NET MAUI, you can control which file types are not compressed during packaging by editing the .csproj file.

    <PropertyGroup>
    <AndroidStoreUncompressedFileExtensions>.png;.jpg;.mp3;.zip;.dat;.obb</AndroidStoreUncompressedFileExtensions>
    </PropertyGroup>
    

    Please replace .png;.jpg;.mp3,.. with the actual extensions of the resource files that the store is complaining about.

    After making the changes, clean and rebuild the solution, then archive it again.

    If this does not work as expected, please provide the following information below:

    • Which store are you uploading to?
    • What error message does the store give when rejecting the upload?

    I hope this addresses your question. If this response was helpful, please consider following the guidance to provide feedback.

    Was this answer helpful?


  2. Atharv Madhav Mandawkar 325 Reputation points Student Ambassador
    2026-05-31T13:41:40.6266667+00:00

    Hi David,

    Visual Studio does not provide any setting to disable compression during the Archive and Sign process. It is part of the default packaging system and runs automatically.

    The way to handle this is to avoid the Archive option and create the package manually instead.

    First, build your project in Release mode. Then take the files from the publish or output folder. After that, create the final package using your own method, such as MSBuild or a custom packaging script, where you have full control over how files are packed.

    This limitation comes from Visual Studio itself, so it cannot be changed from a setting inside the IDE. If the store does not accept compressed resources, manual packaging is the only practical solution.

    Was this answer helpful?

    0 comments No comments

  3. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

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.