Skip to content

Instantly share code, notes, and snippets.

@derekforeman
Last active September 19, 2022 19:05
Show Gist options
  • Save derekforeman/2115799867bf4ccf19206f3cd1e0872e to your computer and use it in GitHub Desktop.
Save derekforeman/2115799867bf4ccf19206f3cd1e0872e to your computer and use it in GitHub Desktop.
Build a Maui windows desktop app, do not create MSIX package

Edit *.csproj

Within a <PropertyGroup />, existing or create a new one add the following.

<!--Do not create package for windows--> <WindowsPackageType Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'windows'">None</WindowsPackageType>

Save and close.

Edit Properties\launchSettings.json

Change commandName from "MSIX" to "Project"

{
  "profiles": {
    "Windows Machine": {
      "commandName": "Project",
      "nativeDebugging": false
    }
  }
}

Save and Close.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment