Skip to content

Commit baf38a9

Browse files
authored
V9.0.0/prepare for launch (#6)
📦 updated to centralized packages management (CPM) ⬆️ bump dependencies 💬 updated community health pages
1 parent 4b7419b commit baf38a9

File tree

7 files changed

+47
-90
lines changed

7 files changed

+47
-90
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ For more details, please refer to `PackageReleaseNotes.txt` on a per assembly ba
77
> [!NOTE]
88
> Changelog entries prior to version 8.4.0 was migrated from previous versions of Cuemon.Extensions.Asp.Versioning.
99
10-
## [9.0.0] - TBD
10+
## [9.0.0] - 2024-11-13
1111

1212
This major release is first and foremost focused on ironing out any wrinkles that have been introduced with .NET 9 preview releases so the final release is production ready together with the official launch from Microsoft.
1313

Directory.Build.props

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@
4242
</ItemGroup>
4343

4444
<ItemGroup Condition="'$(IsTestProject)' == 'false'">
45-
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="8.0.0" PrivateAssets="all" />
46-
<PackageReference Include="MinVer" Version="6.0.0" PrivateAssets="all" />
45+
<PackageReference Include="Microsoft.SourceLink.GitHub" PrivateAssets="all" />
46+
<PackageReference Include="MinVer" PrivateAssets="all" />
4747
<None Include="..\..\.nuget\icon.png" Pack="true" Visible="false" PackagePath="\" />
4848
<None Include="..\..\.nuget\$(MSBuildProjectName)\README.md" Pack="true" PackagePath="\" />
4949
</ItemGroup>
@@ -65,19 +65,19 @@
6565
</PropertyGroup>
6666

6767
<ItemGroup Condition="'$(IsTestProject)' == 'true'">
68-
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
69-
<PackageReference Include="xunit" Version="2.9.2" />
70-
<PackageReference Include="xunit.runner.console" Version="2.9.2" />
71-
<PackageReference Include="xunit.runner.visualstudio" Version="2.8.2" />
72-
<PackageReference Include="coverlet.msbuild" Version="6.0.2">
68+
<PackageReference Include="Microsoft.NET.Test.Sdk" />
69+
<PackageReference Include="xunit" />
70+
<PackageReference Include="xunit.runner.console" />
71+
<PackageReference Include="xunit.runner.visualstudio" />
72+
<PackageReference Include="coverlet.msbuild">
7373
<PrivateAssets>all</PrivateAssets>
7474
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
7575
</PackageReference>
76-
<PackageReference Include="coverlet.collector" Version="6.0.2">
76+
<PackageReference Include="coverlet.collector">
7777
<PrivateAssets>all</PrivateAssets>
7878
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
7979
</PackageReference>
80-
<PackageReference Include="Codebelt.Extensions.Xunit.App" Version="9.0.0-preview.10" />
80+
<PackageReference Include="Codebelt.Extensions.Xunit.App" />
8181
</ItemGroup>
8282

8383
</Project>

Directory.Packages.props

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<Project>
2+
<PropertyGroup>
3+
<ManagePackageVersionsCentrally>true</ManagePackageVersionsCentrally>
4+
</PropertyGroup>
5+
<ItemGroup>
6+
<PackageVersion Include="Asp.Versioning.Abstractions" Version="8.1.0" />
7+
<PackageVersion Include="Asp.Versioning.Http" Version="8.1.0" />
8+
<PackageVersion Include="Asp.Versioning.Mvc" Version="8.1.0" />
9+
<PackageVersion Include="Asp.Versioning.Mvc.ApiExplorer" Version="8.1.0" />
10+
<PackageVersion Include="Codebelt.Extensions.AspNetCore.Mvc.Formatters.Newtonsoft.Json" Version="9.0.0-rc.1" />
11+
<PackageVersion Include="Codebelt.Extensions.AspNetCore.Mvc.Formatters.Text.Yaml" Version="9.0.0-rc.1" />
12+
<PackageVersion Include="Codebelt.Extensions.Xunit.App" Version="9.0.0-rc.1" />
13+
<PackageVersion Include="Cuemon.AspNetCore" Version="9.0.0-rc.1" />
14+
<PackageVersion Include="Cuemon.Extensions.AspNetCore.Mvc" Version="9.0.0-rc.1" />
15+
<PackageVersion Include="Cuemon.Extensions.AspNetCore.Mvc.Formatters.Text.Json" Version="9.0.0-rc.1" />
16+
<PackageVersion Include="Cuemon.Extensions.AspNetCore.Mvc.Formatters.Xml" Version="9.0.0-rc.1" />
17+
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.11.1" />
18+
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="8.0.0" />
19+
<PackageVersion Include="MinVer" Version="6.0.0" />
20+
<PackageVersion Include="coverlet.collector" Version="6.0.2" />
21+
<PackageVersion Include="coverlet.msbuild" Version="6.0.2" />
22+
<PackageVersion Include="xunit" Version="2.9.2" />
23+
<PackageVersion Include="xunit.runner.console" Version="2.9.2" />
24+
<PackageVersion Include="xunit.runner.visualstudio" Version="2.8.2" />
25+
</ItemGroup>
26+
</Project>

src/Codebelt.Extensions.Asp.Versioning/Codebelt.Extensions.Asp.Versioning.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@
1010
</PropertyGroup>
1111

1212
<ItemGroup>
13-
<PackageReference Include="Asp.Versioning.Abstractions" Version="8.1.0" />
14-
<PackageReference Include="Asp.Versioning.Http" Version="8.1.0" />
15-
<PackageReference Include="Asp.Versioning.Mvc" Version="8.1.0" />
16-
<PackageReference Include="Asp.Versioning.Mvc.ApiExplorer" Version="8.1.0" />
17-
<PackageReference Include="Cuemon.AspNetCore" Version="9.0.0-preview.11" />
13+
<PackageReference Include="Asp.Versioning.Abstractions" />
14+
<PackageReference Include="Asp.Versioning.Http" />
15+
<PackageReference Include="Asp.Versioning.Mvc" />
16+
<PackageReference Include="Asp.Versioning.Mvc.ApiExplorer" />
17+
<PackageReference Include="Cuemon.AspNetCore" />
1818
</ItemGroup>
1919

2020
</Project>

src/Codebelt.Extensions.Asp.Versioning/RestfulApiVersioningOptions.cs

Lines changed: 0 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -13,48 +13,6 @@ namespace Codebelt.Extensions.Asp.Versioning
1313
/// <see cref="IValidatableParameterObject" />
1414
public class RestfulApiVersioningOptions : IValidatableParameterObject
1515
{
16-
#if NET6_0
17-
/// <summary>
18-
/// Initializes a new instance of the <see cref="RestfulApiVersioningOptions"/> class.
19-
/// </summary>
20-
/// <remarks>
21-
/// The following table shows the initial property values for an instance of <see cref="RestfulApiVersioningOptions"/>.
22-
/// <list type="table">
23-
/// <listheader>
24-
/// <term>Property</term>
25-
/// <description>Initial Value</description>
26-
/// </listheader>
27-
/// <item>
28-
/// <term><see cref="ApiVersionSelectorType"/></term>
29-
/// <description><c>typeof(CurrentImplementationApiVersionSelector)</c></description>
30-
/// </item>
31-
/// <item>
32-
/// <term><see cref="ProblemDetailsFactoryType"/></term>
33-
/// <description><c>typeof(RestfulProblemDetailsFactory)</c></description>
34-
/// </item>
35-
/// <item>
36-
/// <term><see cref="Conventions"/></term>
37-
/// <description><c>new ApiVersionConventionBuilder()</c></description>
38-
/// </item>
39-
/// <item>
40-
/// <term><see cref="DefaultApiVersion"/></term>
41-
/// <description><c>ApiVersion.Default</c></description>
42-
/// </item>
43-
/// <item>
44-
/// <term><see cref="ParameterName"/></term>
45-
/// <description><c>v</c></description>
46-
/// </item>
47-
/// <item>
48-
/// <term><see cref="ReportApiVersions"/></term>
49-
/// <description><c>false</c></description>
50-
/// </item>
51-
/// <item>
52-
/// <term><see cref="ValidAcceptHeaders"/></term>
53-
/// <description><c>application/json, application/xml, application/vnd</c></description>
54-
/// </item>
55-
/// </list>
56-
/// </remarks>
57-
#else
5816
/// <summary>
5917
/// Initializes a new instance of the <see cref="RestfulApiVersioningOptions"/> class.
6018
/// </summary>
@@ -95,13 +53,9 @@ public class RestfulApiVersioningOptions : IValidatableParameterObject
9553
/// </item>
9654
/// </list>
9755
/// </remarks>
98-
#endif
9956
public RestfulApiVersioningOptions()
10057
{
10158
ApiVersionSelectorType = typeof(CurrentImplementationApiVersionSelector);
102-
#if NET6_0
103-
ProblemDetailsFactoryType = typeof(RestfulProblemDetailsFactory);
104-
#endif
10559
Conventions = new ApiVersionConventionBuilder();
10660
DefaultApiVersion = ApiVersion.Default;
10761
ParameterName = "v";
@@ -119,26 +73,11 @@ public RestfulApiVersioningOptions()
11973
};
12074
}
12175

122-
#if NET6_0
123-
/// <summary>
124-
/// Specify what <see cref="IProblemDetailsFactory"/> to set on the <seealso cref="ProblemDetailsFactoryType"/>. Default is <see cref="RestfulProblemDetailsFactory"/>.
125-
/// </summary>
126-
/// <typeparam name="T">The type that implements the <see cref="IProblemDetailsFactory"/> interface.</typeparam>
127-
/// <returns>A reference to this instance so that additional calls can be chained.</returns>
128-
public RestfulApiVersioningOptions UseProblemDetailsFactory<T>() where T : class, IProblemDetailsFactory
129-
{
130-
ProblemDetailsFactoryType = typeof(T);
131-
return this;
132-
}
133-
#endif
134-
135-
#if NET8_0_OR_GREATER
13676
/// <summary>
13777
/// Gets or sets a value indicating whether responses will be based on the built in support for RFC 7807.
13878
/// </summary>
13979
/// <value><c>true</c> if the responses will be based on the built in support for RFC 7807; otherwise, <c>false</c>.</value>
14080
public bool UseBuiltInRfc7807 { get; set; }
141-
#endif
14281

14382
/// <summary>
14483
/// Gets or sets the valid accept headers used as a filter by <see cref="RestfulApiVersionReader"/>.
@@ -147,14 +86,6 @@ public RestfulApiVersioningOptions UseProblemDetailsFactory<T>() where T : class
14786
/// <remarks>This option was introduced to have an inclusive filter on what MIME types to consider valid when parsing HTTP Accept headers; for more information have a read at https://github.com/dotnet/aspnet-api-versioning/issues/887</remarks>
14887
public IList<string> ValidAcceptHeaders { get; set; }
14988

150-
#if NET6_0
151-
/// <summary>
152-
/// Gets the implementation type of the <see cref="IProblemDetailsFactory"/>.
153-
/// </summary>
154-
/// <value>The implementation type of the <see cref="IProblemDetailsFactory"/>.</value>
155-
public Type ProblemDetailsFactoryType { get; private set; }
156-
#endif
157-
15889
/// <summary>
15990
/// Specify what <see cref="IApiVersionSelector"/> to set on the <seealso cref="ApiVersionSelectorType"/>. Default is <see cref="CurrentImplementationApiVersionSelector"/>.
16091
/// </summary>

test/Codebelt.Extensions.Asp.Versioning.Tests/ApiVersionReaderTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
using Cuemon.Diagnostics;
1212
using Cuemon.Extensions.AspNetCore.Diagnostics;
1313
using Cuemon.Extensions.AspNetCore.Mvc.Filters;
14-
using Cuemon.Extensions.AspNetCore.Mvc.Formatters.Newtonsoft.Json;
14+
using Codebelt.Extensions.AspNetCore.Mvc.Formatters.Newtonsoft.Json;
1515
using Cuemon.Extensions.AspNetCore.Mvc.Formatters.Text.Json;
1616
using Cuemon.Extensions.AspNetCore.Mvc.Formatters.Xml;
1717
using Microsoft.AspNetCore.Builder;

test/Codebelt.Extensions.Asp.Versioning.Tests/Codebelt.Extensions.Asp.Versioning.Tests.csproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
</PropertyGroup>
66

77
<ItemGroup>
8-
<PackageReference Include="Cuemon.Extensions.AspNetCore.Mvc" Version="9.0.0-preview.11" />
9-
<PackageReference Include="Cuemon.Extensions.AspNetCore.Mvc.Formatters.Newtonsoft.Json" Version="9.0.0-preview.7" />
10-
<PackageReference Include="Cuemon.Extensions.AspNetCore.Mvc.Formatters.Text.Json" Version="9.0.0-preview.11" />
11-
<PackageReference Include="Cuemon.Extensions.AspNetCore.Mvc.Formatters.Xml" Version="9.0.0-preview.11" />
12-
<PackageReference Include="Codebelt.Extensions.AspNetCore.Mvc.Formatters.Text.Yaml" Version="9.0.0-preview.5" />
8+
<PackageReference Include="Cuemon.Extensions.AspNetCore.Mvc" />
9+
<PackageReference Include="Codebelt.Extensions.AspNetCore.Mvc.Formatters.Newtonsoft.Json" />
10+
<PackageReference Include="Cuemon.Extensions.AspNetCore.Mvc.Formatters.Text.Json" />
11+
<PackageReference Include="Cuemon.Extensions.AspNetCore.Mvc.Formatters.Xml" />
12+
<PackageReference Include="Codebelt.Extensions.AspNetCore.Mvc.Formatters.Text.Yaml" />
1313
</ItemGroup>
1414

1515
<ItemGroup>

0 commit comments

Comments
 (0)