From 350bceaf3d539a9bc3c506326a5f85815037dde1 Mon Sep 17 00:00:00 2001 From: Simon Annetts Date: Thu, 6 Mar 2025 16:05:54 +0000 Subject: [PATCH 1/4] #47 Update cloudscribe-develop.yml --- .github/workflows/cloudscribe-develop.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/cloudscribe-develop.yml b/.github/workflows/cloudscribe-develop.yml index b69c441..e995bdc 100644 --- a/.github/workflows/cloudscribe-develop.yml +++ b/.github/workflows/cloudscribe-develop.yml @@ -6,6 +6,7 @@ name: cloudscribe-logging-develop-nuget-build on: push: branches: [ "develop" ] + workflow_dispatch: # pull_request: # branches: [ "develop" ] @@ -30,3 +31,9 @@ jobs: run: dotnet pack -c Release - name: Publish NuGet package run: dotnet nuget push **/*.nupkg --source ${{ secrets.NUGET_SOURCE_URL }} + - name: Remote Repository Dispatch + uses: peter-evans/repository-dispatch@v3 + with: + token: ${{ secrets.GHB_PAT }} + repository: GreatHouseBarn/cloudscribe-testing + event-type: cs.Logging From a4898b0c57006e04fb71bd5a8e86ad5db19ac66e Mon Sep 17 00:00:00 2001 From: Jim Kerslake <39943820+JimKerslake@users.noreply.github.com> Date: Fri, 28 Mar 2025 15:38:25 +0000 Subject: [PATCH 2/4] upgrade version to 8.1 --- src/Demo.WebApp/Demo.WebApp.csproj | 22 +++++++++---------- .../cloudscribe.Logging.EFCore.Common.csproj | 4 ++-- .../cloudscribe.Logging.EFCore.MSSQL.csproj | 6 ++--- .../cloudscribe.Logging.EFCore.MySql.csproj | 6 ++--- ...oudscribe.Logging.EFCore.PostgreSql.csproj | 6 ++--- .../cloudscribe.Logging.EFCore.SQLite.csproj | 6 ++--- .../cloudscribe.Logging.EFCore.pgsql.csproj | 6 ++--- .../cloudscribe.Logging.NoDb.csproj | 6 ++--- .../cloudscribe.Logging.Web.csproj | 10 ++++----- .../cloudscribe.Logging.csproj | 6 ++--- 10 files changed, 39 insertions(+), 39 deletions(-) diff --git a/src/Demo.WebApp/Demo.WebApp.csproj b/src/Demo.WebApp/Demo.WebApp.csproj index ed2951a..577239c 100644 --- a/src/Demo.WebApp/Demo.WebApp.csproj +++ b/src/Demo.WebApp/Demo.WebApp.csproj @@ -1,4 +1,4 @@ - + net8.0 @@ -24,16 +24,16 @@ - - - - - - - - - - + + + + + + + + + + diff --git a/src/cloudscribe.Logging.EFCore.Common/cloudscribe.Logging.EFCore.Common.csproj b/src/cloudscribe.Logging.EFCore.Common/cloudscribe.Logging.EFCore.Common.csproj index 7532cd5..f66e83b 100644 --- a/src/cloudscribe.Logging.EFCore.Common/cloudscribe.Logging.EFCore.Common.csproj +++ b/src/cloudscribe.Logging.EFCore.Common/cloudscribe.Logging.EFCore.Common.csproj @@ -1,8 +1,8 @@ - + Entity Framework Core implementation of cloudscribe ILogRepository - 8.0.0 + 8.1.0 net8.0 Joe Audette cloudscribe;repositories;logging diff --git a/src/cloudscribe.Logging.EFCore.MSSQL/cloudscribe.Logging.EFCore.MSSQL.csproj b/src/cloudscribe.Logging.EFCore.MSSQL/cloudscribe.Logging.EFCore.MSSQL.csproj index 2848ba2..f502726 100644 --- a/src/cloudscribe.Logging.EFCore.MSSQL/cloudscribe.Logging.EFCore.MSSQL.csproj +++ b/src/cloudscribe.Logging.EFCore.MSSQL/cloudscribe.Logging.EFCore.MSSQL.csproj @@ -1,8 +1,8 @@ - + MSSQL Entity Framework Core implementation of cloudscribe ILogRepository - 8.0.0 + 8.1.0 net8.0 Joe Audette cloudscribe;repositories;logging @@ -23,7 +23,7 @@ - + diff --git a/src/cloudscribe.Logging.EFCore.MySql/cloudscribe.Logging.EFCore.MySql.csproj b/src/cloudscribe.Logging.EFCore.MySql/cloudscribe.Logging.EFCore.MySql.csproj index b287ffb..fc70bad 100644 --- a/src/cloudscribe.Logging.EFCore.MySql/cloudscribe.Logging.EFCore.MySql.csproj +++ b/src/cloudscribe.Logging.EFCore.MySql/cloudscribe.Logging.EFCore.MySql.csproj @@ -1,8 +1,8 @@ - + MySQL Entity Framework Core implementation of cloudscribe ILogRepository - 8.0.0 + 8.1.0 net8.0 Joe Audette cloudscribe;repositories;logging @@ -25,7 +25,7 @@ - + diff --git a/src/cloudscribe.Logging.EFCore.PostgreSql/cloudscribe.Logging.EFCore.PostgreSql.csproj b/src/cloudscribe.Logging.EFCore.PostgreSql/cloudscribe.Logging.EFCore.PostgreSql.csproj index 913afea..cea4f51 100644 --- a/src/cloudscribe.Logging.EFCore.PostgreSql/cloudscribe.Logging.EFCore.PostgreSql.csproj +++ b/src/cloudscribe.Logging.EFCore.PostgreSql/cloudscribe.Logging.EFCore.PostgreSql.csproj @@ -1,8 +1,8 @@ - + PostgreSql Entity Framework Core implementation of cloudscribe ILogRepository, using snake case tables and fields - 8.0.0 + 8.1.0 net8.0 Joe Audette cloudscribe;repositories;logging @@ -27,7 +27,7 @@ - + diff --git a/src/cloudscribe.Logging.EFCore.SQLite/cloudscribe.Logging.EFCore.SQLite.csproj b/src/cloudscribe.Logging.EFCore.SQLite/cloudscribe.Logging.EFCore.SQLite.csproj index 5c9d5de..1a51905 100644 --- a/src/cloudscribe.Logging.EFCore.SQLite/cloudscribe.Logging.EFCore.SQLite.csproj +++ b/src/cloudscribe.Logging.EFCore.SQLite/cloudscribe.Logging.EFCore.SQLite.csproj @@ -1,8 +1,8 @@ - + SQLite Entity Framework Core implementation of cloudscribe ILogRepository - 8.0.0 + 8.1.0 net8.0 Joe Audette cloudscribe;repositories;logging @@ -25,7 +25,7 @@ - + diff --git a/src/cloudscribe.Logging.EFCore.pgsql/cloudscribe.Logging.EFCore.pgsql.csproj b/src/cloudscribe.Logging.EFCore.pgsql/cloudscribe.Logging.EFCore.pgsql.csproj index f2aa3f3..009748b 100644 --- a/src/cloudscribe.Logging.EFCore.pgsql/cloudscribe.Logging.EFCore.pgsql.csproj +++ b/src/cloudscribe.Logging.EFCore.pgsql/cloudscribe.Logging.EFCore.pgsql.csproj @@ -1,8 +1,8 @@ - + PostgreSql Entity Framework Core implementation of cloudscribe ILogRepository - 8.0.0 + 8.1.0 net8.0 Joe Audette cloudscribe;repositories;logging @@ -25,7 +25,7 @@ - + diff --git a/src/cloudscribe.Logging.NoDb/cloudscribe.Logging.NoDb.csproj b/src/cloudscribe.Logging.NoDb/cloudscribe.Logging.NoDb.csproj index 8d23979..50bfbd8 100644 --- a/src/cloudscribe.Logging.NoDb/cloudscribe.Logging.NoDb.csproj +++ b/src/cloudscribe.Logging.NoDb/cloudscribe.Logging.NoDb.csproj @@ -1,8 +1,8 @@ - + NoDb implementation of cloudscribe ILogRepository - 8.0.0 + 8.1.0 net8.0 Joe Audette cloudscribe;repositories;logging @@ -18,7 +18,7 @@ - + diff --git a/src/cloudscribe.Logging.Web/cloudscribe.Logging.Web.csproj b/src/cloudscribe.Logging.Web/cloudscribe.Logging.Web.csproj index 813376a..2179884 100644 --- a/src/cloudscribe.Logging.Web/cloudscribe.Logging.Web.csproj +++ b/src/cloudscribe.Logging.Web/cloudscribe.Logging.Web.csproj @@ -1,8 +1,8 @@ - + An implementation of ILogger and ILoggerProvider that logs to the database using a pluggable model supporting multiple data platforms. Also proivides an MVC controller for viewing and managing the log data. - 8.0.0 + 8.1.0 net8.0 Joe Audette true @@ -32,9 +32,9 @@ - - - + + + diff --git a/src/cloudscribe.Logging/cloudscribe.Logging.csproj b/src/cloudscribe.Logging/cloudscribe.Logging.csproj index a383a22..3553122 100644 --- a/src/cloudscribe.Logging/cloudscribe.Logging.csproj +++ b/src/cloudscribe.Logging/cloudscribe.Logging.csproj @@ -1,8 +1,8 @@ - + An implementation of ILogger and ILoggerProvider that logs to the database using a pluggable model supporting multiple data platforms. Also proivides an MVC controller for viewing and managing the log data. - 8.0.0 + 8.1.0 net8.0 Joe Audette cloudscribe;logging;database @@ -23,7 +23,7 @@ - + From 109977f1127d0ded5df89162d763824d31a72634 Mon Sep 17 00:00:00 2001 From: Jim Kerslake <39943820+JimKerslake@users.noreply.github.com> Date: Wed, 30 Apr 2025 16:44:48 +0100 Subject: [PATCH 3/4] Create update_version.ps1 --- update_version.ps1 | 52 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 update_version.ps1 diff --git a/update_version.ps1 b/update_version.ps1 new file mode 100644 index 0000000..1e4919a --- /dev/null +++ b/update_version.ps1 @@ -0,0 +1,52 @@ +################### +## PS script to implement a semantic versioning change from (say) 8.0.x to 8.1 +## across all interdependent cs packages + +## Wherever we have 8.0.n replace it to 8.1.0 where n >= 0 + +## Wherever we have replace it to + +## Wherever we have replace it to where n >= 0 + +## Exclude cloudscribe.HtmlAgilityPack and DbHelpers because those ones are ancient and frozen +################### + + +# Define the directory containing the .csproj files +$directory = "src" + +# Define the old & new versions +$oldVersion = '8\.1' # slash needed ! +$newVersion = "8.2.0" +$newWildcardVersion = "8.2.*" + + +# Get all .csproj files in the directory and subdirectories +$csprojFiles = Get-ChildItem -Path $directory -Recurse -Filter *.csproj + +foreach ($file in $csprojFiles) { + # Read the content of the .csproj file + $content = Get-Content -Path $file.FullName + + # Update the version of cloudscribe package references, except for cloudscribe.HtmlAgilityPack and cloudscribe.DbHelpers + + $wildCardPattern = '(?<=$newVersion" + $updatedContent = $updatedContent -replace $versionPattern, $replacement + + + # Write the updated content back to the .csproj file + Set-Content -Path $file.FullName -Value $updatedContent + + Write-Host "Updated $file.FullName" +} + +Write-Host "All cloudscribe package references (except cloudscribe.HtmlAgilityPack and cloudscribe.DbHelpers) and elements have been updated to version $newVersion or $newWildcardVersion as appropriate." + From 88a3beb01e6abe1ce49ad9d56291356b851c5494 Mon Sep 17 00:00:00 2001 From: Jim Kerslake <39943820+JimKerslake@users.noreply.github.com> Date: Wed, 30 Apr 2025 16:46:23 +0100 Subject: [PATCH 4/4] Update Demo.WebApp.csproj --- src/Demo.WebApp/Demo.WebApp.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Demo.WebApp/Demo.WebApp.csproj b/src/Demo.WebApp/Demo.WebApp.csproj index 577239c..8e1ba7b 100644 --- a/src/Demo.WebApp/Demo.WebApp.csproj +++ b/src/Demo.WebApp/Demo.WebApp.csproj @@ -24,7 +24,7 @@ - +