Skip to content

Conversation

@DennisDyallo
Copy link
Collaborator

This pull request updates preprocessor directives to use NETFRAMEWORK instead of NET47 for conditional compilation. This change helps ensure compatibility with all .NET Framework versions, not just 4.7.

Platform compatibility updates:

  • Changed the preprocessor directive from NET47 to NETFRAMEWORK in Libraries.Net47.cs to generalize framework targeting.
  • Updated the conditional compilation check from !NET47 to !NETFRAMEWORK in Libraries.cs for consistency with the new directive.

Copy link
Contributor

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 pull request updates preprocessor directives to improve .NET Framework compatibility by replacing specific version targeting with broader framework targeting. The change ensures that the code properly compiles for all .NET Framework versions rather than being limited to version 4.7 specifically.

  • Updated conditional compilation from version-specific NET47 to framework-general NETFRAMEWORK
  • Ensured consistency between the two complementary files that use opposite preprocessor conditions

Reviewed Changes

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

File Description
Yubico.Core/src/Yubico/PlatformInterop/Libraries.cs Changed preprocessor directive from !NET47 to !NETFRAMEWORK for non-Framework builds
Yubico.Core/src/Yubico/PlatformInterop/Libraries.Net47.cs Changed preprocessor directive from NET47 to NETFRAMEWORK for Framework builds

@DennisDyallo DennisDyallo merged commit 5e4da23 into main Sep 17, 2025
4 checks passed
@DennisDyallo DennisDyallo deleted the release/1.14.0 branch September 17, 2025 15:04
@github-actions
Copy link

Code Coverage

Package Line Rate Branch Rate Complexity Health
Yubico.Core 40% 31% 4371
Yubico.YubiKey 51% 47% 21102
Summary 49% (36171 / 73593) 44% (8886 / 20109) 25473

Minimum allowed line rate is 40%

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant