Skip to content

Commit fd33f96

Browse files
committed
Fix AWS project .NET Standard 2.1 compatibility - Add GlobalUsings.cs for implicit usings
1 parent 562e37c commit fd33f96

3 files changed

Lines changed: 15 additions & 4 deletions

File tree

‎.kiro/specs/v2-0-0-release-preparation/tasks.md‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -399,13 +399,13 @@ This is a documentation-only update with no code changes required. All tasks foc
399399
- Run unit tests to ensure functionality works across all targets
400400
- _Requirements: 16.4_
401401

402-
- [ ] 20. Replace package icon
403-
- [ ] 20.1 Update SourceFlow.csproj package icon reference
402+
- [x] 20. Replace package icon
403+
- [x] 20.1 Update SourceFlow.csproj package icon reference
404404
- Change PackageIcon from ninja-icon-16.png to simple-logo.png
405405
- Update ItemGroup to include simple-logo.png instead of ninja-icon-16.png
406406
- Verify the simple-logo.png file exists in Images/ directory
407407

408-
- [ ] 20.2 Verify package icon in all projects
408+
- [x] 20.2 Verify package icon in all projects
409409
- Check if any other project files reference ninja-icon-16.png
410410
- Update all references to use simple-logo.png
411411
- Ensure consistent branding across all packages
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
// Global using directives for .NET Standard 2.1 compatibility
2+
// These are automatically included in net8.0+ via ImplicitUsings
3+
4+
#if NETSTANDARD2_1
5+
global using System;
6+
global using System.Collections.Generic;
7+
global using System.IO;
8+
global using System.Linq;
9+
global using System.Threading;
10+
global using System.Threading.Tasks;
11+
#endif

‎src/SourceFlow.Cloud.AWS/SourceFlow.Cloud.AWS.csproj‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>netstandard2.0;net8.0;net9.0;net10.0</TargetFrameworks>
4+
<TargetFrameworks>netstandard2.1;net8.0;net9.0;net10.0</TargetFrameworks>
55
<ImplicitUsings Condition="'$(TargetFramework)' == 'net8.0' OR '$(TargetFramework)' == 'net9.0' OR '$(TargetFramework)' == 'net10.0'">enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
<LangVersion>latest</LangVersion>

0 commit comments

Comments
 (0)