Skip to content

Commit 0cd8314

Browse files
marcelwgnkarkarl
authored andcommitted
Update build steps
1 parent 36f2001 commit 0cd8314

2 files changed

Lines changed: 116 additions & 0 deletions

File tree

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
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+
<SDKIdentifier>Windows</SDKIdentifier>
35+
<SDKVersion>10.0</SDKVersion>
36+
</PropertyGroup>
37+
<Import Project="$(WapProjPath)\Microsoft.DesktopBridge.props" />
38+
<Import Project="common.props" />
39+
<PropertyGroup>
40+
<ProjectGuid>4c7b20d7-5f5c-440e-8da3-b19a328cc8bd</ProjectGuid>
41+
<TargetPlatformVersion>10.0.19041.0</TargetPlatformVersion>
42+
<TargetPlatformMinVersion>10.0.19041.0</TargetPlatformMinVersion>
43+
<DefaultLanguage>en-US</DefaultLanguage>
44+
<AppxPackageSigningEnabled>True</AppxPackageSigningEnabled>
45+
<EntryPointProjectUniqueName>WinUIGallery.DesktopWap.csproj</EntryPointProjectUniqueName>
46+
<AppxBundleNameForOutput>WinUIGallery.DesktopWap</AppxBundleNameForOutput>
47+
</PropertyGroup>
48+
<PropertyGroup Condition="'$(IsInWinUIRepo)' == 'true'">
49+
<PackageCertificateKeyFile>$(ProjectRoot)build\MSTest.pfx</PackageCertificateKeyFile>
50+
</PropertyGroup>
51+
<PropertyGroup>
52+
<GenerateAppInstallerFile>False</GenerateAppInstallerFile>
53+
<AppxPackageSigningTimestampDigestAlgorithm>SHA256</AppxPackageSigningTimestampDigestAlgorithm>
54+
<AppxAutoIncrementPackageRevision>False</AppxAutoIncrementPackageRevision>
55+
<GenerateTestArtifacts>True</GenerateTestArtifacts>
56+
<AppxBundlePlatforms>$(Platform)</AppxBundlePlatforms>
57+
<PublishReadyToRun>false</PublishReadyToRun>
58+
<AppxBundlePlatforms Condition="'$(BuildAllAppFlavors)' == 'true'">x86|x64|ARM64</AppxBundlePlatforms>
59+
<HoursBetweenUpdateChecks>0</HoursBetweenUpdateChecks>
60+
<AssetTargetFallback>net5.0-windows$(TargetPlatformVersion);net6.0-windows$(TargetPlatformVersion);$(AssetTargetFallback)</AssetTargetFallback>
61+
</PropertyGroup>
62+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x86'">
63+
<AppxBundle>Always</AppxBundle>
64+
</PropertyGroup>
65+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|ARM64'">
66+
<AppxBundle>Always</AppxBundle>
67+
</PropertyGroup>
68+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x86'">
69+
<AppxBundle>Always</AppxBundle>
70+
</PropertyGroup>
71+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
72+
<AppxBundle>Always</AppxBundle>
73+
</PropertyGroup>
74+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">
75+
<AppxBundle>Always</AppxBundle>
76+
</PropertyGroup>
77+
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
78+
<AppxBundle>Always</AppxBundle>
79+
</PropertyGroup>
80+
<ItemGroup>
81+
<AppxManifest Include="Package.WAP.appxmanifest" Condition="!('$(Configuration)' == 'Debug')">
82+
<SubType>Designer</SubType>
83+
</AppxManifest>
84+
<AppxManifest Include="Package.WAP.Dev.appxmanifest" Condition="'$(Configuration)' == 'Debug'">
85+
<SubType>Designer</SubType>
86+
</AppxManifest>
87+
</ItemGroup>
88+
<ItemGroup>
89+
<ProjectReference Include="WinUIGallery.DesktopWap.csproj">
90+
<SkipGetTargetFrameworkProperties>True</SkipGetTargetFrameworkProperties>
91+
<PublishProfile>Properties\PublishProfiles\win10-$(Platform).pubxml</PublishProfile>
92+
</ProjectReference>
93+
</ItemGroup>
94+
<ItemGroup Condition="'$(WindowsAppSdkPackageVersion)' != ''">
95+
<PackageReference Include="Microsoft.WindowsAppSDK" Version="[$(WindowsAppSdkPackageVersion)]" GeneratePathProperty="true">
96+
<IncludeAssets>build</IncludeAssets>
97+
</PackageReference>
98+
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="[$(MicrosoftWindowsSDKBuildToolsNugetPackageVersion)]">
99+
<IncludeAssets>build</IncludeAssets>
100+
</PackageReference>
101+
</ItemGroup>
102+
<Import Project="$(WapProjPath)\Microsoft.DesktopBridge.targets" />
103+
<!-- WinUI 3 NuGet-specific logic-->
104+
<PropertyGroup Condition="'$(WinUIPackageVersion)' != ''">
105+
<AppxTargetsLocation Condition="'$(AppxTargetsLocation)'==''">$(MSBuildThisFileDirectory)build\</AppxTargetsLocation>
106+
</PropertyGroup>
107+
<Import Project="$(AppxTargetsLocation)Microsoft.WinUI.AppX.targets" Condition="Exists('$(AppxTargetsLocation)Microsoft.WinUI.AppX.targets') AND '$(WinUIPackageVersion)' != ''" />
108+
</Project>

azure-pipelines.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,14 @@ stages:
3535
feedsToUse: 'config'
3636
nugetConfigPath: '$(System.DefaultWorkingDirectory)\nuget.config'
3737

38+
- task: MSBuild@1
39+
inputs:
40+
platform: 'x64'
41+
solution: '**/WinUIGallery.DesktopWap.Package.wapproj'
42+
configuration: '$(buildConfiguration)'
43+
msbuildArguments: '/t:build;_GenerateAppxPackage /p:Configuration=Debug;Platform="$(buildPlatform)";AppxBundle=Always;AppxBundlePlatforms="$(buildPlatform)";AppxPackageDir="$(appxPackageDir)";AppxPackageSigningEnabled=true;UapAppxPackageBuildMode=SideloadOnly'
44+
maximumCpuCount: true
45+
3846
- task: VSBuild@1
3947
inputs:
4048
platform: $(buildPlatform)

0 commit comments

Comments
 (0)