Skip to content

Drop support netstandard1.4, replace with net10.0#153

Closed
ATimmeh33 wants to merge 6 commits intomasterfrom
fix/drop-support-netstandard1.4
Closed

Drop support netstandard1.4, replace with net10.0#153
ATimmeh33 wants to merge 6 commits intomasterfrom
fix/drop-support-netstandard1.4

Conversation

@ATimmeh33
Copy link
Copy Markdown
Collaborator

@ATimmeh33 ATimmeh33 commented Sep 26, 2025

This pull request modernizes and simplifies the test infrastructure for handling API responses in the SignhostAPIClient.Tests project. The main changes include migrating test JSON data from embedded resources in .resx files to standalone .json files, introducing a utility class for loading these JSON files, and cleaning up obsolete code. Additionally, there are minor updates to documentation and build configuration.

Test infrastructure modernization:

  • Removed the auto-generated APIResponses.Designer.cs file, which previously provided access to embedded resource strings for test responses, in favor of a more maintainable approach using standalone .json files.
  • Added new .json files (AddTransaction.json, DeleteTransaction.json, GetTransaction.json, MinimalTransactionResponse.json, MockPostbackInvalid.json, AddOrReplaceFileMetaToTransaction.json) to the src/SignhostAPIClient.Tests/JSON/ directory to store test API responses as plain JSON. [1] [2] [3] [4] [5]
  • Introduced the JsonResources.cs class, which provides strongly-typed accessors for loading JSON test data from the new files, improving code readability and maintainability.

Build and documentation updates:

  • Updated the .NET version in the GitHub Actions workflow to use .NET 10.x instead of .NET 8.x, ensuring compatibility with future .NET releases.
  • Corrected class and variable names in the README.md example code to match the actual codebase (SignhostApiClientSettings and SignhostApiClient).

Minor cleanup:

  • Removed obsolete .ncrunchproject and .ncrunchsolution entries from .gitattributes to reduce clutter.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR modernizes the target framework support by dropping the legacy .NET Standard 1.4 framework and replacing it with .NET 8.0, while maintaining support for .NET Standard 2.0 and .NET Framework 4.6.2.

  • Replaced netstandard1.4 target framework with net8.0 in the project file
  • Updated conditional compilation directives to use NET8_0 instead of NETSTANDARD1_4
  • Removed netstandard1.4-specific package dependencies that are no longer needed

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
SignhostAPIClient.csproj Updated target frameworks and conditional defines, removed legacy package references
StreamContentDigestOptionsExtensions.cs Updated preprocessor directives to target NET8_0 instead of NETSTANDARD1_4

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@ATimmeh33 ATimmeh33 force-pushed the fix/drop-support-netstandard1.4 branch from c142dcc to efd01b0 Compare November 21, 2025 18:08
@ATimmeh33 ATimmeh33 changed the title Drop support netstandard1.4, replace with net8.0 Drop support netstandard1.4, replace with net10.0 Nov 21, 2025
Modernizes the codebase by upgrading to .NET 10, enabling use of newer language features and APIs.
Removes legacy netstandard1.4 support and related conditional logic to simplify maintenance.
Improves compatibility with future .NET releases.
- Replaced Newtonsoft.Json with System.Text.Json for JSON serialization and deserialization across the API client.
- Updated interfaces and classes to reflect consistent naming conventions (e.g., ISignHostApiClient to ISignhostApiClient).
- Removed obsolete JsonConverter classes that were specific to Newtonsoft.Json.
- Introduced centralized JSON serializer options in SignhostJsonSerializerOptions for consistent serialization behavior.
- Added new JSON test resources for various transaction scenarios to ensure compatibility with the updated serialization logic.
@ATimmeh33 ATimmeh33 force-pushed the fix/drop-support-netstandard1.4 branch from efd01b0 to f22fc4b Compare November 21, 2025 18:10
@ATimmeh33
Copy link
Copy Markdown
Collaborator Author

@ATimmeh33 ATimmeh33 closed this Dec 1, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants