Skip to content

Commit

Permalink
chore: update package versions to 7.2.1, change default version to 1.…
Browse files Browse the repository at this point in the history
…5.0, and upgrade Docker images to .NET 9.0
  • Loading branch information
giovanninocco committed Dec 15, 2024
1 parent 4bd27ba commit 1e5f253
Show file tree
Hide file tree
Showing 11 changed files with 42 additions and 44 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nuget-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
description: "Package Version"

# Default value if no value is explicitly provided
default: "1.4.0"
default: "1.5.0"

# Input has to be provided for the workflow to run
required: true
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
[license-url]: https://github.com/Genocs/genocs-library-template/blob/main/LICENSE
[build-shield]: https://github.com/Genocs/genocs-library-template/actions/workflows/build_and_test.yml/badge.svg?branch=main
[build-url]: https://github.com/Genocs/genocs-library-template/actions/workflows/build_and_test.yml
[package-shield]: https://img.shields.io/badge/nuget-v.1.4.0-blue?&label=latests&logo=nuget
[package-shield]: https://img.shields.io/badge/nuget-v.1.5.0-blue?&label=latests&logo=nuget
[package-url]: https://github.com/Genocs/genocs-library-template/actions/workflows/build_and_test.yml
[downloads-shield]: https://img.shields.io/nuget/dt/Genocs.Library.Template.svg?color=2da44e&label=downloads&logo=nuget
[downloads-url]: https://www.nuget.org/packages/Genocs.Library.Template
Expand Down Expand Up @@ -71,10 +71,10 @@ Open up your *Command Prompt* or *PowerShell* or "bash" and run the following co
git clone https://github.com/Genocs/genocs-library-template

# To build the nuget package
nuget pack ./src/Package.Template.nuspec -NoDefaultExcludes -OutputDirectory ./out -Version 1.4.0
nuget pack ./src/Package.Template.nuspec -NoDefaultExcludes -OutputDirectory ./out -Version 1.5.0

# To install the template
dotnet new install ./out/Genocs.Library.Template.1.4.0.nupkg
dotnet new install ./out/Genocs.Library.Template.1.5.0.nupkg

# To
dotnet new gnx-librawebapi --help
Expand All @@ -90,10 +90,10 @@ dotnet new install Genocs.Library.Template

# To install a specific version of the template

dotnet new install Genocs.Library.Template::1.4.0
dotnet new install Genocs.Library.Template::1.5.0
```

This would install the `Genocs Library Web Api Template` globally on your machine. Do note that, at the time of writing this documentation, the latest available version is **1.4.0** which is also one of the first stable release version of the package. It is highly likely that there is already a newer version available when you are reading this.
This would install the `Genocs Library Web Api Template` globally on your machine. Do note that, at the time of writing this documentation, the latest available version is **1.5.0** which is also one of the first stable release version of the package. It is highly likely that there is already a newer version available when you are reading this.


> *To get the latest version of the package, visit [nuget.org](https://www.nuget.org/packages/Genocs.Library.Template/)*
Expand Down Expand Up @@ -132,7 +132,7 @@ cd ./src
nuget pack
dotnet new u Genocs.Library.Template

dotnet new install ./out/Genocs.Library.Template.1.4.0.nupkg
dotnet new install ./out/Genocs.Library.Template.1.5.0.nupkg

dotnet new gnx-librawebapi --help
dotnet new gnx-librawebapi --name {MyCompany.MyProject}
Expand Down
6 changes: 3 additions & 3 deletions README_NUGET.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
[license-url]: https://github.com/Genocs/genocs-library-template/blob/main/LICENSE
[build-shield]: https://github.com/Genocs/genocs-library-template/actions/workflows/build_and_test.yml/badge.svg?branch=main
[build-url]: https://github.com/Genocs/genocs-library-template/actions/workflows/build_and_test.yml
[package-shield]: https://img.shields.io/badge/nuget-v.1.4.0-blue?&label=latests&logo=nuget
[package-shield]: https://img.shields.io/badge/nuget-v.1.5.0-blue?&label=latests&logo=nuget
[package-url]: https://github.com/Genocs/genocs-library-template/actions/workflows/build_and_test.yml
[downloads-shield]: https://img.shields.io/nuget/dt/Genocs.Library.Template.svg?color=2da44e&label=downloads&logo=nuget
[downloads-url]: https://www.nuget.org/packages/Genocs.Library.Template
Expand Down Expand Up @@ -78,11 +78,11 @@ if you want to use a specific version of the template,
use

``` bash
dotnet new -install Genocs.Library.Template::1.4.0
dotnet new -install Genocs.Library.Template::1.5.0
```


This would install the `Genocs Library Web Api Template` globally on your machine. Do note that, at the time of writing this documentation, the latest available version is **1.4.0** which is also one of the first stable release version of the package. It is highly likely that there is already a newer version available when you are reading this.
This would install the `Genocs Library Web Api Template` globally on your machine. Do note that, at the time of writing this documentation, the latest available version is **1.5.0** which is also one of the first stable release version of the package. It is highly likely that there is already a newer version available when you are reading this.


> *To get the latest version of the package, visit [nuget.org](https://www.nuget.org/packages/Genocs.Library.Template/)*
Expand Down
10 changes: 5 additions & 5 deletions src/Package.Template.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata minClientVersion="5.10.0">
<id>Genocs.Library.Template</id>
<version>1.2.0</version>
<version>1.5.0</version>
<title>Genocs - Library Web Api Template</title>
<authors>Nocco Giovanni Emanuele</authors>
<owners>[Genocs] Nocco Giovanni Emanuele</owners>
Expand All @@ -13,11 +13,11 @@
<readme>.\content\README_NUGET.md</readme>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<copyright>2024</copyright>
<summary>.NET8 Genocs Library Template to implement solution base on Genocs Library.</summary>
<description>.NET8 template designed for Genocs Library.</description>
<summary>Genocs Library Template to implement solution base on Genocs Library.</summary>
<description>Template designed for Genocs Library.</description>
<releaseNotes>
Relesase 1.2.0:
- Updated to Genocs Library to 6.4.0
Relesase 1.5.0:
- Updated to Genocs Library to 7.2.1
</releaseNotes>
<language>en-US</language>
<packageTypes>
Expand Down
2 changes: 1 addition & 1 deletion src/template/src/Contracts/Contracts.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Genocs.Core" Version="7.1.0" />
<PackageReference Include="Genocs.Core" Version="7.2.1" />
</ItemGroup>

</Project>
4 changes: 2 additions & 2 deletions src/template/src/Domain/Domain.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Genocs.Persistence.MongoDb" Version="7.1.0" />
<PackageReference Include="Genocs.Core" Version="7.1.0" />
<PackageReference Include="Genocs.Persistence.MongoDb" Version="7.2.1" />
<PackageReference Include="Genocs.Core" Version="7.2.1" />
</ItemGroup>

</Project>
1 change: 0 additions & 1 deletion src/template/src/WebApi/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
using Serilog;
using System.Reflection;


StaticLogger.EnsureInitialized();

var builder = WebApplication.CreateBuilder(args);
Expand Down
37 changes: 18 additions & 19 deletions src/template/src/WebApi/WebApi.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,29 +8,28 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Genocs.HTTP" Version="7.1.0" />
<PackageReference Include="Genocs.LoadBalancing.Fabio" Version="7.1.0" />
<PackageReference Include="Genocs.Logging" Version="7.1.0" />
<PackageReference Include="Genocs.MessageBrokers" Version="7.1.0" />
<PackageReference Include="Genocs.MessageBrokers.Outbox.MongoDB" Version="7.1.0" />
<PackageReference Include="Genocs.MessageBrokers.Outbox" Version="7.1.0" />
<PackageReference Include="Genocs.MessageBrokers.RabbitMQ" Version="7.1.0" />
<PackageReference Include="Genocs.Metrics" Version="7.1.0" />
<PackageReference Include="Genocs.Persistence.MongoDb" Version="7.1.0" />
<PackageReference Include="Genocs.Persistence.Redis" Version="7.1.0" />
<PackageReference Include="Genocs.Secrets.Vault" Version="7.1.0" />
<PackageReference Include="Genocs.Tracing" Version="7.1.0" />
<PackageReference Include="Genocs.WebApi.CQRS" Version="7.1.0" />
<PackageReference Include="Genocs.WebApi.Security" Version="7.1.0" />
<PackageReference Include="Genocs.WebApi.Swagger" Version="7.1.0" />
<PackageReference Include="Genocs.WebApi" Version="7.1.0" />
<PackageReference Include="Genocs.HTTP" Version="7.2.1" />
<PackageReference Include="Genocs.LoadBalancing.Fabio" Version="7.2.1" />
<PackageReference Include="Genocs.Logging" Version="7.2.1" />
<PackageReference Include="Genocs.MessageBrokers" Version="7.2.1" />
<PackageReference Include="Genocs.MessageBrokers.Outbox.MongoDB" Version="7.2.1" />
<PackageReference Include="Genocs.MessageBrokers.Outbox" Version="7.2.1" />
<PackageReference Include="Genocs.MessageBrokers.RabbitMQ" Version="7.2.1" />
<PackageReference Include="Genocs.Metrics" Version="7.2.1" />
<PackageReference Include="Genocs.Persistence.MongoDb" Version="7.2.1" />
<PackageReference Include="Genocs.Persistence.Redis" Version="7.2.1" />
<PackageReference Include="Genocs.Secrets.Vault" Version="7.2.1" />
<PackageReference Include="Genocs.Tracing" Version="7.2.1" />
<PackageReference Include="Genocs.WebApi.CQRS" Version="7.2.1" />
<PackageReference Include="Genocs.WebApi.Security" Version="7.2.1" />
<PackageReference Include="Genocs.WebApi.Swagger" Version="7.2.1" />
<PackageReference Include="Genocs.WebApi" Version="7.2.1" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="MassTransit.RabbitMQ" Version="8.3.2" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="MassTransit.RabbitMQ" Version="8.3.3" />
<PackageReference Include="Serilog.Sinks.ApplicationInsights" Version="4.0.0" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="7.1.0" />
<PackageReference Include="Swashbuckle.AspNetCore" Version="7.2.0" />
</ItemGroup>

<ItemGroup>
Expand Down
4 changes: 2 additions & 2 deletions src/template/src/Worker/Worker.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Genocs.Logging" Version="7.1.0" />
<PackageReference Include="Genocs.Logging" Version="7.2.1" />
<PackageReference Include="Genocs.Monitoring" Version="5.0.*" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="MassTransit.Extensions.DependencyInjection" Version="7.3.1" />
<PackageReference Include="MassTransit.RabbitMQ" Version="8.3.2" />
<PackageReference Include="MassTransit.RabbitMQ" Version="8.3.3" />
<PackageReference Include="Microsoft.VisualStudio.Azure.Containers.Tools.Targets" Version="1.21.0" />
<PackageReference Include="OpenTelemetry.Exporter.Console" Version="1.10.0" />
<PackageReference Include="OpenTelemetry.Exporter.Jaeger" Version="1.5.1" />
Expand Down
4 changes: 2 additions & 2 deletions src/template/webapi.dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.

FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS base
WORKDIR /app
EXPOSE 80
EXPOSE 443


FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build-env
WORKDIR /src

COPY ["src/WebApi/WebApi.csproj", "WebApi/"]
Expand Down
4 changes: 2 additions & 2 deletions src/template/worker.dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#See https://aka.ms/containerfastmode to understand how Visual Studio uses this Dockerfile to build your images for faster debugging.

FROM mcr.microsoft.com/dotnet/aspnet:8.0 AS base
FROM mcr.microsoft.com/dotnet/aspnet:9.0 AS base
WORKDIR /app
EXPOSE 80
EXPOSE 443

FROM mcr.microsoft.com/dotnet/sdk:8.0 AS build-env
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build-env
WORKDIR /src
COPY ["NuGet.config", "."]
COPY ["src/Worker/Worker.csproj", "Worker/"]
Expand Down

0 comments on commit 1e5f253

Please sign in to comment.