diff --git a/.github/workflows/build_nuget_dont_publish.yml b/.github/workflows/build_nuget_dont_publish.yml index 926224a..cfcc209 100644 --- a/.github/workflows/build_nuget_dont_publish.yml +++ b/.github/workflows/build_nuget_dont_publish.yml @@ -14,6 +14,7 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: | + 9.0.x 8.0.x 7.0.x diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 83166dd..a1325c8 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -26,6 +26,7 @@ jobs: uses: actions/setup-dotnet@v3 with: dotnet-version: | + 9.0.x 8.0.x 7.0.x diff --git a/.github/workflows/publish_nuget.yml b/.github/workflows/publish_nuget.yml index 9209aaf..10384c0 100644 --- a/.github/workflows/publish_nuget.yml +++ b/.github/workflows/publish_nuget.yml @@ -15,6 +15,7 @@ jobs: uses: actions/setup-dotnet@v1 with: dotnet-version: | + 9.0.x 8.0.x 7.0.x diff --git a/AltaSoft.DomainPrimitives.sln b/AltaSoft.DomainPrimitives.sln index 5778c0a..1a6da75 100644 --- a/AltaSoft.DomainPrimitives.sln +++ b/AltaSoft.DomainPrimitives.sln @@ -29,6 +29,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "GitHubActions", "GitHubActi .github\workflows\publish_nuget.yml = .github\workflows\publish_nuget.yml EndProjectSection EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AltaSoft.DomainPrimitives.SwaggerExtensions", "src\AltaSoft.DomainPrimitives.SwaggerExtensions\AltaSoft.DomainPrimitives.SwaggerExtensions.csproj", "{289BC781-8B67-4A15-87A9-198EEA255160}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -55,6 +57,10 @@ Global {E49201A0-DCC3-4ED2-A5A0-25DDD5E3D017}.Debug|Any CPU.Build.0 = Debug|Any CPU {E49201A0-DCC3-4ED2-A5A0-25DDD5E3D017}.Release|Any CPU.ActiveCfg = Release|Any CPU {E49201A0-DCC3-4ED2-A5A0-25DDD5E3D017}.Release|Any CPU.Build.0 = Release|Any CPU + {289BC781-8B67-4A15-87A9-198EEA255160}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {289BC781-8B67-4A15-87A9-198EEA255160}.Debug|Any CPU.Build.0 = Debug|Any CPU + {289BC781-8B67-4A15-87A9-198EEA255160}.Release|Any CPU.ActiveCfg = Release|Any CPU + {289BC781-8B67-4A15-87A9-198EEA255160}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/README.md b/README.md index ccd89a1..5c7fe41 100644 --- a/README.md +++ b/README.md @@ -557,7 +557,8 @@ public sealed class PositiveIntegerTypeConverter : Int32Converter ``` ## **Swagger Mappers** -A single file for all domainPrimitives containing all type mappings is generated. +A single file for all domainPrimitives containing all type mappings is generated. +**Please note that you need to manually add Swashbuckle.AspNetCore.SwaggerGen nuget package to the project** ```csharp //------------------------------------------------------------------------------ diff --git a/src/AltaSoft.DomainPrimitives.SwaggerExtensions/AltaSoft.DomainPrimitives.SwaggerExtensions.csproj b/src/AltaSoft.DomainPrimitives.SwaggerExtensions/AltaSoft.DomainPrimitives.SwaggerExtensions.csproj new file mode 100644 index 0000000..34931ce --- /dev/null +++ b/src/AltaSoft.DomainPrimitives.SwaggerExtensions/AltaSoft.DomainPrimitives.SwaggerExtensions.csproj @@ -0,0 +1,18 @@ + + + + net7.0;net8.0;net9.0 + + + + AltaSoft.DomainPrimitives.SwaggerExtensions + + + + + + + + + + \ No newline at end of file diff --git a/src/AltaSoft.DomainPrimitives/SwaggerGenOptionsExt.cs b/src/AltaSoft.DomainPrimitives.SwaggerExtensions/SwaggerGenOptionsExt.cs similarity index 98% rename from src/AltaSoft.DomainPrimitives/SwaggerGenOptionsExt.cs rename to src/AltaSoft.DomainPrimitives.SwaggerExtensions/SwaggerGenOptionsExt.cs index f382398..219b57b 100644 --- a/src/AltaSoft.DomainPrimitives/SwaggerGenOptionsExt.cs +++ b/src/AltaSoft.DomainPrimitives.SwaggerExtensions/SwaggerGenOptionsExt.cs @@ -6,7 +6,7 @@ // ReSharper disable UnusedMember.Global -namespace AltaSoft.DomainPrimitives; +namespace AltaSoft.DomainPrimitives.SwaggerExtensions; /// /// A static class providing methods to configure Swagger mappings for DomainPrimitive types. diff --git a/src/AltaSoft.DomainPrimitives.XmlDataTypes/AltaSoft.DomainPrimitives.XmlDataTypes.csproj b/src/AltaSoft.DomainPrimitives.XmlDataTypes/AltaSoft.DomainPrimitives.XmlDataTypes.csproj index 5adf491..f656d4a 100644 --- a/src/AltaSoft.DomainPrimitives.XmlDataTypes/AltaSoft.DomainPrimitives.XmlDataTypes.csproj +++ b/src/AltaSoft.DomainPrimitives.XmlDataTypes/AltaSoft.DomainPrimitives.XmlDataTypes.csproj @@ -1,7 +1,7 @@ - net7.0;net8.0 + net7.0;net8.0;net9.0 Domain Primitives XML Data Types Domain Primitives library for C# (XML Data Types). @@ -24,6 +24,10 @@ + + + + diff --git a/src/AltaSoft.DomainPrimitives/AltaSoft.DomainPrimitives.csproj b/src/AltaSoft.DomainPrimitives/AltaSoft.DomainPrimitives.csproj index 8f4c8d7..5100b23 100644 Binary files a/src/AltaSoft.DomainPrimitives/AltaSoft.DomainPrimitives.csproj and b/src/AltaSoft.DomainPrimitives/AltaSoft.DomainPrimitives.csproj differ