Jupiter rules
Jupiter rules

Reputation: 61

Can't deploy blazor MAUI desktop application as .exe

I downloaded latest 17.1 preview and created blazor-maui app from template. Wanted to create single exe from the build. So clicked publish and selected target win-x64. I get this error when i try to publish

Build started...
1>------ Build started: Project: BlazorMauiApp2, Configuration: Release Any CPU ------
1>BlazorMauiApp2 -> C:\Dashboard\Workspace\microsoft\windowsforms\BlazorMauiApp2\bin\Release\net6.0-windows10.0.19041\win-x64\BlazorMauiApp2.dll
2>------ Publish started: Project: BlazorMauiApp2, Configuration: Release Any CPU ------
2>Determining projects to restore...
2>The RuntimeIdentifier 'win-x64' is invalid.
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
========== Publish: 0 succeeded, 1 failed, 0 skipped ==========

Upvotes: 6

Views: 879

Answers (1)

Leandro Toloza
Leandro Toloza

Reputation: 2020

Actually i follow this steps and it works:

1- Download latest Visual Studio Preview version (17.4.0 version 2.1)

2- Create new blazor maui project

3- Publish project

4- Select Sideloading

5- Create or use your Current Certificate

6- Create a new publish profile (in your case win-x64)

7- Select a location for the installer 8- Enjoy

Hope it helps!

If it doesn't work, share to me your publish profile so i can check it

Upvotes: 1

Related Questions