Skip to content

Commit 7318ba4

Browse files
Re-add back Extensions Dependency to Tests via new NuGet packages in MainLatest feed
Provides switch to source via ToolkitExtensionSourceProject property Otherwise uses CommunityToolkit.Uwp/WinUI.Extensions 8.0.0-beta.1 package Keeps CompositionTargetHelper for now Cleans up how build config gets copied with a folder Adds nuget.config
1 parent 2d19c0c commit 7318ba4

12 files changed

Lines changed: 62 additions & 168 deletions

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ jobs:
116116
- name: Copy props files to root
117117
shell: pwsh
118118
working-directory: ./
119-
run: copy ./tooling/.github/workflows/Directory.Build.* ./
119+
run: copy ./tooling/.github/workflows/config/* ./
120120

121121
- name: Add msbuild to PATH
122122
uses: microsoft/setup-msbuild@v1.3.1
@@ -162,7 +162,7 @@ jobs:
162162
shell: pwsh
163163
working-directory: ./
164164
run: |
165-
copy ./tooling/.github/workflows/Directory.Build.* ./
165+
copy ./tooling/.github/workflows/config/* ./
166166
mkdir ./.config
167167
copy ./tooling/.config/dotnet-tools.json ./.config/dotnet-tools.json
168168
mkdir ./components
@@ -247,7 +247,7 @@ jobs:
247247
shell: pwsh
248248
working-directory: ./
249249
run: |
250-
copy ./tooling/.github/workflows/Directory.Build.* ./
250+
copy ./tooling/.github/workflows/config/* ./
251251
mkdir ./.config
252252
copy ./tooling/.config/dotnet-tools.json ./.config/dotnet-tools.json
253253
mkdir ./components
File renamed without changes.
File renamed without changes.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<configuration>
2+
<packageSources>
3+
<clear />
4+
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
5+
<add key="MainLatest" value="https://pkgs.dev.azure.com/dotnet/CommunityToolkit/_packaging/CommunityToolkit-MainLatest/nuget/v3/index.json" protocolVersion="3" />
6+
</packageSources>
7+
<disabledPackageSources>
8+
<clear />
9+
</disabledPackageSources>
10+
</configuration>
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
# Tooling Config Folder
3+
4+
This folder contains the minimum configuration required by the tooling module to be built and needs to be in the root of a repository using it.
5+
6+
These files are contained here in the `config` folder to be copied by the tooling `build.yml` file for self-validation within the tooling module CI pipeline.
7+
8+
They can also be used as a starting point for a custom repository that uses the `tooling` sub-module.
9+
10+
## Components
11+
12+
### Directory.Build.props
13+
14+
Contains properties like `RepositoryDirectory` and `ToolingDirectory` which are used within the property files of the tooling module to understand the proper path setup for dependencies and references.
15+
16+
### Directory.Build.targets
17+
18+
Contains `SlnGenSolutionItem` items that we wish to appear within the generated solution files.
19+
20+
### nuget.config
21+
22+
Contains any NuGet feeds required for dependent packages not found on NuGet.org at the moment (for instance the current unified port of the Community Toolkit Extensions used by testing).

CommunityToolkit.Tests.Shared/CommunityToolkit.Tests.Shared.projitems

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
<DependentUpon>App.xaml</DependentUpon>
2020
</Compile>
2121
<Compile Include="$(MSBuildThisFileDirectory)Internal\CompositionTargetHelper.cs" />
22-
<Compile Include="$(MSBuildThisFileDirectory)Internal\DispatcherQueueExtensions.cs" />
2322
<Compile Include="$(MSBuildThisFileDirectory)Log.cs" />
2423
<Compile Include="$(MSBuildThisFileDirectory)VisualUITestBase.cs" />
2524
</ItemGroup>

CommunityToolkit.Tests.Shared/Internal/DispatcherQueueExtensions.cs

Lines changed: 0 additions & 156 deletions
This file was deleted.

CommunityToolkit.Tests.Shared/VisualUITestBase.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// See the LICENSE file in the project root for more information.
44

55
using CommunityToolkit.Tests.Internal;
6+
using CommunityToolkit.WinUI;
67

78
namespace CommunityToolkit.Tests;
89

ProjectHeads/Tests.Head.Uwp.props

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
<Project>
2+
<PropertyGroup>
3+
<DependencyVariant>Uwp</DependencyVariant>
4+
</PropertyGroup>
25
<Import Project="$(MSBuildThisFileDirectory)\Tests.Head.props"/>
36
<Import Project="$(MSBuildThisFileDirectory)\Head.Uwp.props" />
47

@@ -9,7 +12,5 @@
912

1013
<ItemGroup>
1114
<SDKReference Include="TestPlatform.Universal, Version=$(UnitTestPlatformVersion)" />
12-
<!-- TODO: We need a way to toggle this between Package and Source of the Extension module if we want to set it up 'globally' -->
13-
<!--<PackageReference Include="Microsoft.Toolkit.Uwp.UI" Version="7.1.2"/>-->
1415
</ItemGroup>
1516
</Project>

ProjectHeads/Tests.Head.WinAppSdk.props

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
<Project>
2+
<PropertyGroup>
3+
<DependencyVariant>WinUI</DependencyVariant>
4+
</PropertyGroup>
25
<Import Project="$(MSBuildThisFileDirectory)\Tests.Head.props"/>
36
<Import Project="$(MSBuildThisFileDirectory)\Head.WinAppSdk.props"/>
47

@@ -7,8 +10,6 @@
710
<Version>17.1.0</Version>
811
<ExcludeAssets>build</ExcludeAssets>
912
</PackageReference>
10-
<!-- TODO: See comment in LINK:Tests.Head.Uwp.props file -->
11-
<!-- <PackageReference Include="CommunityToolkit.WinUI.UI" Version="7.1.2"/> -->
1213
</ItemGroup>
1314

1415
<ItemGroup>

0 commit comments

Comments
 (0)