Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MauiEmbedding] Project doesn't know how to run the profile with name 'NameOfTheApp (WinAppSDK Packaged)' and command 'MsixPackage' #2244

Open
2 of 15 tasks
agneszitte opened this issue Apr 10, 2024 · 11 comments
Assignees
Labels
kind/bug Something isn't working

Comments

@agneszitte
Copy link
Contributor

agneszitte commented Apr 10, 2024

Current behavior

Error popup when running Windows as Packaged for a blank Maui Embedding sample app
image

Expected behavior

Being able to run Windows as Packaged for a blank Maui Embedding sample app

How to reproduce it (as minimally and precisely as possible)

  • Create a blank maui embedding sample app with latest template 5.3.0-dev.19.
    dotnet new unoapp -preset blank -maui -o MauiEmbeddingApp
  • Try to run Windows as Packaged for the Maui Embedding sample app
  • Notice the Error popup
  • Try to update the Uno packages to latest
  • Still noticing the Error popup

Sample app used for the tests: MauiEmbeddingBlankApp.zip

Environment

    "Uno.Sdk": "5.3.0-dev.168"
    <UnoExtensionsVersion>4.2.0-dev.13</UnoExtensionsVersion>
    <UnoToolkitVersion>6.1.0-dev.7</UnoToolkitVersion>
    <UnoThemesVersion>5.1.0-dev.8</UnoThemesVersion>
    <UnoCSharpMarkupVersion>5.3.0-dev.11</UnoCSharpMarkupVersion>
    Microsoft.WindowsAppSDK: 1.5.240311000
    Microsoft.Windows.SDK.BuildTools: 10.0.22621.3233
    MauiVersion: 8.0.6

Affected platform(s):

  • iOS
  • macOS (AppKit)
  • Mac Catalyst
  • Android
  • WebAssembly
  • Windows (Packaged)
  • Skia (WPF)
  • Skia (GTK on Linux/macOS/Windows)
  • Skia (Linux Framebuffer)
  • Build tasks

Visual Studio:

  • 2019 (version: )
  • 2022 (version: 17.9.6)
  • Visual Studio Code (version: )
  • Rider Windows (version: )
  • Rider macOS (version: )

Additional info

Important

No issues for default blank or recommended apps with latest template 5.3.0-dev.19 when testing Windows Packaged.

@jeromelaban
Copy link
Member

This is a single project issue, it may be a caused by the main project not being set as startup when VS starts. A newer update, most likely from unoplatform/uno#16203 will fix that.

@jeromelaban
Copy link
Member

A workaround is to set the windows tfm first in the list.

@agneszitte
Copy link
Contributor Author

agneszitte commented Apr 10, 2024

A workaround is to set windows tfm first in the list.

@jeromelaban I tried to set windows tfm first in the list in the csproj, but still getting the error popup even after properly closing+reopening VS.
image

Am I missing something?

@jeromelaban
Copy link
Member

@agneszitte You have to restart VS for the change to apply.

@agneszitte
Copy link
Contributor Author

agneszitte commented Apr 10, 2024

@agneszitte You have to restart VS for the change to apply.

It was already the case @jeromelaban
image
I just restarted one last time right now to make sure and still getting the error popup

@jeromelaban
Copy link
Member

Should be fixed by unoplatform/uno#16203.

@agneszitte
Copy link
Contributor Author

agneszitte commented Apr 12, 2024

@Darsh0307 can you help test this issue with latest stable / dev packages now that unoplatform/uno#16203 is merged please

@Darsh0307
Copy link

Darsh0307 commented Apr 13, 2024

Hey @agneszitte I will check with latest 5.2 templates and let you know :)

Edit :-

Both 5.2 and 5.3 have the same error. The erorr are mentioned at the bottom.

Uno.Templates.5.2.15.nupkg
"Uno.Sdk": "5.2.42"

Uno.Templates.5.3.0-dev.31.nupkg
"Uno.Sdk": "5.3.0-dev.315"

This was the error which i was getting
Screenshot 2024-04-14 at 10 26 39 PM

I also made sure that configuration manager is updated properly
Screenshot 2024-04-14 at 10 32 04 PM

When building i also saw an error in deployment.
Screenshot 2024-04-14 at 10 27 44 PM

@Darsh0307 Darsh0307 reopened this Apr 15, 2024
@Darsh0307
Copy link

Darsh0307 commented Apr 23, 2024

The comment given on the same issue.

It is still the same error which i am getting

Uno.Templates.5.2.28
Uno VISX:- 5.2.33
"Uno.Sdk": "5.2.83"

@agneszitte
Copy link
Contributor Author

@Darsh0307 if you can do a test with latest version please

@nickrandolph nickrandolph removed the triage/untriaged Indicates an issue requires triaging or verification. label May 7, 2024
@nickrandolph nickrandolph changed the title [Windows - Packaged][MauiEmbedding] Project doesn't know how to run the profile with name 'NameOfTheApp (WinAppSDK Packaged)' and command 'MsixPackage' [MauiEmbedding] Project doesn't know how to run the profile with name 'NameOfTheApp (WinAppSDK Packaged)' and command 'MsixPackage' May 7, 2024
@Darsh0307
Copy link

Darsh0307 commented Jun 11, 2024

The application was created using CLI dotnet new unoapp -preset blank -maui -o MauiEmbeddingApp
Uno.Sdk: 5.3.0-dev.1901
Uno.Templates:- 5.3.0-dev.1901
VS version:- 17.10.1

Build

DEP0700: Registration of the app failed. [0x80080204] error 0xC00CE015: App manifest validation error: The app manifest must be valid as per schema: Line 31, Column 85, Reason: The attribute '{http://schemas.microsoft.com/appx/manifest/foundation/windows10}MaxVersionTested' on the element '{http://schemas.microsoft.com/appx/manifest/foundation/windows10}TargetDeviceFamily' is not defined in the DTD/Schema.

========== Build: 2 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
========== Build completed at 4:38 PM and took 18.311 seconds ==========
========== Deploy: 1 succeeded, 0 failed, 0 skipped ==========
========== Deploy completed at 4:38 PM and took 18.311 seconds =========

Deployment

Registering the application to run from layout...
DEP0700: Registration of the app failed. [0x80080204] error 0xC00CE015: App manifest validation error: The app manifest must be valid as per schema: Line 31, Column 85, Reason: The attribute '{http://schemas.microsoft.com/appx/manifest/foundation/windows10}MaxVersionTested' on the element '{http://schemas.microsoft.com/appx/manifest/foundation/windows10}TargetDeviceFamily' is not defined in the DTD/Schema.

	DeploymentSucceeded = False
	DeploymentError = Err_Deploy_Register
	DeploymentUserError = False
	DeploymentHRESULT = -2146958844
	HasSharedCode = False
	Target.Id = 256
	ProjectGuid = {4779d8f3-b1d2-4140-909e-9371e82b0e5a

This was the error which i was getting

Screenshot 2024-06-12 at 2 10 47 AM

I also made sure that configuration manager is updated properly.

Screenshot 2024-06-12 at 2 11 47 AM

MauiEmbeddingApp.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants