From 57872a473ea8daed242154f7fe623c4fe8f9290f Mon Sep 17 00:00:00 2001
From: Mateusz Stolecki <57866326+wertone-gh@users.noreply.github.com>
Date: Tue, 31 Oct 2023 15:07:34 +0100
Subject: [PATCH 1/3] fix: updated to version 1.0.34 of
Meziantou.Framework.StronglyTypedId and Microsoft.CodeAnalysis to 4.7.0
---
.../Allegro.Extensions.Identifiers.Abstractions.csproj | 4 ++--
src/Allegro.Extensions.Identifiers/CHANGELOG.md | 6 ++++++
src/Allegro.Extensions.Identifiers/version.xml | 2 +-
3 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/src/Allegro.Extensions.Identifiers/Allegro.Extensions.Identifiers.Abstractions/Allegro.Extensions.Identifiers.Abstractions.csproj b/src/Allegro.Extensions.Identifiers/Allegro.Extensions.Identifiers.Abstractions/Allegro.Extensions.Identifiers.Abstractions.csproj
index bdfe40b..f2c6c0b 100644
--- a/src/Allegro.Extensions.Identifiers/Allegro.Extensions.Identifiers.Abstractions/Allegro.Extensions.Identifiers.Abstractions.csproj
+++ b/src/Allegro.Extensions.Identifiers/Allegro.Extensions.Identifiers.Abstractions/Allegro.Extensions.Identifiers.Abstractions.csproj
@@ -7,7 +7,7 @@
-
-
+
+
\ No newline at end of file
diff --git a/src/Allegro.Extensions.Identifiers/CHANGELOG.md b/src/Allegro.Extensions.Identifiers/CHANGELOG.md
index 840f71b..ada4ac0 100644
--- a/src/Allegro.Extensions.Identifiers/CHANGELOG.md
+++ b/src/Allegro.Extensions.Identifiers/CHANGELOG.md
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres
to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
+## [1.2.1] - 2023-11-01
+
+### Fix
+
+* Updated to version 1.0.34 of Meziantou.Framework.StronglyTypedId and Microsoft.CodeAnalysis to 4.7.0
+
## [1.2.0] - 2023-01-03
### Fix
diff --git a/src/Allegro.Extensions.Identifiers/version.xml b/src/Allegro.Extensions.Identifiers/version.xml
index 8d2acde..9db3b3b 100644
--- a/src/Allegro.Extensions.Identifiers/version.xml
+++ b/src/Allegro.Extensions.Identifiers/version.xml
@@ -1,5 +1,5 @@
- 1.2.0
+ 1.2.1
\ No newline at end of file
From a9ab56d0bc3767af9cb1b84ec7749a523aa85b8c Mon Sep 17 00:00:00 2001
From: Mateusz Marciniak
Date: Fri, 26 Jan 2024 09:46:20 +0100
Subject: [PATCH 2/3] chore: update packages
---
.../Allegro.Extensions.Identifiers.Abstractions.csproj | 4 ++--
.../Allegro.Extensions.Identifiers.AspNetCore.csproj | 2 +-
.../Swagger/StronglyTypedIdsSwaggerExtensions.cs | 1 +
.../Allegro.Extensions.Identifiers.Demo.csproj | 2 +-
.../Identifiers/OrderId.cs | 1 +
.../Identifiers/PaymentId.cs | 1 +
.../Identifiers/UserId.cs | 1 +
src/Allegro.Extensions.Identifiers/CHANGELOG.md | 5 +++--
src/Allegro.Extensions.Identifiers/version.xml | 2 +-
9 files changed, 12 insertions(+), 7 deletions(-)
diff --git a/src/Allegro.Extensions.Identifiers/Allegro.Extensions.Identifiers.Abstractions/Allegro.Extensions.Identifiers.Abstractions.csproj b/src/Allegro.Extensions.Identifiers/Allegro.Extensions.Identifiers.Abstractions/Allegro.Extensions.Identifiers.Abstractions.csproj
index f2c6c0b..01018d7 100644
--- a/src/Allegro.Extensions.Identifiers/Allegro.Extensions.Identifiers.Abstractions/Allegro.Extensions.Identifiers.Abstractions.csproj
+++ b/src/Allegro.Extensions.Identifiers/Allegro.Extensions.Identifiers.Abstractions/Allegro.Extensions.Identifiers.Abstractions.csproj
@@ -7,7 +7,7 @@
-
-
+
+
\ No newline at end of file
diff --git a/src/Allegro.Extensions.Identifiers/Allegro.Extensions.Identifiers.AspNetCore/Allegro.Extensions.Identifiers.AspNetCore.csproj b/src/Allegro.Extensions.Identifiers/Allegro.Extensions.Identifiers.AspNetCore/Allegro.Extensions.Identifiers.AspNetCore.csproj
index 6802008..98c250c 100644
--- a/src/Allegro.Extensions.Identifiers/Allegro.Extensions.Identifiers.AspNetCore/Allegro.Extensions.Identifiers.AspNetCore.csproj
+++ b/src/Allegro.Extensions.Identifiers/Allegro.Extensions.Identifiers.AspNetCore/Allegro.Extensions.Identifiers.AspNetCore.csproj
@@ -7,7 +7,7 @@
-
+
diff --git a/src/Allegro.Extensions.Identifiers/Allegro.Extensions.Identifiers.AspNetCore/Swagger/StronglyTypedIdsSwaggerExtensions.cs b/src/Allegro.Extensions.Identifiers/Allegro.Extensions.Identifiers.AspNetCore/Swagger/StronglyTypedIdsSwaggerExtensions.cs
index b6a7b9d..f6afd2f 100644
--- a/src/Allegro.Extensions.Identifiers/Allegro.Extensions.Identifiers.AspNetCore/Swagger/StronglyTypedIdsSwaggerExtensions.cs
+++ b/src/Allegro.Extensions.Identifiers/Allegro.Extensions.Identifiers.AspNetCore/Swagger/StronglyTypedIdsSwaggerExtensions.cs
@@ -19,6 +19,7 @@ public static IServiceCollection AddStronglyTypedIds(this IServiceCollection ser
services.Configure(options =>
{
var types = AppDomain.CurrentDomain.GetAssemblies()
+ .Where(a => a.FullName?.StartsWith("Microsoft", StringComparison.Ordinal) != true)
.SelectMany(x => x.GetTypes())
.Where(x => IsAssignableToGenericType(x, typeof(IStronglyTypedId<>)) && !x.IsInterface && !x.IsAbstract)
.ToList();
diff --git a/src/Allegro.Extensions.Identifiers/Allegro.Extensions.Identifiers.Demo/Allegro.Extensions.Identifiers.Demo.csproj b/src/Allegro.Extensions.Identifiers/Allegro.Extensions.Identifiers.Demo/Allegro.Extensions.Identifiers.Demo.csproj
index 88a8c5c..69f4a94 100644
--- a/src/Allegro.Extensions.Identifiers/Allegro.Extensions.Identifiers.Demo/Allegro.Extensions.Identifiers.Demo.csproj
+++ b/src/Allegro.Extensions.Identifiers/Allegro.Extensions.Identifiers.Demo/Allegro.Extensions.Identifiers.Demo.csproj
@@ -4,7 +4,7 @@
false
-
+
diff --git a/src/Allegro.Extensions.Identifiers/Allegro.Extensions.Identifiers.Demo/Identifiers/OrderId.cs b/src/Allegro.Extensions.Identifiers/Allegro.Extensions.Identifiers.Demo/Identifiers/OrderId.cs
index 87cc136..fb3f376 100644
--- a/src/Allegro.Extensions.Identifiers/Allegro.Extensions.Identifiers.Demo/Identifiers/OrderId.cs
+++ b/src/Allegro.Extensions.Identifiers/Allegro.Extensions.Identifiers.Demo/Identifiers/OrderId.cs
@@ -2,6 +2,7 @@
#pragma warning disable 1591
using Allegro.Extensions.Identifiers.Abstractions;
+using Meziantou.Framework.Annotations;
namespace Allegro.Extensions.Identifiers.Demo.Identifiers;
diff --git a/src/Allegro.Extensions.Identifiers/Allegro.Extensions.Identifiers.Demo/Identifiers/PaymentId.cs b/src/Allegro.Extensions.Identifiers/Allegro.Extensions.Identifiers.Demo/Identifiers/PaymentId.cs
index 2e36f93..a0bfb7f 100644
--- a/src/Allegro.Extensions.Identifiers/Allegro.Extensions.Identifiers.Demo/Identifiers/PaymentId.cs
+++ b/src/Allegro.Extensions.Identifiers/Allegro.Extensions.Identifiers.Demo/Identifiers/PaymentId.cs
@@ -1,6 +1,7 @@
// Copyright (c) PlaceholderCompany. All rights reserved.
using Allegro.Extensions.Identifiers.Abstractions;
+using Meziantou.Framework.Annotations;
namespace Allegro.Extensions.Identifiers.Demo.Identifiers;
diff --git a/src/Allegro.Extensions.Identifiers/Allegro.Extensions.Identifiers.Demo/Identifiers/UserId.cs b/src/Allegro.Extensions.Identifiers/Allegro.Extensions.Identifiers.Demo/Identifiers/UserId.cs
index 28d6e21..88e1fd9 100644
--- a/src/Allegro.Extensions.Identifiers/Allegro.Extensions.Identifiers.Demo/Identifiers/UserId.cs
+++ b/src/Allegro.Extensions.Identifiers/Allegro.Extensions.Identifiers.Demo/Identifiers/UserId.cs
@@ -1,6 +1,7 @@
// Copyright (c) PlaceholderCompany. All rights reserved.
using Allegro.Extensions.Identifiers.Abstractions;
+using Meziantou.Framework.Annotations;
namespace Allegro.Extensions.Identifiers.Demo.Identifiers;
diff --git a/src/Allegro.Extensions.Identifiers/CHANGELOG.md b/src/Allegro.Extensions.Identifiers/CHANGELOG.md
index ada4ac0..ff4538d 100644
--- a/src/Allegro.Extensions.Identifiers/CHANGELOG.md
+++ b/src/Allegro.Extensions.Identifiers/CHANGELOG.md
@@ -5,8 +5,9 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres
to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
-## [1.2.1] - 2023-11-01
-
+## [1.3.0] - 2024-01-26
+* Updated to version 2.1.0 of Meziantou.Framework.StronglyTypedId and Microsoft.CodeAnalysis to 4.8.0
+* Fixed AddStronglyTypedIds failing becouse of https://github.com/dotnet/SqlClient/issues/1930
### Fix
* Updated to version 1.0.34 of Meziantou.Framework.StronglyTypedId and Microsoft.CodeAnalysis to 4.7.0
diff --git a/src/Allegro.Extensions.Identifiers/version.xml b/src/Allegro.Extensions.Identifiers/version.xml
index 9db3b3b..702302f 100644
--- a/src/Allegro.Extensions.Identifiers/version.xml
+++ b/src/Allegro.Extensions.Identifiers/version.xml
@@ -1,5 +1,5 @@
- 1.2.1
+ 1.3.0
\ No newline at end of file
From b52ad93d07aead11a112b7df9c6a2d579ba20695 Mon Sep 17 00:00:00 2001
From: Mateusz Marciniak
Date: Fri, 26 Jan 2024 09:47:09 +0100
Subject: [PATCH 3/3] chore: updated Allegro.DotnetSdk
---
global.json | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/global.json b/global.json
index ab046e3..5a9e77a 100644
--- a/global.json
+++ b/global.json
@@ -1,9 +1,9 @@
{
"sdk": {
- "version": "6.0.405",
+ "version": "8.0.100",
"rollForward": "latestFeature"
},
"msbuild-sdks": {
- "Allegro.DotnetSdk": "1.2.2"
+ "Allegro.DotnetSdk": "2.1.0"
}
}
\ No newline at end of file