Skip to content

Commit 066702e

Browse files
committed
Updated to new version of WinUI.
1 parent d2ac527 commit 066702e

File tree

5 files changed

+18
-24
lines changed

5 files changed

+18
-24
lines changed

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

+3-11
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,17 @@
1818

1919
<ItemGroup>
2020
<PackageReference Include="Microsoft.Windows.CsWinRT" Version="0.1.0-prerelease.200629.3" />
21-
<!--<PackageReference Include="Microsoft.VCRTForwarders.140" Version="1.0.6" />-->
2221
</ItemGroup>
2322

2423
<ItemGroup>
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" />
24+
<PackageReference Include="Microsoft.Toolkit.Uwp.UI" Version="8.0.0-build.52.g07f4dd1bd0" />
25+
<PackageReference Include="Microsoft.Toolkit.Uwp.UI.Controls" Version="8.0.0-build.52.g07f4dd1bd0" />
2726
<ProjectReference Include="..\Microsoft.Toolkit.Graph\Microsoft.Toolkit.Graph.csproj" />
2827
<PackageReference Include="Microsoft.WinUI">
29-
<Version>3.0.0-preview2.200701.0-CI</Version>
28+
<Version>3.0.0-preview2.200707.3-CI</Version>
3029
</PackageReference>
3130
</ItemGroup>
3231

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>
39-
4032
<ItemGroup>
4133
<None Include="VisualStudioToolsManifest.xml" Pack="true" PackagePath="tools" />
4234
</ItemGroup>

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.49.g8695d221eb" />
17+
<PackageReference Include="Microsoft.Toolkit" Version="8.0.0-build.52.g07f4dd1bd0" />
1818
</ItemGroup>
1919
</Project>

SampleTest.Package/SampleTest.Package.wapproj

+1-11
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
<TargetPlatformMinVersion>10.0.17134.0</TargetPlatformMinVersion>
3333
<DefaultLanguage>en-US</DefaultLanguage>
3434
<AppxPackageSigningEnabled>false</AppxPackageSigningEnabled>
35+
<AppxTargetsLocation Condition="'$(AppxTargetsLocation)'==''">$(MSBuildThisFileDirectory)build\</AppxTargetsLocation>
3536
<EntryPointProjectUniqueName>..\SampleTest\SampleTest.csproj</EntryPointProjectUniqueName>
3637
</PropertyGroup>
3738
<ItemGroup>
@@ -59,16 +60,5 @@
5960
<SDKReference Include="Microsoft.VCLibs, Version=14.0" Condition="'$(Configuration)' == 'Debug'" />
6061
</ItemGroup>
6162
<Import Project="$(WapProjPath)\Microsoft.DesktopBridge.targets" />
62-
<PropertyGroup>
63-
<AppxTargetsLocation Condition="'$(AppxTargetsLocation)'==''">$(MSBuildThisFileDirectory)build\</AppxTargetsLocation>
64-
<EntryPointProjectUniqueName>..\SampleTest\SampleTest.csproj</EntryPointProjectUniqueName>
65-
</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>
7363
<Import Project="$(AppxTargetsLocation)Microsoft.WinUI.AppX.targets" />
7464
</Project>

SampleTest.Package/build/Microsoft.WinUI.AppX.targets

+12
Original file line numberDiff line numberDiff line change
@@ -166,5 +166,17 @@
166166
</UploadWapProjPackageFile>
167167
</ItemGroup>
168168
</Target>
169+
170+
<!--
171+
Workaround for bug https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1149545
172+
173+
The appx packaging tasks default to including the .xr.xml file (which is for using reflection in .NET Native) when consuming nuget packages. Since
174+
we aren't using .NET Native, we don't need these anymore.
175+
-->
176+
<Target Name="_RemoveXrXmlFromPayload" AfterTargets="_CalculateInputsForGenerateAppxPackageRecipe" Condition="'$(MSBuildProjectExtension)' == '.wapproj'">
177+
<ItemGroup>
178+
<AppxPackagePayload Remove="@(AppxPackagePayload)" Condition="$([System.String]::new('%(Identity)').EndsWith('.xr.xml'))"/>
179+
</ItemGroup>
180+
</Target>
169181
</Project>
170182

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-preview2.200701.0-CI</Version>
23+
<Version>3.0.0-preview2.200707.3-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" />

0 commit comments

Comments
 (0)