Version on MSIX installer for MAUI .NET

Paul Voelker 21 Reputation points
2022-09-28T15:29:18.557+00:00

When I publish my MAUI.NET project for windows. I get a functional MSIX installer, no problems there.

However, the version on the installer is always 1.0.0.1. When to I need to change or include to make this be something else?

In my project I have 'AssemblyVerions' and 'FileVersion' set.

I am using Visual Studio 17.3.5. The command line I am using to publish is: dotnet publish -f net6.0-windows10.0.19041.0 -c Release /p:RuntimeIdentifierOverride=win10-x64

.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,695 questions
0 comments No comments
{count} votes

Accepted answer
  1. Wenyan Zhang (Shanghai Wicresoft Co,.Ltd.) 33,091 Reputation points Microsoft Vendor
    2022-09-29T07:24:07.47+00:00

    Hello @Paul Voelker ,

    You can check the Version attribute of the Identity element in the app manifest: open Package.appxmainfest under Platforms/Windows folder, go to Packaging tab, then try to set Version.

    Or you can right-click Package.appxmainfest and open it with source code editor, then try to modify the version :

    <Identity Name="XXX" Publisher="XXX" Version="X.X.X.0" />// the last number must be left as 0, the other sections must be set to an integer between 0 and 65535  
    

    For more details, you can refer to Package version numbering - Microsoft Store | Microsoft Learn

    Best Regards,
    Wenyan Zhang


    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.

    0 comments No comments

0 additional answers

Sort by: Most helpful

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.