Skip to content
Open

Bump #14

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Setup dotnet
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
dotnet-version: 10.0.x

- name: Restore dependencies
run: dotnet restore CommandQuery.sln
Expand Down
4 changes: 2 additions & 2 deletions Analyzers.props
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
</AdditionalFiles>
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" Version="17.10.48">
<PackageReference Include="Microsoft.VisualStudio.Threading.Analyzers" Version="17.14.15">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
<PackageReference Include="Roslynator.Analyzers" Version="4.12.4">
<PackageReference Include="Roslynator.Analyzers" Version="4.15.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
Expand Down
5 changes: 4 additions & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All"/>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="10.0.102">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
</ItemGroup>

</Project>
25 changes: 25 additions & 0 deletions Tests.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<Project>

<PropertyGroup>
<Nullable>disable</Nullable>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
<NoWarn>$(NoWarn);CS1998;CS8321;NU1504;NU1603;Moq1203;Moq1400</NoWarn>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="FluentAssertions" Version="[7.2.0]" />
<PackageReference Include="LoFuUnit.AutoMoq" Version="4.0.0-preview.1" />
<PackageReference Include="LoFuUnit.NUnit" Version="4.0.0-preview.1" />
<PackageReference Include="Moq.Analyzers" Version="0.4.0" />
<PackageReference Include="Microsoft.CodeCoverage" Version="18.0.1" />
<PackageReference Include="Microsoft.Extensions.DependencyModel" Version="10.0.2" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="18.0.1" />
<PackageReference Include="NUnit.Analyzers" Version="4.11.2" />
<PackageReference Include="NUnit3TestAdapter" Version="6.1.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions src/CommandQuery.AWSLambda/CommandQuery.AWSLambda.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Amazon.Lambda.Core" Version="2.2.0" />
<PackageReference Include="Amazon.Lambda.APIGatewayEvents" Version="2.7.0" />
<PackageReference Include="Amazon.Lambda.Core" Version="2.8.0" />
<PackageReference Include="Amazon.Lambda.APIGatewayEvents" Version="2.7.3" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/CommandQuery.AspNetCore/CommandQuery.AspNetCore.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net10.0</TargetFramework>
<Version>4.0.0</Version>
<PackageReleaseNotes>
- Change TargetFramework to net8.0
Expand Down
5 changes: 4 additions & 1 deletion src/CommandQuery.AspNetCore/CommandWithResultController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ public CommandController(ICommandProcessor commandProcessor, ILogger<CommandCont
[HttpPost]
public async Task<IActionResult> HandleAsync(TCommand command, CancellationToken cancellationToken)
{
_logger.LogInformation("Handle {@Command}", command);
if (_logger.IsEnabled(LogLevel.Information))
{
_logger.LogInformation("Handle {@Command}", command);
}

try
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ public CommandController(ICommandProcessor commandProcessor, ILogger<CommandCont
[HttpPost]
public async Task<IActionResult> HandleAsync(TCommand command, CancellationToken cancellationToken)
{
_logger.LogInformation("Handle {@Command}", command);
if (_logger.IsEnabled(LogLevel.Information))
{
_logger.LogInformation("Handle {@Command}", command);
}

try
{
Expand Down
10 changes: 8 additions & 2 deletions src/CommandQuery.AspNetCore/QueryController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ public QueryController(IQueryProcessor queryProcessor, ILogger<QueryController<T
[HttpPost]
public async Task<IActionResult> HandlePostAsync(TQuery query, CancellationToken cancellationToken)
{
_logger.LogInformation("Handle {@Query}", query);
if (_logger.IsEnabled(LogLevel.Information))
{
_logger.LogInformation("Handle {@Query}", query);
}

try
{
Expand All @@ -59,7 +62,10 @@ public async Task<IActionResult> HandlePostAsync(TQuery query, CancellationToken
[HttpGet]
public async Task<IActionResult> HandleGetAsync([FromQuery] TQuery query, CancellationToken cancellationToken)
{
_logger.LogInformation("Handle {@Query}", query);
if (_logger.IsEnabled(LogLevel.Information))
{
_logger.LogInformation("Handle {@Query}", query);
}

try
{
Expand Down
10 changes: 8 additions & 2 deletions src/CommandQuery.AzureFunctions/CommandFunction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ public async Task<HttpResponseData> HandleAsync(string commandName, HttpRequestD
{
ArgumentNullException.ThrowIfNull(req);

_logger.LogInformation("Handle {Command}", commandName);
if (_logger.IsEnabled(LogLevel.Information))
{
_logger.LogInformation("Handle {Command}", commandName);
}

try
{
Expand Down Expand Up @@ -62,7 +65,10 @@ public async Task<IActionResult> HandleAsync(string commandName, HttpRequest req
{
ArgumentNullException.ThrowIfNull(req);

_logger.LogInformation("Handle {Command}", commandName);
if (_logger.IsEnabled(LogLevel.Information))
{
_logger.LogInformation("Handle {Command}", commandName);
}

try
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net10.0</TargetFramework>
<Version>4.0.0</Version>
<PackageReleaseNotes>
- Change TargetFramework to net8.0
Expand Down Expand Up @@ -38,7 +38,7 @@

<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="Microsoft.Azure.Functions.Worker" Version="1.22.0" />
<PackageReference Include="Microsoft.Azure.Functions.Worker" Version="2.51.0" />
</ItemGroup>

<ItemGroup>
Expand Down
10 changes: 8 additions & 2 deletions src/CommandQuery.AzureFunctions/QueryFunction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ public async Task<HttpResponseData> HandleAsync(string queryName, HttpRequestDat
{
ArgumentNullException.ThrowIfNull(req);

_logger.LogInformation("Handle {Query}", queryName);
if (_logger.IsEnabled(LogLevel.Information))
{
_logger.LogInformation("Handle {Query}", queryName);
}

try
{
Expand Down Expand Up @@ -67,7 +70,10 @@ public async Task<IActionResult> HandleAsync(string queryName, HttpRequest req,
{
ArgumentNullException.ThrowIfNull(req);

_logger.LogInformation("Handle {Query}", queryName);
if (_logger.IsEnabled(LogLevel.Information))
{
_logger.LogInformation("Handle {Query}", queryName);
}

try
{
Expand Down
2 changes: 1 addition & 1 deletion src/CommandQuery.Client/CommandQuery.Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="System.Net.Http.Json" Version="8.0.0" />
<PackageReference Include="System.Net.Http.Json" Version="10.0.2" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Http" Version="2.1.34" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="6.0.4" />
<PackageReference Include="Microsoft.AspNetCore.Http" Version="2.3.9" />
Copy link

Copilot AI Jan 29, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using Microsoft.AspNetCore.Http 2.3.9 (if it exists) alongside net10.0 target framework in test projects creates a significant version mismatch. The 2.x versions of ASP.NET Core packages are designed for .NET Core 2.x and may not be compatible with .NET 10.0. This could lead to runtime compatibility issues or version conflicts. Consider updating to a version compatible with net10.0 or verify thorough compatibility testing.

Copilot uses AI. Check for mistakes.
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="10.0.2" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="System.Text.Json" Version="8.0.4" />
<PackageReference Include="System.Text.Json" Version="10.0.2" />
</ItemGroup>

<ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion src/CommandQuery/CommandQuery.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@

<ItemGroup>
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="10.0.2" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,29 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="../../Tests.props" />

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<Nullable>disable</Nullable>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
<NoWarn>$(NoWarn);CS1998;CS8321;NU1603</NoWarn>
<TargetFramework>net10.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<Compile Include="..\CommandQuery.Tests\Fake.cs" Link="Fake.cs" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="LoFuUnit.AutoMoq" Version="4.0.0-preview.1" />
<PackageReference Include="LoFuUnit.NUnit" Version="4.0.0-preview.1" />
<PackageReference Include="Microsoft.CodeCoverage" Version="17.10.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\CommandQuery.AWSLambda\CommandQuery.AWSLambda.csproj" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,29 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="../../Tests.props" />

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<Nullable>disable</Nullable>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
<NoWarn>$(NoWarn);CS1998;CS8321;NU1603</NoWarn>
<TargetFramework>net10.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<Compile Include="..\CommandQuery.Tests\Fake.cs" Link="Fake.cs" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="LoFuUnit.AutoMoq" Version="4.0.0-preview.1" />
<PackageReference Include="LoFuUnit.NUnit" Version="4.0.0-preview.1" />
<PackageReference Include="Microsoft.CodeCoverage" Version="17.10.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\CommandQuery.AspNetCore\CommandQuery.AspNetCore.csproj" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,29 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="../../Tests.props" />

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<Nullable>disable</Nullable>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
<NoWarn>$(NoWarn);CS1998;CS8321;NU1603</NoWarn>
<TargetFramework>net10.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<Compile Include="..\CommandQuery.Tests\Fake.cs" Link="Fake.cs" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="LoFuUnit.AutoMoq" Version="4.0.0-preview.1" />
<PackageReference Include="LoFuUnit.NUnit" Version="4.0.0-preview.1" />
<PackageReference Include="Microsoft.CodeCoverage" Version="17.10.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\CommandQuery.AzureFunctions\CommandQuery.AzureFunctions.csproj" />
</ItemGroup>
Expand Down
6 changes: 3 additions & 3 deletions tests/CommandQuery.Benchmark/CommandQuery.Benchmark.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFramework>net10.0</TargetFramework>
<OutputType>Exe</OutputType>
<Nullable>disable</Nullable>
</PropertyGroup>
Expand All @@ -17,8 +17,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="BenchmarkDotNet" Version="0.13.12" />
<PackageReference Include="BenchmarkDotNet.Diagnostics.Windows" Version="0.13.12" />
<PackageReference Include="BenchmarkDotNet" Version="0.15.8" />
<PackageReference Include="BenchmarkDotNet.Diagnostics.Windows" Version="0.15.8" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,29 +1,18 @@
<Project Sdk="Microsoft.NET.Sdk">

<Import Project="../../Tests.props" />

<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<Nullable>disable</Nullable>
<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
<NoWarn>$(NoWarn);CS1998;CS8321;NU1603</NoWarn>
<TargetFramework>net10.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
<Compile Include="..\CommandQuery.Tests\Fake.cs" Link="Fake.cs" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="FluentAssertions" Version="6.12.0" />
<PackageReference Include="LoFuUnit.AutoMoq" Version="4.0.0-preview.1" />
<PackageReference Include="LoFuUnit.NUnit" Version="4.0.0-preview.1" />
<PackageReference Include="Microsoft.AspNetCore.Http.Extensions" Version="2.1.21" />
<PackageReference Include="Microsoft.CodeCoverage" Version="17.10.0" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.10.0" />
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.AspNetCore.Http.Extensions" Version="2.3.9" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="10.0.2" />
</ItemGroup>

<ItemGroup>
Expand Down
Loading
Loading