question

DmitriyBorodiy-2729 avatar image
0 Votes"
DmitriyBorodiy-2729 asked DmitriyBorodiy-2729 answered

My packaged WPF app doesn't run

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>
dotnet-csharpwindows-wpf
· 7
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@DmitriyBorodiy-2729
Did you sign your package? Is there an error message for failed installation? What is the target platform of your WPF project? Did you check this document (Prepare to package a desktop application) before you packaged your project into the msixbundle package?


1 Vote 1 ·

Yes, I sign package with Microsoft Store.
No I don't have any errors.
I use WinRT and ProjectReunion.
Target platforms x86, x64.

0 Votes 0 ·

The package stop working when I create a publish version (msixbundle).
If I deploy it with VS2019 it works correctly!

0 Votes 0 ·

@DmitriyBorodiy
Did your application target .NET Framework 4.6.2 or later? Did you install the certification and uninstalled the deployed app before installing packaged app?

1 Vote 1 ·
Show more comments

1 Answer

DmitriyBorodiy-2729 avatar image
0 Votes"
DmitriyBorodiy-2729 answered

I simple bring my code to UWP.
Thank you!

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.