-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
extension: Use WAP for target name if there is one #13
- Loading branch information
Showing
27 changed files
with
717 additions
and
4 deletions.
There are no files selected for viewing
Binary file added
BIN
+432 Bytes
...pToBePackaged/TestAppToBePackaged (Package)/Images/LockScreenLogo.scale-200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+5.25 KB
...AppToBePackaged/TestAppToBePackaged (Package)/Images/SplashScreen.scale-200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.71 KB
...BePackaged/TestAppToBePackaged (Package)/Images/Square150x150Logo.scale-200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+637 Bytes
...ToBePackaged/TestAppToBePackaged (Package)/Images/Square44x44Logo.scale-200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+283 Bytes
...oBePackaged (Package)/Images/Square44x44Logo.targetsize-24_altform-unplated.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+456 Bytes
...lPreview/TestAppToBePackaged/TestAppToBePackaged (Package)/Images/StoreLogo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+2.05 KB
...ToBePackaged/TestAppToBePackaged (Package)/Images/Wide310x150Logo.scale-200.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
60 changes: 60 additions & 0 deletions
60
WinUI3XamlPreview/TestAppToBePackaged/TestAppToBePackaged (Package)/Package.appxmanifest
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
|
||
<Package | ||
xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10" | ||
xmlns:mp="http://schemas.microsoft.com/appx/2014/phone/manifest" | ||
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10" | ||
xmlns:uap5="http://schemas.microsoft.com/appx/manifest/uap/windows10/5" | ||
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities" | ||
IgnorableNamespaces="uap rescap"> | ||
|
||
<Identity | ||
Name="d83e7f2d-479f-488b-8ab3-4b776d1f9318" | ||
Publisher="CN=Roxk" | ||
Version="1.0.0.0" /> | ||
|
||
<mp:PhoneIdentity PhoneProductId="d83e7f2d-479f-488b-8ab3-4b776d1f9318" PhonePublisherId="00000000-0000-0000-0000-000000000000"/> | ||
|
||
<Properties> | ||
<DisplayName>TestAppToBePackaged (Package)</DisplayName> | ||
<PublisherDisplayName>Roxk</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="$targetnametoken$.exe" | ||
EntryPoint="$targetentrypoint$"> | ||
<uap:VisualElements | ||
DisplayName="TestAppToBePackaged (Package)" | ||
Description="TestAppToBePackaged (Package)" | ||
BackgroundColor="transparent" | ||
Square150x150Logo="Images\Square150x150Logo.png" | ||
Square44x44Logo="Images\Square44x44Logo.png"> | ||
<uap:DefaultTile Wide310x150Logo="Images\Wide310x150Logo.png" /> | ||
<uap:SplashScreen Image="Images\SplashScreen.png" /> | ||
</uap:VisualElements> | ||
<Extensions> | ||
<uap5:Extension | ||
Category="windows.appExecutionAlias"> | ||
<uap5:AppExecutionAlias> | ||
<uap5:ExecutionAlias Alias="TestAppToBePackagedPackage-WinUI3XP.exe" /> | ||
</uap5:AppExecutionAlias> | ||
</uap5:Extension> | ||
</Extensions> | ||
</Application> | ||
</Applications> | ||
|
||
<Capabilities> | ||
<rescap:Capability Name="runFullTrust" /> | ||
</Capabilities> | ||
</Package> |
Binary file added
BIN
+872 Bytes
...tAppToBePackaged/TestAppToBePackaged (Package)/TestAppToBePackaged (Package).assets.cache
Binary file not shown.
Binary file added
BIN
+872 Bytes
...TestAppToBePackaged/TestAppToBePackaged (Package)/TestAppToBePackagedPackage.assets.cache
Binary file not shown.
74 changes: 74 additions & 0 deletions
74
...view/TestAppToBePackaged/TestAppToBePackaged (Package)/TestAppToBePackagedPackage.wapproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup Condition="'$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' < '15.0'"> | ||
<VisualStudioVersion>15.0</VisualStudioVersion> | ||
</PropertyGroup> | ||
<ItemGroup Label="ProjectConfigurations"> | ||
<ProjectConfiguration Include="Debug|x86"> | ||
<Configuration>Debug</Configuration> | ||
<Platform>x86</Platform> | ||
</ProjectConfiguration> | ||
<ProjectConfiguration Include="Release|x86"> | ||
<Configuration>Release</Configuration> | ||
<Platform>x86</Platform> | ||
</ProjectConfiguration> | ||
<ProjectConfiguration Include="Debug|x64"> | ||
<Configuration>Debug</Configuration> | ||
<Platform>x64</Platform> | ||
</ProjectConfiguration> | ||
<ProjectConfiguration Include="Release|x64"> | ||
<Configuration>Release</Configuration> | ||
<Platform>x64</Platform> | ||
</ProjectConfiguration> | ||
<ProjectConfiguration Include="Debug|ARM64"> | ||
<Configuration>Debug</Configuration> | ||
<Platform>ARM64</Platform> | ||
</ProjectConfiguration> | ||
<ProjectConfiguration Include="Release|ARM64"> | ||
<Configuration>Release</Configuration> | ||
<Platform>ARM64</Platform> | ||
</ProjectConfiguration> | ||
</ItemGroup> | ||
<PropertyGroup> | ||
<WapProjPath Condition="'$(WapProjPath)'==''">$(MSBuildExtensionsPath)\Microsoft\DesktopBridge\</WapProjPath> | ||
<DebuggerType>NativeOnly</DebuggerType> | ||
<BackgroundTaskDebugEngines>NativeOnly</BackgroundTaskDebugEngines> | ||
</PropertyGroup> | ||
<Import Project="$(WapProjPath)\Microsoft.DesktopBridge.props" /> | ||
<PropertyGroup> | ||
<ProjectGuid>154bba0c-91dd-4040-ade1-188898a17c18</ProjectGuid> | ||
<TargetPlatformVersion>10.0.22621.0</TargetPlatformVersion> | ||
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion> | ||
<DefaultLanguage>en-US</DefaultLanguage> | ||
<AppxPackageSigningEnabled>false</AppxPackageSigningEnabled> | ||
<EntryPointProjectUniqueName>..\TestAppToBePackaged\TestAppToBePackaged.vcxproj</EntryPointProjectUniqueName> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<AppxManifest Include="Package.appxmanifest"> | ||
<SubType>Designer</SubType> | ||
</AppxManifest> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Content Include="Images\SplashScreen.scale-200.png" /> | ||
<Content Include="Images\LockScreenLogo.scale-200.png" /> | ||
<Content Include="Images\Square150x150Logo.scale-200.png" /> | ||
<Content Include="Images\Square44x44Logo.scale-200.png" /> | ||
<Content Include="Images\Square44x44Logo.targetsize-24_altform-unplated.png" /> | ||
<Content Include="Images\StoreLogo.png" /> | ||
<Content Include="Images\Wide310x150Logo.scale-200.png" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<ProjectReference Include="..\TestAppToBePackaged\TestAppToBePackaged.vcxproj"> | ||
<SkipGetTargetFrameworkProperties>True</SkipGetTargetFrameworkProperties> | ||
</ProjectReference> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<PackageReference Include="Microsoft.WindowsAppSDK" Version="[1.4.230913002]"> | ||
<IncludeAssets>build</IncludeAssets> | ||
</PackageReference> | ||
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="[10.0.22621.755]"> | ||
<IncludeAssets>build</IncludeAssets> | ||
</PackageReference> | ||
</ItemGroup> | ||
<Import Project="$(WapProjPath)\Microsoft.DesktopBridge.targets" /> | ||
</Project> |
16 changes: 16 additions & 0 deletions
16
WinUI3XamlPreview/TestAppToBePackaged/TestAppToBePackaged/App.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Application | ||
x:Class="TestAppToBePackaged.App" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="using:TestAppToBePackaged"> | ||
<Application.Resources> | ||
<ResourceDictionary> | ||
<ResourceDictionary.MergedDictionaries> | ||
<XamlControlsResources xmlns="using:Microsoft.UI.Xaml.Controls" /> | ||
<!-- Other merged dictionaries here --> | ||
</ResourceDictionary.MergedDictionaries> | ||
<!-- Other app resources here --> | ||
</ResourceDictionary> | ||
</Application.Resources> | ||
</Application> |
47 changes: 47 additions & 0 deletions
47
WinUI3XamlPreview/TestAppToBePackaged/TestAppToBePackaged/App.xaml.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
#include "pch.h" | ||
#include "App.xaml.h" | ||
#include "MainWindow.xaml.h" | ||
|
||
using namespace winrt; | ||
using namespace Microsoft::UI::Xaml; | ||
|
||
// To learn more about WinUI, the WinUI project structure, | ||
// and more about our project templates, see: http://aka.ms/winui-project-info. | ||
|
||
namespace winrt::TestAppToBePackaged::implementation | ||
{ | ||
/// <summary> | ||
/// Initializes the singleton application object. This is the first line of authored code | ||
/// executed, and as such is the logical equivalent of main() or WinMain(). | ||
/// </summary> | ||
App::App() | ||
{ | ||
// Xaml objects should not call InitializeComponent during construction. | ||
// See https://github.com/microsoft/cppwinrt/tree/master/nuget#initializecomponent | ||
|
||
#if defined _DEBUG && !defined DISABLE_XAML_GENERATED_BREAK_ON_UNHANDLED_EXCEPTION | ||
UnhandledException([](IInspectable const&, UnhandledExceptionEventArgs const& e) | ||
{ | ||
if (IsDebuggerPresent()) | ||
{ | ||
auto errorMessage = e.Message(); | ||
__debugbreak(); | ||
} | ||
}); | ||
#endif | ||
} | ||
|
||
/// <summary> | ||
/// Invoked when the application is launched. | ||
/// </summary> | ||
/// <param name="e">Details about the launch request and process.</param> | ||
winrt::fire_and_forget App::OnLaunched([[maybe_unused]] LaunchActivatedEventArgs const& e) | ||
{ | ||
if (co_await WinUI3XamlPreview::Preview::IsXamlPreviewLaunched()) | ||
{ | ||
co_return; | ||
} | ||
window = make<MainWindow>(); | ||
window.Activate(); | ||
} | ||
} |
16 changes: 16 additions & 0 deletions
16
WinUI3XamlPreview/TestAppToBePackaged/TestAppToBePackaged/App.xaml.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#pragma once | ||
|
||
#include "App.xaml.g.h" | ||
|
||
namespace winrt::TestAppToBePackaged::implementation | ||
{ | ||
struct App : AppT<App> | ||
{ | ||
App(); | ||
|
||
winrt::fire_and_forget OnLaunched(Microsoft::UI::Xaml::LaunchActivatedEventArgs const&); | ||
|
||
private: | ||
winrt::Microsoft::UI::Xaml::Window window{ nullptr }; | ||
}; | ||
} |
9 changes: 9 additions & 0 deletions
9
WinUI3XamlPreview/TestAppToBePackaged/TestAppToBePackaged/MainWindow.idl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace TestAppToBePackaged | ||
{ | ||
[default_interface] | ||
runtimeclass MainWindow : Microsoft.UI.Xaml.Window | ||
{ | ||
MainWindow(); | ||
Int32 MyProperty; | ||
} | ||
} |
14 changes: 14 additions & 0 deletions
14
WinUI3XamlPreview/TestAppToBePackaged/TestAppToBePackaged/MainWindow.xaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Window | ||
x:Class="TestAppToBePackaged.MainWindow" | ||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | ||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | ||
xmlns:local="using:TestAppToBePackaged" | ||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | ||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | ||
mc:Ignorable="d"> | ||
|
||
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center"> | ||
<Button x:Name="myButton" Click="myButton_Click">Click Me</Button> | ||
</StackPanel> | ||
</Window> |
29 changes: 29 additions & 0 deletions
29
WinUI3XamlPreview/TestAppToBePackaged/TestAppToBePackaged/MainWindow.xaml.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#include "pch.h" | ||
#include "MainWindow.xaml.h" | ||
#if __has_include("MainWindow.g.cpp") | ||
#include "MainWindow.g.cpp" | ||
#endif | ||
|
||
using namespace winrt; | ||
using namespace Microsoft::UI::Xaml; | ||
|
||
// To learn more about WinUI, the WinUI project structure, | ||
// and more about our project templates, see: http://aka.ms/winui-project-info. | ||
|
||
namespace winrt::TestAppToBePackaged::implementation | ||
{ | ||
int32_t MainWindow::MyProperty() | ||
{ | ||
throw hresult_not_implemented(); | ||
} | ||
|
||
void MainWindow::MyProperty(int32_t /* value */) | ||
{ | ||
throw hresult_not_implemented(); | ||
} | ||
|
||
void MainWindow::myButton_Click(IInspectable const&, RoutedEventArgs const&) | ||
{ | ||
myButton().Content(box_value(L"Clicked")); | ||
} | ||
} |
27 changes: 27 additions & 0 deletions
27
WinUI3XamlPreview/TestAppToBePackaged/TestAppToBePackaged/MainWindow.xaml.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
#pragma once | ||
|
||
#include "MainWindow.g.h" | ||
|
||
namespace winrt::TestAppToBePackaged::implementation | ||
{ | ||
struct MainWindow : MainWindowT<MainWindow> | ||
{ | ||
MainWindow() | ||
{ | ||
// Xaml objects should not call InitializeComponent during construction. | ||
// See https://github.com/microsoft/cppwinrt/tree/master/nuget#initializecomponent | ||
} | ||
|
||
int32_t MyProperty(); | ||
void MyProperty(int32_t value); | ||
|
||
void myButton_Click(IInspectable const& sender, Microsoft::UI::Xaml::RoutedEventArgs const& args); | ||
}; | ||
} | ||
|
||
namespace winrt::TestAppToBePackaged::factory_implementation | ||
{ | ||
struct MainWindow : MainWindowT<MainWindow, implementation::MainWindow> | ||
{ | ||
}; | ||
} |
Oops, something went wrong.