microsoft / microsoft-ui-xaml

Windows UI Library: the latest Windows 10 native controls and Fluent styles for your applications
MIT License
6.34k stars 676 forks source link

Can't create My First WinUI Desktop App #6588

Closed vsfeedback closed 1 year ago

vsfeedback commented 2 years ago

This issue has been moved from a ticket on Developer Community.


I tried to follow this link: https://docs.microsoft.com/en-us/windows/apps/winui/winui3/create-your-first-winui3-app?pivots=winui3-packaged-csharp

In Step 3 I don't find an option "Blank App, Packaged with Windows Application Packaging Project (WinUI 3 in Desktop)", only "Blank App, Packaged (WinUI 3 in Desktop)" and "Class Library (WinUI 3 in Desktop)". Having no choice, I selected "Blank App, Packaged (WinUI 3 in Desktop)".

  1. The generated solution has 2 projects, according to the the description, I expected no packaging project.
  2. Got 2 Warnings in the error list: Warning WMC9999 Type universe cannot resolve assembly: Microsoft.InteractiveExperiences.Projection, Version=10.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35. App13 C:\Users\User\source\repos\App13\App13\App13\MainWindow.xaml 1
    Warning MSB4181 The "CompileXaml" task returned false but did not log an error. App13 C:\Users\User.nuget\packages\microsoft.projectreunion.winui\0.8.4\buildTransitive\Microsoft.UI.Xaml.Markup.Compiler.interop.targets 341
  3. In Step 7 "Enable deployment for your project in Configuration Manager" it's not possible to click the deploy check box.
  4. Build with 2 errors.

Windows 11, Visual Studio 2022 17.0.1, all Desktop and Mobile workloads (5) installed, MSIX Packaging Tools installed, Windows 11 SDK installed Two weeks ago, I could create a WinUI Desktop App.


Original Comments

Feedback Bot on 11/25/2021, 09:58 PM:

We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.


Original Solutions

Johannes Kleinz solved on 11/25/2021, 00:04 PM, 0 votes:

Install Single-Project MSIX Packaging Tools

StephenLPeters commented 2 years ago

@evelynwu-msft sounds like either vsix issues or possibly documentation issues. Can you weigh in?

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 5 days.