Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added WPF Gallery packaging project #552

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
48 changes: 48 additions & 0 deletions Sample Applications/WPFGallery.DesktopWap/Package.appxmanifest
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
<?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:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
IgnorableNamespaces="uap rescap">

<Identity
Name="Microsoft.WPFGallery"
Publisher="CN=Microsoft Corporation, O=Microsoft Corporation, L=Redmond, S=Washington, C=US"
Version="1.0.10.0" />

<Properties>
<DisplayName>WPF Gallery Preview</DisplayName>
<PublisherDisplayName>Microsoft Corporation</PublisherDisplayName>
<Logo>Images\StoreLogo.png</Logo>
</Properties>

<Dependencies>
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.22621.0" MaxVersionTested="10.0.22621.0" />
</Dependencies>

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

<Applications>
<Application Id="App"
Executable="$targetnametoken$.exe"
EntryPoint="$targetentrypoint$">
<uap:VisualElements
DisplayName="WPF Gallery Preview"
Description="WPF Gallery Preview"
BackgroundColor="transparent"
Square150x150Logo="Images\Square150x150Logo.png"
Square44x44Logo="Images\Square44x44Logo.png">
<uap:DefaultTile Wide310x150Logo="Images\Wide310x150Logo.png" Square71x71Logo="Images\SmallTile.png" Square310x310Logo="Images\LargeTile.png"/>
<uap:SplashScreen Image="Images\SplashScreen.png" />
<uap:LockScreen BadgeLogo="Images\BadgeLogo.png" Notification="badge"/>
</uap:VisualElements>
</Application>
</Applications>

<Capabilities>
<rescap:Capability Name="runFullTrust" />
</Capabilities>
</Package>
Original file line number Diff line number Diff line change
@@ -0,0 +1,141 @@
<?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)' &lt; '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>
</PropertyGroup>
<Import Project="$(WapProjPath)\Microsoft.DesktopBridge.props" />
<PropertyGroup>
<ProjectGuid>c652518a-d79a-4cec-b902-0093b93a8ceb</ProjectGuid>
<TargetPlatformVersion>10.0.22621.0</TargetPlatformVersion>
<TargetPlatformMinVersion>10.0.22621.0</TargetPlatformMinVersion>
<DefaultLanguage>en-US</DefaultLanguage>
<AppxPackageSigningEnabled>True</AppxPackageSigningEnabled>
<NoWarn>$(NoWarn);NU1702</NoWarn>
<EntryPointProjectUniqueName>..\WPFGallery\WPFGallery.csproj</EntryPointProjectUniqueName>
<GenerateAppInstallerFile>False</GenerateAppInstallerFile>
<PackageCertificateKeyFile>test-cert\WPF-Gallery-Test.pfx</PackageCertificateKeyFile>
<AppxPackageSigningTimestampDigestAlgorithm>SHA256</AppxPackageSigningTimestampDigestAlgorithm>
<AppxAutoIncrementPackageRevision>False</AppxAutoIncrementPackageRevision>
<GenerateTestArtifacts>True</GenerateTestArtifacts>
<AppxBundlePlatforms>x86|x64|arm64</AppxBundlePlatforms>
<HoursBetweenUpdateChecks>0</HoursBetweenUpdateChecks>
<DependsOnNETStandard>False</DependsOnNETStandard>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<AppxBundle>Always</AppxBundle>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'">
<AppxBundle>Always</AppxBundle>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x86'">
<AppxBundle>Always</AppxBundle>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<AppxBundle>Always</AppxBundle>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">
<AppxBundle>Always</AppxBundle>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x86'">
<AppxBundle>Always</AppxBundle>
</PropertyGroup>
<ItemGroup>
<AppxManifest Include="Package.appxmanifest">
<SubType>Designer</SubType>
</AppxManifest>
</ItemGroup>
<ItemGroup>
<Content Include="Images\BadgeLogo.scale-100.png" />
<Content Include="Images\BadgeLogo.scale-125.png" />
<Content Include="Images\BadgeLogo.scale-150.png" />
<Content Include="Images\BadgeLogo.scale-200.png" />
<Content Include="Images\BadgeLogo.scale-400.png" />
<Content Include="Images\LargeTile.scale-100.png" />
<Content Include="Images\LargeTile.scale-125.png" />
<Content Include="Images\LargeTile.scale-150.png" />
<Content Include="Images\LargeTile.scale-200.png" />
<Content Include="Images\LargeTile.scale-400.png" />
<Content Include="Images\SmallTile.scale-100.png" />
<Content Include="Images\SmallTile.scale-125.png" />
<Content Include="Images\SmallTile.scale-150.png" />
<Content Include="Images\SmallTile.scale-200.png" />
<Content Include="Images\SmallTile.scale-400.png" />
<Content Include="Images\SplashScreen.scale-100.png" />
<Content Include="Images\SplashScreen.scale-125.png" />
<Content Include="Images\SplashScreen.scale-150.png" />
<Content Include="Images\SplashScreen.scale-200.png" />
<Content Include="Images\LockScreenLogo.scale-200.png" />
<Content Include="Images\SplashScreen.scale-400.png" />
<Content Include="Images\Square150x150Logo.scale-100.png" />
<Content Include="Images\Square150x150Logo.scale-125.png" />
<Content Include="Images\Square150x150Logo.scale-150.png" />
<Content Include="Images\Square150x150Logo.scale-200.png" />
<Content Include="Images\Square150x150Logo.scale-400.png" />
<Content Include="Images\Square44x44Logo.altform-lightunplated_targetsize-16.png" />
<Content Include="Images\Square44x44Logo.altform-lightunplated_targetsize-24.png" />
<Content Include="Images\Square44x44Logo.altform-lightunplated_targetsize-256.png" />
<Content Include="Images\Square44x44Logo.altform-lightunplated_targetsize-32.png" />
<Content Include="Images\Square44x44Logo.altform-lightunplated_targetsize-48.png" />
<Content Include="Images\Square44x44Logo.altform-unplated_targetsize-16.png" />
<Content Include="Images\Square44x44Logo.altform-unplated_targetsize-256.png" />
<Content Include="Images\Square44x44Logo.altform-unplated_targetsize-32.png" />
<Content Include="Images\Square44x44Logo.altform-unplated_targetsize-48.png" />
<Content Include="Images\Square44x44Logo.scale-100.png" />
<Content Include="Images\Square44x44Logo.scale-125.png" />
<Content Include="Images\Square44x44Logo.scale-150.png" />
<Content Include="Images\Square44x44Logo.scale-200.png" />
<Content Include="Images\Square44x44Logo.scale-400.png" />
<Content Include="Images\Square44x44Logo.targetsize-16.png" />
<Content Include="Images\Square44x44Logo.targetsize-24.png" />
<Content Include="Images\Square44x44Logo.targetsize-24_altform-unplated.png" />
<Content Include="Images\Square44x44Logo.targetsize-256.png" />
<Content Include="Images\Square44x44Logo.targetsize-32.png" />
<Content Include="Images\Square44x44Logo.targetsize-48.png" />
<Content Include="Images\StoreLogo.scale-100.png" />
<Content Include="Images\StoreLogo.scale-125.png" />
<Content Include="Images\StoreLogo.scale-150.png" />
<Content Include="Images\StoreLogo.scale-200.png" />
<Content Include="Images\StoreLogo.scale-400.png" />
<Content Include="Images\Wide310x150Logo.scale-100.png" />
<Content Include="Images\Wide310x150Logo.scale-125.png" />
<Content Include="Images\Wide310x150Logo.scale-150.png" />
<Content Include="Images\Wide310x150Logo.scale-200.png" />
<Content Include="Images\Wide310x150Logo.scale-400.png" />
</ItemGroup>
<Import Project="$(WapProjPath)\Microsoft.DesktopBridge.targets" />
<ItemGroup>
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.22621.756" PrivateAssets="all" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\WPFGallery\WPFGallery.csproj" SkipGetTargetFrameworkProperties="True" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
$CertificateFriendlyName = "WPF-Gallery-Test"
$Publisher = "CN=WPF-Gallery-Test"

$cert = New-SelfSignedCertificate -Type Custom `
-Subject $Publisher `
-KeyUsage DigitalSignature `
-FriendlyName $CertificateFriendlyName `
-CertStoreLocation "Cert:\CurrentUser\My" `
-TextExtension @("2.5.29.37={text}1.3.6.1.5.5.7.3.3", "2.5.29.19={text}")

$certificateBytes = $cert.Export([System.Security.Cryptography.X509Certificates.X509ContentType]::Pkcs12)
[System.IO.File]::WriteAllBytes("$PSScriptRoot\WPF-Gallery-Test.pfx", $certificateBytes)
57 changes: 57 additions & 0 deletions Sample Applications/WPFGallery/WPFGallery.DesktopWap.sln
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 17
VisualStudioVersion = 17.0.31903.59
MinimumVisualStudioVersion = 10.0.40219.1
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WPFGallery", "WPFGallery.csproj", "{249DB69E-5516-43B8-A159-4071258F6B75}"
EndProject
Project("{C7167F0D-BC9F-4E6E-AFE1-012C56B48DB5}") = "WPFGallery.DesktopWap.Package", "..\WPFGallery.DesktopWap\WPFGallery.DesktopWap.Package.wapproj", "{C652518A-D79A-4CEC-B902-0093B93A8CEB}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|ARM64 = Debug|ARM64
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|ARM64 = Release|ARM64
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{249DB69E-5516-43B8-A159-4071258F6B75}.Debug|ARM64.ActiveCfg = Debug|x64
{249DB69E-5516-43B8-A159-4071258F6B75}.Debug|ARM64.Build.0 = Debug|x64
{249DB69E-5516-43B8-A159-4071258F6B75}.Debug|x64.ActiveCfg = Debug|x64
{249DB69E-5516-43B8-A159-4071258F6B75}.Debug|x64.Build.0 = Debug|x64
{249DB69E-5516-43B8-A159-4071258F6B75}.Debug|x86.ActiveCfg = Debug|x64
{249DB69E-5516-43B8-A159-4071258F6B75}.Debug|x86.Build.0 = Debug|x64
{249DB69E-5516-43B8-A159-4071258F6B75}.Release|ARM64.ActiveCfg = Release|ARM64
{249DB69E-5516-43B8-A159-4071258F6B75}.Release|ARM64.Build.0 = Release|ARM64
{249DB69E-5516-43B8-A159-4071258F6B75}.Release|x64.ActiveCfg = Release|x64
{249DB69E-5516-43B8-A159-4071258F6B75}.Release|x64.Build.0 = Release|x64
{249DB69E-5516-43B8-A159-4071258F6B75}.Release|x86.ActiveCfg = Release|x86
{249DB69E-5516-43B8-A159-4071258F6B75}.Release|x86.Build.0 = Release|x86
{C652518A-D79A-4CEC-B902-0093B93A8CEB}.Debug|ARM64.ActiveCfg = Debug|x64
{C652518A-D79A-4CEC-B902-0093B93A8CEB}.Debug|ARM64.Build.0 = Debug|x64
{C652518A-D79A-4CEC-B902-0093B93A8CEB}.Debug|ARM64.Deploy.0 = Debug|x64
{C652518A-D79A-4CEC-B902-0093B93A8CEB}.Debug|x64.ActiveCfg = Debug|x64
{C652518A-D79A-4CEC-B902-0093B93A8CEB}.Debug|x64.Build.0 = Debug|x64
{C652518A-D79A-4CEC-B902-0093B93A8CEB}.Debug|x64.Deploy.0 = Debug|x64
{C652518A-D79A-4CEC-B902-0093B93A8CEB}.Debug|x86.ActiveCfg = Debug|x86
{C652518A-D79A-4CEC-B902-0093B93A8CEB}.Debug|x86.Build.0 = Debug|x86
{C652518A-D79A-4CEC-B902-0093B93A8CEB}.Debug|x86.Deploy.0 = Debug|x86
{C652518A-D79A-4CEC-B902-0093B93A8CEB}.Release|ARM64.ActiveCfg = Release|ARM64
{C652518A-D79A-4CEC-B902-0093B93A8CEB}.Release|ARM64.Build.0 = Release|ARM64
{C652518A-D79A-4CEC-B902-0093B93A8CEB}.Release|ARM64.Deploy.0 = Release|ARM64
{C652518A-D79A-4CEC-B902-0093B93A8CEB}.Release|x64.ActiveCfg = Release|x64
{C652518A-D79A-4CEC-B902-0093B93A8CEB}.Release|x64.Build.0 = Release|x64
{C652518A-D79A-4CEC-B902-0093B93A8CEB}.Release|x64.Deploy.0 = Release|x64
{C652518A-D79A-4CEC-B902-0093B93A8CEB}.Release|x86.ActiveCfg = Release|x86
{C652518A-D79A-4CEC-B902-0093B93A8CEB}.Release|x86.Build.0 = Release|x86
{C652518A-D79A-4CEC-B902-0093B93A8CEB}.Release|x86.Deploy.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {C1259020-16BF-4765-9ED0-0E8BD9657E6E}
EndGlobalSection
EndGlobal
4 changes: 2 additions & 2 deletions Sample Applications/WPFGallery/WPFGallery.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<UseWPF>true</UseWPF>
<PlatformTarget>x64</PlatformTarget>
<Platforms>AnyCPU;x64</Platforms>
<Platforms>x86;x64;ARM64</Platforms>
<StartupObject>WPFGallery.App</StartupObject>
<RuntimeIdentifiers>win-x86;win-x64;win-arm64</RuntimeIdentifiers>
</PropertyGroup>


Expand Down
18 changes: 18 additions & 0 deletions Sample Applications/WPFGallery/WPFGallery.sln
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,37 @@ EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|ARM = Debug|ARM
Debug|ARM64 = Debug|ARM64
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|ARM = Release|ARM
Release|ARM64 = Release|ARM64
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{31F40A27-7EAB-4152-823A-5D7B785F4946}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{31F40A27-7EAB-4152-823A-5D7B785F4946}.Debug|Any CPU.Build.0 = Debug|Any CPU
{31F40A27-7EAB-4152-823A-5D7B785F4946}.Debug|ARM.ActiveCfg = Debug|Any CPU
{31F40A27-7EAB-4152-823A-5D7B785F4946}.Debug|ARM.Build.0 = Debug|Any CPU
{31F40A27-7EAB-4152-823A-5D7B785F4946}.Debug|ARM64.ActiveCfg = Debug|Any CPU
{31F40A27-7EAB-4152-823A-5D7B785F4946}.Debug|ARM64.Build.0 = Debug|Any CPU
{31F40A27-7EAB-4152-823A-5D7B785F4946}.Debug|x64.ActiveCfg = Debug|x64
{31F40A27-7EAB-4152-823A-5D7B785F4946}.Debug|x64.Build.0 = Debug|x64
{31F40A27-7EAB-4152-823A-5D7B785F4946}.Debug|x86.ActiveCfg = Debug|Any CPU
{31F40A27-7EAB-4152-823A-5D7B785F4946}.Debug|x86.Build.0 = Debug|Any CPU
{31F40A27-7EAB-4152-823A-5D7B785F4946}.Release|Any CPU.ActiveCfg = Release|Any CPU
{31F40A27-7EAB-4152-823A-5D7B785F4946}.Release|Any CPU.Build.0 = Release|Any CPU
{31F40A27-7EAB-4152-823A-5D7B785F4946}.Release|ARM.ActiveCfg = Release|Any CPU
{31F40A27-7EAB-4152-823A-5D7B785F4946}.Release|ARM.Build.0 = Release|Any CPU
{31F40A27-7EAB-4152-823A-5D7B785F4946}.Release|ARM64.ActiveCfg = Release|Any CPU
{31F40A27-7EAB-4152-823A-5D7B785F4946}.Release|ARM64.Build.0 = Release|Any CPU
{31F40A27-7EAB-4152-823A-5D7B785F4946}.Release|x64.ActiveCfg = Release|x64
{31F40A27-7EAB-4152-823A-5D7B785F4946}.Release|x64.Build.0 = Release|x64
{31F40A27-7EAB-4152-823A-5D7B785F4946}.Release|x86.ActiveCfg = Release|Any CPU
{31F40A27-7EAB-4152-823A-5D7B785F4946}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
Loading