-
Notifications
You must be signed in to change notification settings - Fork 123
Release v32.2.2 #1206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Release v32.2.2 #1206
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -7,17 +7,17 @@ | |
| <Nullable>disable</Nullable> | ||
| <PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance> | ||
| <Copyright>Adyen</Copyright> | ||
| <Version>32.2.1</Version> | ||
| <AssemblyVersion>32.2.1</AssemblyVersion> | ||
| <FileVersion>32.2.1</FileVersion> | ||
| <Version>32.2.2</Version> | ||
| <AssemblyVersion>32.2.2</AssemblyVersion> | ||
| <FileVersion>32.2.2</FileVersion> | ||
|
Comment on lines
+11
to
+12
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| <GeneratePackageOnBuild>true</GeneratePackageOnBuild> | ||
| <IncludeSymbols>true</IncludeSymbols> | ||
| <IncludeSource>true</IncludeSource> | ||
| <Description>The Adyen API Library for .NET Core allows developers to interact with the Adyen APIs, including Hosted Payment Pages and the Terminal API.</Description> | ||
| <PackageProjectUrl>https://github.com/Adyen/adyen-dotnet-api-library</PackageProjectUrl> | ||
| <RepositoryUrl>https://github.com/Adyen/adyen-dotnet-api-library</RepositoryUrl> | ||
| <RepositoryType>git</RepositoryType> | ||
| <PackageTags>32.2.1</PackageTags> | ||
| <PackageTags>32.2.2</PackageTags> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Using the version number as a package tag is unconventional. |
||
| <PackageLicenseExpression>MIT</PackageLicenseExpression> | ||
| <Authors>Adyen</Authors> | ||
| <Company>Adyen</Company> | ||
|
|
@@ -29,7 +29,7 @@ | |
| <AssemblyOriginatorKeyFile>adyen-dotnet-api-library-key.snk</AssemblyOriginatorKeyFile> | ||
| <PackageIcon>adyen-logo.png</PackageIcon> | ||
| <PackageReadmeFile>README.md</PackageReadmeFile> | ||
| <PackageVersion>32.2.1</PackageVersion> | ||
| <PackageVersion>32.2.2</PackageVersion> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| <GenerateDocumentationFile>true</GenerateDocumentationFile> | ||
| <DocumentationFile>bin\$(Configuration)\$(TargetFramework)\$(AssemblyName).xml</DocumentationFile> | ||
| </PropertyGroup> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,6 +15,6 @@ public class ClientConfig | |
| public const string NexoProtocolVersion = "3.0"; | ||
|
|
||
| public const string LibName = "adyen-dotnet-api-library"; | ||
| public const string LibVersion = "32.2.1"; | ||
| public const string LibVersion = "32.2.2"; | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This hardcoded version string is another place where the version number is duplicated across the codebase. This increases the risk of inconsistencies during a release. To ensure this value is always in sync with the project version, consider reading it from the assembly's metadata at runtime. For example, you could change this using System.Reflection;
// ...
public static string LibVersion { get; } = typeof(ClientConfig).Assembly.GetCustomAttribute<System.Reflection.AssemblyInformationalVersionAttribute>()?.InformationalVersion;This would centralize your versioning and make releases less error-prone. |
||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 32.2.1 | ||
| 32.2.2 | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Having a separate |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To simplify version management and reduce redundancy, you can rely on the
Versionproperty.AssemblyVersion,FileVersion, andPackageVersionall default to the value ofVersionif not specified. You can remove the explicit declarations forAssemblyVersion,FileVersion, andPackageVersion.