Skip to content

Commit d2ac527

Browse files
committed
Updated to new version of WinUI.
1 parent 3893aff commit d2ac527

File tree

7 files changed

+20
-32
lines changed

7 files changed

+20
-32
lines changed

Directory.Build.props

-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@
6161
</ItemGroup>
6262
<PropertyGroup Condition="'$(Configuration)' == 'Release' or '$(Configuration)' == 'CI'">
6363
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
64-
<DisableEmbeddedXbf>false</DisableEmbeddedXbf>
6564
</PropertyGroup>
6665
</When>
6766
</Choose>

Microsoft.Toolkit.Graph.Controls/Microsoft.Toolkit.Graph.Controls.csproj

+11-23
Original file line numberDiff line numberDiff line change
@@ -13,41 +13,29 @@
1313
- PeoplePicker: The PeoplePicker Control is a simple control that allows for selection of one or more users.
1414
</Description>
1515
<PackageTags>UWP Toolkit Windows Controls MSAL Microsoft Graph AadLogin ProfileCard Person PeoplePicker Login</PackageTags>
16-
<!-- Small fix for wrong TFM in final nuget -->
17-
<IncludeBuildOutput>false</IncludeBuildOutput>
1816
<AssetTargetFallback>uap10.0.$(DefaultTargetPlatformMinVersion)</AssetTargetFallback>
1917
</PropertyGroup>
2018

2119
<ItemGroup>
2220
<PackageReference Include="Microsoft.Windows.CsWinRT" Version="0.1.0-prerelease.200629.3" />
2321
<!--<PackageReference Include="Microsoft.VCRTForwarders.140" Version="1.0.6" />-->
2422
</ItemGroup>
25-
<ItemGroup>
26-
<None Include="$(OutputPath)\$(AssemblyName)\**\*.xaml;$(OutputPath)\$(AssemblyName)\**\*.xbf">
27-
<Pack>true</Pack>
28-
<PackagePath>lib\$(TargetFramework)\$(AssemblyName)</PackagePath>
29-
</None>
30-
</ItemGroup>
31-
<ItemGroup Condition="Exists('$(OutputPath)\$(AssemblyName)\$(AssemblyName).xr.xml')">
32-
<Resource Include="$(OutputPath)\$(AssemblyName)\$(AssemblyName).xr.xml">
33-
<Pack>true</Pack>
34-
<PackagePath>lib\$(TargetFramework)\$(AssemblyName)\$(AssemblyName).xr.xml</PackagePath>
35-
</Resource>
36-
</ItemGroup>
37-
<ItemGroup Condition="Exists('$(OutputPath)\$(AssemblyName).pri')">
38-
<None Include="$(SolutionDir)\build\CopyPri.targets" Pack="True" PackagePath="buildTransitive\net5.0\$(AssemblyName).targets" />
39-
<!-- Small fix for wrong TFM in final nuget -->
40-
<None Include="$(OutputPath)\$(AssemblyName).pri;$(OutputPath)\$(AssemblyName).dll;$(OutputPath)\$(AssemblyName).xml;$(OutputPath)\$(AssemblyName).pdb" Pack="True" PackagePath="lib\net5.0\"/>
41-
</ItemGroup>
42-
23+
4324
<ItemGroup>
44-
<PackageReference Include="Microsoft.Toolkit.Uwp.UI" Version="8.0.0-build.48.gd3d21cc9ac" />
45-
<PackageReference Include="Microsoft.Toolkit.Uwp.UI.Controls" Version="8.0.0-build.48.gd3d21cc9ac" />
25+
<PackageReference Include="Microsoft.Toolkit.Uwp.UI" Version="8.0.0-build.49.g8695d221eb" />
26+
<PackageReference Include="Microsoft.Toolkit.Uwp.UI.Controls" Version="8.0.0-build.49.g8695d221eb" />
4627
<ProjectReference Include="..\Microsoft.Toolkit.Graph\Microsoft.Toolkit.Graph.csproj" />
4728
<PackageReference Include="Microsoft.WinUI">
48-
<Version>3.0.0-preview1.200629.2-CI</Version>
29+
<Version>3.0.0-preview2.200701.0-CI</Version>
4930
</PackageReference>
5031
</ItemGroup>
32+
33+
<!-- Temporary fix to a bug in WinUI3 -->
34+
<Target Name="RemoveXrXmlFilesFromOutputItems2" AfterTargets="AddPriPayloadFilesToCopyToOutputDirectoryItems" Condition="'$(UsingMicrosoftNETSdk)'=='true'">
35+
<ItemGroup>
36+
<_AllChildProjectItemsWithTargetPath Remove="@(_AllChildProjectItemsWithTargetPath)" Condition="$([System.String]::new('%(Identity)').EndsWith('.xr.xml'))"/>
37+
</ItemGroup>
38+
</Target>
5139

5240
<ItemGroup>
5341
<None Include="VisualStudioToolsManifest.xml" Pack="true" PackagePath="tools" />

Microsoft.Toolkit.Graph/Microsoft.Toolkit.Graph.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
<ItemGroup>
1515
<PackageReference Include="Microsoft.Graph.Beta" Version="0.18.0-preview" />
1616
<PackageReference Include="Microsoft.Graph.Auth" Version="1.0.0-preview.4" />
17-
<PackageReference Include="Microsoft.Toolkit" Version="8.0.0-build.48.gd3d21cc9ac" />
17+
<PackageReference Include="Microsoft.Toolkit" Version="8.0.0-build.49.g8695d221eb" />
1818
</ItemGroup>
1919
</Project>

SampleTest.Package/SampleTest.Package.wapproj

+7
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,12 @@
6363
<AppxTargetsLocation Condition="'$(AppxTargetsLocation)'==''">$(MSBuildThisFileDirectory)build\</AppxTargetsLocation>
6464
<EntryPointProjectUniqueName>..\SampleTest\SampleTest.csproj</EntryPointProjectUniqueName>
6565
</PropertyGroup>
66+
67+
<!-- Temporary fix to a bug in WinUI3 -->
68+
<Target Name="_RemoveXrXmlFromPayload" AfterTargets="_CalculateInputsForGenerateAppxPackageRecipe" Condition="'$(MSBuildProjectExtension)' == '.wapproj'">
69+
<ItemGroup>
70+
<AppxPackagePayload Remove="@(AppxPackagePayload)" Condition="$([System.String]::new('%(Identity)').EndsWith('.xr.xml'))"/>
71+
</ItemGroup>
72+
</Target>
6673
<Import Project="$(AppxTargetsLocation)Microsoft.WinUI.AppX.targets" />
6774
</Project>

SampleTest/SampleTest.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
<ItemGroup>
2222
<PackageReference Include="Microsoft.WinUI">
23-
<Version>3.0.0-preview1.200629.2-CI</Version>
23+
<Version>3.0.0-preview2.200701.0-CI</Version>
2424
</PackageReference>
2525
<PackageReference Include="Microsoft.VCRTForwarders.140" Version="1.0.6" />
2626
<PackageReference Include="Microsoft.Windows.CsWinRT" Version="0.1.0-prerelease.200629.3" />

Windows-Toolkit-Graph-Controls.sln

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build Config", "Build Confi
1414
azure-pipelines.yml = azure-pipelines.yml
1515
build\build.cake = build\build.cake
1616
build\build.ps1 = build\build.ps1
17-
build\CopyPri.targets = build\CopyPri.targets
1817
Directory.Build.props = Directory.Build.props
1918
Directory.Build.targets = Directory.Build.targets
2019
build\header.txt = build\header.txt

build/CopyPri.targets

-5
This file was deleted.

0 commit comments

Comments
 (0)