Maui for windows desktop error issue

Haviv Elbsz 2,071 Reputation points
2023-12-27T10:23:39.7933333+00:00

Hello.

Maui Ver 17.9 preview 2

I am trying to run default template for Maui windows platform and in VS

I get this dialog

Capture

but my configure is already set on deploy.

and I am not in debug mode I am in released mode.

and when I click OK I get this ERROR

Capture2

Please how I can fix this.

Thank you.

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

Accepted answer
  1. Yonglun Liu (Shanghai Wicresoft Co,.Ltd.) 49,611 Reputation points Microsoft External Staff
    2023-12-28T02:57:17.04+00:00

    Hello,

    For this error message, you need to click the inverted triangle button next to Debug/Release in VS, and then click on Configuration Manager.

    After that, make sure that the debug and release modes in the Active Solution configuration are both checked Deploy.

    After testing, if the Deploy option is not checked under any conditions, this error will pop up when the program is running.

    The second error points to the thirteenth column of the tenth line of MAUIProject/Platforms/Windows/app.manifest, the _ does not meet the requirements, and the allowed characters are -, a-z, A-Z, 0-9.

    Best Regards,

    Alec Liu.


    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 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.