Skip to content

Commit

Permalink
Release/0.9.9 (#409)
Browse files Browse the repository at this point in the history
* Upgraded nuget packages, added support and retargeted internal projects to net8.0.
  • Loading branch information
gwgrubbs committed Mar 24, 2024
1 parent 97b27ce commit 1f2e51d
Show file tree
Hide file tree
Showing 32 changed files with 161 additions and 122 deletions.
4 changes: 2 additions & 2 deletions Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0"?>
<Project>
<PropertyGroup>
<VersionPrefix>0.9.8</VersionPrefix>
<PackageReleaseNotes>See release notes at https://github.com/HatTrickLabs/dbExpression/releases/tag/v0.9.8</PackageReleaseNotes>
<VersionPrefix>0.9.9</VersionPrefix>
<PackageReleaseNotes>See release notes at https://github.com/HatTrickLabs/dbExpression/releases/tag/v0.9.9</PackageReleaseNotes>
</PropertyGroup>

<PropertyGroup>
Expand Down
8 changes: 4 additions & 4 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ parameters:
default:
# tfm, docker tag, pipeline name
- [ 'net48', '4.8.1', 'net48' ]
- [ 'net7.0', '7.0', 'net7' ]
- [ 'net8.0', '8.0', 'net8' ]
- name: integrationTestMatrix
type: object
default:
# tfm, docker tag, pipeline name
- [ 'net7.0', '7.0', 'net7' ]
- [ 'net8.0', '8.0', 'net8' ]
- name: mssqlVersions
type: object
default:
Expand All @@ -52,12 +52,12 @@ stages:
displayName: 'Build and Package'
steps:
- task: UseDotNet@2
displayName: 'Install .NET 7 SDK'
displayName: 'Install .NET 8 SDK'
inputs:
packageType: 'sdk'
# see: https://github.com/dotnet/sdk/pull/29065
# Microsoft introduced a breaking change with 7.0.200 where nuget pack pointing to a sln breaks if --output is specified. Pinning to SDK (not 7.0.*) to mitigate until MS provides documentation
version: '7.0.102'
# version: '7.0.102'
- task: PowerShell@2
displayName: 'Build and Package Solution'
inputs:
Expand Down
23 changes: 12 additions & 11 deletions benchmark/Benchmark.MsSql/Benchmark.MsSql.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
<TargetFrameworks>net8.0</TargetFrameworks>
<LangVersion>latest</LangVersion>
<ImplicitUsings>disable</ImplicitUsings>
<Nullable>disable</Nullable>
Expand All @@ -18,19 +18,20 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="BenchmarkDotNet" Version="0.13.5" />
<PackageReference Include="Dapper" Version="2.0.123" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.5.0" />
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.1.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="7.0.3" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="7.0.3">
<PackageReference Include="BenchmarkDotNet" Version="0.13.12" />
<PackageReference Include="Dapper" Version="2.1.35" />
<PackageReference Include="Microsoft.CodeAnalysis.Common" Version="4.9.2" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.9.2" />
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.2.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.3" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Design" Version="8.0.3">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="7.0.3" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="7.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.3" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.1" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2264,12 +2264,12 @@ public ISqlConnection GetConnection()

public void ValidateRuntimeCompatibility(string runtimeVersion)
{
string[] compatibleRuntimeVersions = new string[] { "0.9.8" };
string[] compatibleRuntimeVersions = new string[] { "0.9.8", "0.9.9" };

if (!compatibleRuntimeVersions.Contains(runtimeVersion))
DbExpressionConfigurationException.ThrowUnsupportedRuntimeVersion(
runtimeVersion,
templateVersion: "0.9.8",
templateVersion: "0.9.9",
compatibleRuntimeVersions
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2264,12 +2264,12 @@ public ISqlConnection GetConnection()

public void ValidateRuntimeCompatibility(string runtimeVersion)
{
string[] compatibleRuntimeVersions = new string[] { "0.9.8" };
string[] compatibleRuntimeVersions = new string[] { "0.9.8", "0.9.9" };

if (!compatibleRuntimeVersions.Contains(runtimeVersion))
DbExpressionConfigurationException.ThrowUnsupportedRuntimeVersion(
runtimeVersion,
templateVersion: "0.9.8",
templateVersion: "0.9.9",
compatibleRuntimeVersions
);
}
Expand Down
16 changes: 8 additions & 8 deletions benchmark/Profiling.MsSql/Profiling.MsSql.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,21 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
<TargetFrameworks>net8.0</TargetFrameworks>
<LangVersion>latest</LangVersion>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="JetBrains.Profiler.SelfApi" Version="2.4.0" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="7.0.0" />
<PackageReference Include="JetBrains.Profiler.SelfApi" Version="2.5.2" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.EnvironmentVariables" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.1" />
</ItemGroup>

<ItemGroup>
Expand Down
16 changes: 16 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# Changelog

## [0.9.9] - 2024-03-23

### Added

- .NET8 TFM support

### Changed

- Deprecated direct support for .NET6 TFM

### Fixed

- Updated Microsoft.Data.SqlClient to new version (Microsoft published a security update on previous version)

### Breaking Changes

## [0.9.8] - 2023-07-19

### Added
Expand Down
10 changes: 5 additions & 5 deletions docs/mssql/DocumentationExamples/DocumentationExamples.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>net6.0;net7.0</TargetFrameworks>
<TargetFrameworks>net7.0;net8.0</TargetFrameworks>
<ImplicitUsings>enable</ImplicitUsings>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
Expand All @@ -14,10 +14,10 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Configuration" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="8.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2324,12 +2324,12 @@ public ISqlConnection GetConnection()

public void ValidateRuntimeCompatibility(string runtimeVersion)
{
string[] compatibleRuntimeVersions = new string[] { "0.9.8" };
string[] compatibleRuntimeVersions = new string[] { "0.9.8", "0.9.9" };

if (!compatibleRuntimeVersions.Contains(runtimeVersion))
DbExpressionConfigurationException.ThrowUnsupportedRuntimeVersion(
runtimeVersion,
templateVersion: "0.9.8",
templateVersion: "0.9.9",
compatibleRuntimeVersions
);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2264,12 +2264,12 @@ public ISqlConnection GetConnection()

public void ValidateRuntimeCompatibility(string runtimeVersion)
{
string[] compatibleRuntimeVersions = new string[] { "0.9.8" };
string[] compatibleRuntimeVersions = new string[] { "0.9.8", "0.9.9" };

if (!compatibleRuntimeVersions.Contains(runtimeVersion))
DbExpressionConfigurationException.ThrowUnsupportedRuntimeVersion(
runtimeVersion,
templateVersion: "0.9.8",
templateVersion: "0.9.9",
compatibleRuntimeVersions
);
}
Expand Down
10 changes: 5 additions & 5 deletions samples/mssql/NetCoreConsoleApp/NetCoreConsoleApp.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>net7.0</TargetFrameworks>
<TargetFrameworks>net8.0</TargetFrameworks>
<LangVersion>latest</LangVersion>
<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Configuration" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Configuration.Json" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Console" Version="8.0.0" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2263,12 +2263,12 @@ public ISqlConnection GetConnection()

public void ValidateRuntimeCompatibility(string runtimeVersion)
{
string[] compatibleRuntimeVersions = new string[] { "0.9.8" };
string[] compatibleRuntimeVersions = new string[] { "0.9.8", "0.9.9" };

if (!compatibleRuntimeVersions.Contains(runtimeVersion))
DbExpressionConfigurationException.ThrowUnsupportedRuntimeVersion(
runtimeVersion,
templateVersion: "0.9.8",
templateVersion: "0.9.9",
compatibleRuntimeVersions
);
}
Expand Down
16 changes: 8 additions & 8 deletions samples/mssql/ServerSideBlazorApp/ServerSideBlazorApp.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFrameworks>net7.0</TargetFrameworks>
<TargetFrameworks>net8.0</TargetFrameworks>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
Expand All @@ -27,13 +27,13 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="Blazorise.Charts" Version="1.2.1" />
<PackageReference Include="Blazorise.Components" Version="1.2.1" />
<PackageReference Include="Blazorise.DataGrid" Version="1.2.1" />
<PackageReference Include="Blazorise.Icons.FontAwesome" Version="1.2.1" />
<PackageReference Include="Blazorise.Icons.Material" Version="1.2.1" />
<PackageReference Include="Blazorise.Material" Version="1.2.1" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="7.0.4" />
<PackageReference Include="Blazorise.Charts" Version="1.5.0" />
<PackageReference Include="Blazorise.Components" Version="1.5.0" />
<PackageReference Include="Blazorise.DataGrid" Version="1.5.0" />
<PackageReference Include="Blazorise.Icons.FontAwesome" Version="1.5.0" />
<PackageReference Include="Blazorise.Icons.Material" Version="1.5.0" />
<PackageReference Include="Blazorise.Material" Version="1.5.0" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="8.0.2" />
</ItemGroup>

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

<PropertyGroup>
<TargetFrameworks>netstandard2.0;net6.0;net7.0</TargetFrameworks>
<TargetFrameworks>netstandard2.0;net7.0;net8.0</TargetFrameworks>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<RootNamespace>Microsoft.Extensions.DependencyInjection</RootNamespace>
Expand All @@ -13,14 +13,14 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="CommunityToolkit.Diagnostics" Version="8.1.0" />
<PackageReference Include="CommunityToolkit.Diagnostics" Version="8.2.2" />
<PackageReference Include="Microsoft.AspNetCore.Http.Abstractions" Version="2.2.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.1" />
</ItemGroup>

<ItemGroup>
<ProjectReference Include="..\HatTrick.DbEx.MsSql\HatTrick.DbEx.MsSql.csproj" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
</ItemGroup>

</Project>
10 changes: 5 additions & 5 deletions src/HatTrick.DbEx.MsSql/HatTrick.DbEx.MsSql.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.0;net6.0;net7.0</TargetFrameworks>
<TargetFrameworks>netstandard2.0;net7.0;net8.0</TargetFrameworks>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<IsPackable>true</IsPackable>
Expand All @@ -24,10 +24,10 @@
</ItemGroup>

<ItemGroup>
<PackageReference Include="CommunityToolkit.Diagnostics" Version="8.1.0" />
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.1.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="7.0.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
<PackageReference Include="CommunityToolkit.Diagnostics" Version="8.2.2" />
<PackageReference Include="Microsoft.Data.SqlClient" Version="5.2.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.1" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
<ProjectReference Include="..\HatTrick.DbEx.Sql\HatTrick.DbEx.Sql.csproj" />
</ItemGroup>

Expand Down
12 changes: 6 additions & 6 deletions src/HatTrick.DbEx.Sql/HatTrick.DbEx.Sql.csproj
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>netstandard2.0;net6.0;net7.0</TargetFrameworks>
<TargetFrameworks>netstandard2.0;net7.0;net8.0</TargetFrameworks>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<IsPackable>true</IsPackable>
<Description>dbExpression is a database connector that enables fluent composition and execution of type safe SQL queries directly from Microsoft .NET. This package is an abstract package not meant for direct references. To use dbExpression, reference platform specific packages (i.e. HatTrick.DbEx.MsSql).</Description>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="CommunityToolkit.Diagnostics" Version="8.1.0" />
<PackageReference Include="CommunityToolkit.Diagnostics" Version="8.2.2" />
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<!-- Keep this reference. While not needed, any consumer of dbExpression will need it. Save them the task of referencing -->
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="7.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="7.0.0" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="8.0.1" />
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="8.0.1" />
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="All" />
</ItemGroup>

<ItemGroup>
Expand Down

0 comments on commit 1f2e51d

Please sign in to comment.