Create exe for .NET MAUI windows

developer 20 Reputation points
2025-01-20T11:21:50.29+00:00

I am developing a windows application in .NET MAUI using Visual Studios 2022. I need to test it on another machine so I publish the app and create MSIX file. But when I install the certificate there, it is installed successfully but on executing the installer it fails due to certificate issue.

Any help will be appreciated.

PS: I am creating the certificate myself with the help of VS 2022 configuration wizard which shows up after we click on "Publish".

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,406 questions
.NET MAUI
.NET MAUI
A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
3,900 questions
0 comments No comments
{count} votes

Accepted answer
  1. Leon Lu (Shanghai Wicresoft Co,.Ltd.) 79,471 Reputation points Microsoft Vendor
    2025-01-22T05:30:23.7533333+00:00

    Hello,

    I doubled clicked and installed the certificate. But still when I execute the installer it says certificate not founf.

    Please clicked the certificate in the MSIX installer file folder, then choose "Install certificate..." selection.

    enter image description here

    Then choose "Local machine", click the Next

    enter image description here

    After that, change the selection to the Place all certificates in the following store, click the browse, select Trusted Root Certification Authorities, click OK.

    enter image description here

    In the end, install this certificate successfully, you can click the msix file to install your program.

    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.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 71,101 Reputation points
    2025-01-20T17:36:25.89+00:00

    If it’s a self signed certificate, then each computer that uses the app must install and trust the certificate.


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.