Skip to content

Commit b191a68

Browse files
committed
Calc: Step 1: Make the Calculator app packaged
1 parent c677b57 commit b191a68

10 files changed

+145
-0
lines changed
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project ToolsVersion="15.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
3+
<PropertyGroup Condition="'$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '15.0'">
4+
<VisualStudioVersion>15.0</VisualStudioVersion>
5+
</PropertyGroup>
6+
<ItemGroup Label="ProjectConfigurations">
7+
<ProjectConfiguration Include="Debug|x86">
8+
<Configuration>Debug</Configuration>
9+
<Platform>x86</Platform>
10+
</ProjectConfiguration>
11+
<ProjectConfiguration Include="Release|x86">
12+
<Configuration>Release</Configuration>
13+
<Platform>x86</Platform>
14+
</ProjectConfiguration>
15+
<ProjectConfiguration Include="Debug|x64">
16+
<Configuration>Debug</Configuration>
17+
<Platform>x64</Platform>
18+
</ProjectConfiguration>
19+
<ProjectConfiguration Include="Release|x64">
20+
<Configuration>Release</Configuration>
21+
<Platform>x64</Platform>
22+
</ProjectConfiguration>
23+
<ProjectConfiguration Include="Debug|ARM64">
24+
<Configuration>Debug</Configuration>
25+
<Platform>ARM64</Platform>
26+
</ProjectConfiguration>
27+
<ProjectConfiguration Include="Release|ARM64">
28+
<Configuration>Release</Configuration>
29+
<Platform>ARM64</Platform>
30+
</ProjectConfiguration>
31+
</ItemGroup>
32+
<PropertyGroup>
33+
<WapProjPath Condition="'$(WapProjPath)'==''">$(MSBuildExtensionsPath)\Microsoft\DesktopBridge\</WapProjPath>
34+
</PropertyGroup>
35+
<Import Project="$(WapProjPath)\Microsoft.DesktopBridge.props" />
36+
<PropertyGroup>
37+
<ProjectGuid>0a343519-113b-4ef9-959c-30f559524bc4</ProjectGuid>
38+
<TargetPlatformVersion>10.0.22621.0</TargetPlatformVersion>
39+
<TargetPlatformMinVersion>10.0.17763.0</TargetPlatformMinVersion>
40+
<DefaultLanguage>en-US</DefaultLanguage>
41+
<AppxPackageSigningEnabled>false</AppxPackageSigningEnabled>
42+
<NoWarn>$(NoWarn);NU1702</NoWarn>
43+
<EntryPointProjectUniqueName>..\CalculatorDemo\CalculatorDemo.csproj</EntryPointProjectUniqueName>
44+
</PropertyGroup>
45+
<PropertyGroup>
46+
<!--
47+
Added manually. This seemes to be required today when the pacakged project is .net9.
48+
Otherwise we need get this error:
49+
error : Project '..\CalculatorDemo\CalculatorDemo.csproj' targets 'net9.0-windows'. It cannot be referenced by a project that targets '.NETFramework,Version=v4.5.1'.
50+
-->
51+
<TargetPlatformIdentifier>Windows</TargetPlatformIdentifier>
52+
<TargetFrameworkMoniker>.NETCoreApp,Version=v9.0</TargetFrameworkMoniker>
53+
<TargetFramework>net9.0-windows10.0.17763.0</TargetFramework>
54+
</PropertyGroup>
55+
<ItemGroup>
56+
<AppxManifest Include="Package.appxmanifest">
57+
<SubType>Designer</SubType>
58+
</AppxManifest>
59+
</ItemGroup>
60+
<ItemGroup>
61+
<Content Include="Images\SplashScreen.scale-200.png" />
62+
<Content Include="Images\LockScreenLogo.scale-200.png" />
63+
<Content Include="Images\Square150x150Logo.scale-200.png" />
64+
<Content Include="Images\Square44x44Logo.scale-200.png" />
65+
<Content Include="Images\Square44x44Logo.targetsize-24_altform-unplated.png" />
66+
<Content Include="Images\StoreLogo.png" />
67+
<Content Include="Images\Wide310x150Logo.scale-200.png" />
68+
</ItemGroup>
69+
<Import Project="$(WapProjPath)\Microsoft.DesktopBridge.targets" />
70+
<ItemGroup>
71+
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.22621.3233" PrivateAssets="all" />
72+
</ItemGroup>
73+
<ItemGroup>
74+
<ProjectReference Include="..\CalculatorDemo\CalculatorDemo.csproj" />
75+
</ItemGroup>
76+
</Project>
1.4 KB
Loading
7.52 KB
Loading
2.87 KB
Loading
1.61 KB
Loading
1.23 KB
Loading
1.42 KB
Loading
3.13 KB
Loading
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
3+
<Package
4+
xmlns="http://schemas.microsoft.com/appx/manifest/foundation/windows10"
5+
xmlns:uap="http://schemas.microsoft.com/appx/manifest/uap/windows10"
6+
xmlns:rescap="http://schemas.microsoft.com/appx/manifest/foundation/windows10/restrictedcapabilities"
7+
IgnorableNamespaces="uap rescap">
8+
9+
<Identity
10+
Name="02a755d9-0749-4de1-b739-ee2322efad26"
11+
Publisher="CN=jecollin"
12+
Version="1.0.0.0" />
13+
14+
<Properties>
15+
<DisplayName>CalculatorDemoPackage</DisplayName>
16+
<PublisherDisplayName>jecollin</PublisherDisplayName>
17+
<Logo>Images\StoreLogo.png</Logo>
18+
</Properties>
19+
20+
<Dependencies>
21+
<TargetDeviceFamily Name="Windows.Universal" MinVersion="10.0.0.0" MaxVersionTested="10.0.0.0" />
22+
<TargetDeviceFamily Name="Windows.Desktop" MinVersion="10.0.14393.0" MaxVersionTested="10.0.14393.0" />
23+
</Dependencies>
24+
25+
<Resources>
26+
<Resource Language="x-generate"/>
27+
</Resources>
28+
29+
<Applications>
30+
<Application Id="App"
31+
Executable="$targetnametoken$.exe"
32+
EntryPoint="$targetentrypoint$">
33+
<uap:VisualElements
34+
DisplayName="CalculatorDemoPackage"
35+
Description="CalculatorDemoPackage"
36+
BackgroundColor="transparent"
37+
Square150x150Logo="Images\Square150x150Logo.png"
38+
Square44x44Logo="Images\Square44x44Logo.png">
39+
<uap:DefaultTile Wide310x150Logo="Images\Wide310x150Logo.png" />
40+
<uap:SplashScreen Image="Images\SplashScreen.png" />
41+
</uap:VisualElements>
42+
</Application>
43+
</Applications>
44+
45+
<Capabilities>
46+
<Capability Name="internetClient" />
47+
<rescap:Capability Name="runFullTrust" />
48+
</Capabilities>
49+
</Package>

Samples/Islands/DrawingIsland/DrawingIsland.sln

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DrawingIslandCsProjection",
1717
EndProject
1818
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "CalculatorDemo", "CalculatorDemo\CalculatorDemo.csproj", "{5731865D-6685-47A7-8877-5DBAF39B54CD}"
1919
EndProject
20+
Project("{C7167F0D-BC9F-4E6E-AFE1-012C56B48DB5}") = "CalculatorDemoPackage", "CalculatorDemoPackage\CalculatorDemoPackage.wapproj", "{0A343519-113B-4EF9-959C-30F559524BC4}"
21+
EndProject
2022
Global
2123
GlobalSection(SolutionConfigurationPlatforms) = preSolution
2224
Debug|ARM64 = Debug|ARM64
@@ -123,6 +125,24 @@ Global
123125
{5731865D-6685-47A7-8877-5DBAF39B54CD}.Release|x64.Build.0 = Release|x64
124126
{5731865D-6685-47A7-8877-5DBAF39B54CD}.Release|x86.ActiveCfg = Release|x86
125127
{5731865D-6685-47A7-8877-5DBAF39B54CD}.Release|x86.Build.0 = Release|x86
128+
{0A343519-113B-4EF9-959C-30F559524BC4}.Debug|ARM64.ActiveCfg = Debug|ARM64
129+
{0A343519-113B-4EF9-959C-30F559524BC4}.Debug|ARM64.Build.0 = Debug|ARM64
130+
{0A343519-113B-4EF9-959C-30F559524BC4}.Debug|ARM64.Deploy.0 = Debug|ARM64
131+
{0A343519-113B-4EF9-959C-30F559524BC4}.Debug|x64.ActiveCfg = Debug|x64
132+
{0A343519-113B-4EF9-959C-30F559524BC4}.Debug|x64.Build.0 = Debug|x64
133+
{0A343519-113B-4EF9-959C-30F559524BC4}.Debug|x64.Deploy.0 = Debug|x64
134+
{0A343519-113B-4EF9-959C-30F559524BC4}.Debug|x86.ActiveCfg = Debug|x86
135+
{0A343519-113B-4EF9-959C-30F559524BC4}.Debug|x86.Build.0 = Debug|x86
136+
{0A343519-113B-4EF9-959C-30F559524BC4}.Debug|x86.Deploy.0 = Debug|x86
137+
{0A343519-113B-4EF9-959C-30F559524BC4}.Release|ARM64.ActiveCfg = Release|ARM64
138+
{0A343519-113B-4EF9-959C-30F559524BC4}.Release|ARM64.Build.0 = Release|ARM64
139+
{0A343519-113B-4EF9-959C-30F559524BC4}.Release|ARM64.Deploy.0 = Release|ARM64
140+
{0A343519-113B-4EF9-959C-30F559524BC4}.Release|x64.ActiveCfg = Release|x64
141+
{0A343519-113B-4EF9-959C-30F559524BC4}.Release|x64.Build.0 = Release|x64
142+
{0A343519-113B-4EF9-959C-30F559524BC4}.Release|x64.Deploy.0 = Release|x64
143+
{0A343519-113B-4EF9-959C-30F559524BC4}.Release|x86.ActiveCfg = Release|x86
144+
{0A343519-113B-4EF9-959C-30F559524BC4}.Release|x86.Build.0 = Release|x86
145+
{0A343519-113B-4EF9-959C-30F559524BC4}.Release|x86.Deploy.0 = Release|x86
126146
EndGlobalSection
127147
GlobalSection(SolutionProperties) = preSolution
128148
HideSolutionNode = FALSE

0 commit comments

Comments
 (0)