Share via

My packaged WPF app doesn't run

Dmitriy Borodiy 166 Reputation points
2021-06-28T21:02:24.893+00:00

I have some problems with my WPF packaged app.
My app does not run when I make publish package(.msixbundle)...
But I not have any errors when app is packaging or deploying in Debug mode.
If I click on the publish button, created package installs, but not run😥😥😥.
Please help me!

Thank you!
Best wishes!
I hope we have a wonderful day!!!

This is manifest...

This is manifest file.

    <?xml version="1.0" encoding="utf-8"?>

    <Package
      xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
      xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
      xmlns:uap3="http://schemas.microsoft.com/appx/manifest/uap/windows10/3"
      xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
      xmlns:desktop="http://schemas.microsoft.com/appx/manifest/desktop/windows10"
      IgnorableNamespaces="uap rescap desktop">

      <Identity
        Name="69809b8a-b973-4d0a-bd87-4714645fa271"
        Publisher="CN=21D75D9D-7ADB-489C-95BF-140FA618D88D"
        Version="0.1.1.0" />

      <Properties>
        <DisplayName>Power Desktop</DisplayName>
        <PublisherDisplayName>PowerDesktop</PublisherDisplayName>
        <Logo>Images\StoreLogo.png</Logo>
      </Properties>

      <Dependencies>
        <TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.17763.0" MaxVersionTested="10.0.19041.0" />
        <TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.17763.0" MaxVersionTested="10.0.19041.0" />
      </Dependencies>

      <Resources>
        <Resource Language="x-generate"/>
      </Resources>

      <Applications>
        <Application Id="App"
          Executable="Widgets.Classic\Widgets.Classic.exe" 
          EntryPoint="Windows.FullTrustApplication">
          <uap:VisualElements
            DisplayName="Power Desktop(Preview)"
            Description="Power Desktop(Preview)"
            BackgroundColor="transparent"
            Square150x150Logo="Images\Square150x150Logo.png"
            Square44x44Logo="Images\Square44x44Logo.png">
            <uap:DefaultTile Wide310x150Logo="Images\Wide310x150Logo.png"  Square71x71Logo="Images\Square71x71Logo.png" Square310x310Logo="Images\Square310x310Logo.png" ShortName="Power Desktop(Preview)">
              <uap:ShowNameOnTiles>
                <uap:ShowOn Tile="square310x310Logo"/>
                <uap:ShowOn Tile="wide310x150Logo"/>
                <uap:ShowOn Tile="square150x150Logo"/>
              </uap:ShowNameOnTiles>
            </uap:DefaultTile >
            <uap:SplashScreen Image="Images\SplashScreen.png" />
            <uap:InitialRotationPreference>
              <uap:Rotation Preference="landscape"/>
              <uap:Rotation Preference="portrait"/>
              <uap:Rotation Preference="landscapeFlipped"/>
              <uap:Rotation Preference="portraitFlipped"/></uap:InitialRotationPreference>
          </uap:VisualElements>

          <Extensions>
            <uap3:Extension Category="windows.appExecutionAlias"
                        Executable="Widgets.Classic\Widgets.Classic.exe"
                        EntryPoint="Windows.FullTrustApplication">
              <uap3:AppExecutionAlias>
                <desktop:ExecutionAlias Alias="Widgets.Classic.exe" />
              </uap3:AppExecutionAlias>
            </uap3:Extension>
            <desktop:Extension
              Category="windows.startupTask"
              Executable="Widgets.Classic\Widgets.Classic.exe"
              EntryPoint="Windows.FullTrustApplication">
              <desktop:StartupTask
                  TaskId="PowerDesktopShellTask"
                  Enabled="false"
                  DisplayName="Power Desktop" />
            </desktop:Extension>
          </Extensions>

        </Application>
      </Applications>

      <Capabilities>
        <rescap:Capability Name="runFullTrust" />
        <uap:Capability Name="contacts"/>
        <uap:Capability Name="appointments"/>
        <uap:Capability Name="userAccountInformation"/>
        <Capability Name="internetClientServer"/>
        <Capability Name="internetClient"/>
        <DeviceCapability Name="webcam"/>
        <DeviceCapability Name="location"/>
      </Capabilities>
    </Package>
Developer technologies | Windows Presentation Foundation
Developer technologies | C#
Developer technologies | C#

An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.


Answer accepted by question author

Dmitriy Borodiy 166 Reputation points
2021-07-01T09:24:34.54+00:00

I simple bring my code to UWP.
Thank you!

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.