Where to add <WindowsPackageType>None</WindowsPackageType> in project properties?

Ali Iranpour 41 Reputation points
2021-12-04T07:23:10.66+00:00

At the end of this document it says to add <WindowsPackageType>None</WindowsPackageType> property to the project file and then Change 'AppxPackage' property to false <AppxPackage>false</AppxPackage> but how should I do that where is project file? what line in project file?

Universal Windows Platform (UWP)
Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
727 questions
C++
C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
3,537 questions
0 comments No comments
{count} votes

Accepted answer
  1. Castorix31 81,741 Reputation points
    2021-12-04T07:46:33.857+00:00

    You must edit the .csproj file (for C#, .vcxproj for C++)

    thern inside PropertyGroup :

     <PropertyGroup>
        <OutputType>WinExe</OutputType>
        <TargetFramework>net5.0-windows10.0.19041.0</TargetFramework>
        <TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
        <RootNamespace>CSharp_WindowsAppSDK_Test3</RootNamespace>
        <ApplicationManifest>app.manifest</ApplicationManifest>
        <Platforms>x86;x64;arm64</Platforms>
        <RuntimeIdentifiers>win10-x86;win10-x64;win10-arm64</RuntimeIdentifiers>
        <PublishProfile>win10-$(Platform).pubxml</PublishProfile>
        <UseWinUI>true</UseWinUI>
        <EnablePreviewMsixTooling>true</EnablePreviewMsixTooling>
        <WindowsPackageType>None</WindowsPackageType>
      </PropertyGroup>
    
    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Yegor Isakov 11 Reputation points
    2022-08-28T04:45:51.857+00:00

    I think the only way to use the DESINER with WINUI3 or WINUI3 with the DESINER is: to open two instances of VS Community Edition. In one, you will run UWP version of you project, and in another, you will run WinUI3 version. After setting up interface for UWP version you can share it with WinUI3, thanks to windows organizing in win10/win11.....235523-screenshot-2022-08-28-004357.jpg

    0 comments No comments