Skip to content

Commit 052aa46

Browse files
fixed small bug and updated nuspec
1 parent 579f3ef commit 052aa46

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

Aikido.Zen.DotNetCore/Aikido.Zen.DotNetCore.nuspec

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -25,20 +25,18 @@
2525
<dependency id="Microsoft.AspNetCore.Http" version="2.2.2" />
2626
<dependency id="Microsoft.AspNetCore.Routing" version="2.2.2" />
2727
<dependency id="Microsoft.AspNetCore.Routing.Abstractions" version="2.2.0" />
28-
<dependency id="Microsoft.AspNetCore.Http.Abstractions" version="2.2.0" />
29-
<dependency id="Microsoft.AspNetCore.WebUtilities" version="2.2.0" />
30-
<dependency id="Microsoft.Extensions.Logging.Abstractions" version="8.0.2" />
31-
<dependency id="System.Text.Json" version="8.0.0" />
28+
<dependency id="Microsoft.Extensions.DependencyInjection" version="8.0.0" />
29+
<dependency id="Microsoft.Extensions.Options" version="8.0.0" />
30+
<dependency id="System.Text.Json" version="8.0.1" />
3231
</group>
3332
<group targetFramework="net7.0">
3433
<dependency id="Lib.Harmony" version="2.3.3" />
3534
<dependency id="Microsoft.AspNetCore.Hosting.Abstractions" version="2.2.0" />
3635
<dependency id="Microsoft.AspNetCore.Http" version="2.2.2" />
3736
<dependency id="Microsoft.AspNetCore.Routing" version="2.2.2" />
3837
<dependency id="Microsoft.AspNetCore.Routing.Abstractions" version="2.2.0" />
39-
<dependency id="Microsoft.AspNetCore.Http.Abstractions" version="2.2.0" />
40-
<dependency id="Microsoft.AspNetCore.WebUtilities" version="2.2.0" />
41-
<dependency id="Microsoft.Extensions.Logging.Abstractions" version="7.0.2" />
38+
<dependency id="Microsoft.Extensions.DependencyInjection" version="7.0.0" />
39+
<dependency id="Microsoft.Extensions.Options" version="7.0.0" />
4240
<dependency id="System.Text.Json" version="7.0.0" />
4341
</group>
4442
<group targetFramework="net6.0">
@@ -47,9 +45,8 @@
4745
<dependency id="Microsoft.AspNetCore.Http" version="2.2.2" />
4846
<dependency id="Microsoft.AspNetCore.Routing" version="2.2.2" />
4947
<dependency id="Microsoft.AspNetCore.Routing.Abstractions" version="2.2.0" />
50-
<dependency id="Microsoft.AspNetCore.Http.Abstractions" version="2.2.0" />
51-
<dependency id="Microsoft.AspNetCore.WebUtilities" version="2.2.0" />
52-
<dependency id="Microsoft.Extensions.Logging.Abstractions" version="6.0.2" />
48+
<dependency id="Microsoft.Extensions.DependencyInjection" version="6.0.0" />
49+
<dependency id="Microsoft.Extensions.Options" version="6.0.0" />
5350
<dependency id="System.Text.Json" version="6.0.0" />
5451
</group>
5552
</dependencies>

Aikido.Zen.DotNetFramework/Patches/SqlClientPatches.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ private static bool OnCommandExecuting(object[] __args, MethodBase __originalMet
8080
{
8181
var dbCommand = __instance as System.Data.Common.DbCommand;
8282
if (dbCommand == null) return true;
83-
var assembly = __instance.GetType().Assembly.FullName?.Split(", Culture=")[0];
83+
var assembly = __instance.GetType().Assembly.FullName?.Split(new[] { ", Culture=" }, StringSplitOptions.RemoveEmptyEntries)[0];
8484
return Aikido.Zen.Core.Patches.SqlClientPatcher.OnCommandExecuting(__args, __originalMethod, dbCommand, assembly, Zen.GetContext());
8585
}
8686
}

0 commit comments

Comments
 (0)