Introduce shared GlobalAliasses.cs with CT = CancellationToken alias repo-wide

Replace the per-project GlobalAliasses.cs files in BFF with a single
canonical file in shared/, linked into all projects via src.props,
test.props, and hosts_and_clients.props.
This commit is contained in:
Damian Hickey 2026-02-20 10:14:49 +01:00
parent 625d8b9785
commit 7f04aba927
9 changed files with 13 additions and 26 deletions

View file

@ -1,5 +0,0 @@
// Copyright (c) Duende Software. All rights reserved.
// See LICENSE in the project root for license information.
global using CT = System.Threading.CancellationToken;

View file

@ -1,5 +0,0 @@
// Copyright (c) Duende Software. All rights reserved.
// See LICENSE in the project root for license information.
global using CT = System.Threading.CancellationToken;

View file

@ -1,5 +0,0 @@
// Copyright (c) Duende Software. All rights reserved.
// See LICENSE in the project root for license information.
global using CT = System.Threading.CancellationToken;

View file

@ -1,5 +0,0 @@
// Copyright (c) Duende Software. All rights reserved.
// See LICENSE in the project root for license information.
global using CT = System.Threading.CancellationToken;

View file

@ -1,5 +0,0 @@
// Copyright (c) Duende Software. All rights reserved.
// See LICENSE in the project root for license information.
global using CT = System.Threading.CancellationToken;

View file

@ -20,5 +20,8 @@
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(MSBuildThisFileDirectory)shared/GlobalAliasses.cs" Link="GlobalAliasses.cs" />
</ItemGroup>
</Project>

View file

@ -1,5 +1,6 @@
// Copyright (c) Duende Software. All rights reserved.
// See LICENSE in the project root for license information.
#pragma warning disable IDE0005 // Remove unnecessary using directives
global using CT = System.Threading.CancellationToken;
#pragma warning restore IDE0005

View file

@ -61,6 +61,10 @@
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(MSBuildThisFileDirectory)shared/GlobalAliasses.cs" Link="GlobalAliasses.cs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub">
<PrivateAssets>all</PrivateAssets>

View file

@ -27,6 +27,10 @@
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
</PropertyGroup>
<ItemGroup>
<Compile Include="$(MSBuildThisFileDirectory)shared/GlobalAliasses.cs" Link="GlobalAliasses.cs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Testing.Extensions.CodeCoverage" />
<PackageReference Include="Shouldly" />