-
Notifications
You must be signed in to change notification settings - Fork 290
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
[Instrumentation.WCF] Switch .NET6 to .NET8 #2263
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2263 +/- ##
==========================================
+ Coverage 73.91% 78.34% +4.43%
==========================================
Files 267 29 -238
Lines 9615 702 -8913
==========================================
- Hits 7107 550 -6557
+ Misses 2508 152 -2356
Flags with carried forward coverage won't be shown. Click here to find out more. |
@@ -23,10 +23,10 @@ | |||
<Reference Include="System.ServiceModel" /> | |||
</ItemGroup> | |||
|
|||
<ItemGroup Condition="'$(TargetFramework)' == '$(NetStandardMinimumSupportedVersion)' OR '$(TargetFramework)' == 'net6.0' " > | |||
<ItemGroup Condition="'$(TargetFramework)' == '$(NetStandardMinimumSupportedVersion)' OR '$(TargetFramework)' == '$(NetMinimumSupportedVersion)' " > |
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.
I would switch this to detect .NETCoreApp
so it doesn't need adjustment if some other target (eg $(NetMinimumSupportedVersion);net9.0
) is added.
<ItemGroup Condition="'$(TargetFramework)' == '$(NetStandardMinimumSupportedVersion)' OR '$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
<PackageReference Include="System.Security.Cryptography.Xml" Version="4.7.1" />
<PackageReference Include="System.ServiceModel.Primitives" Version="4.7.0" />
<PackageReference Include="System.Drawing.Common" Version="4.7.2" Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'" />
</ItemGroup>
But also consider bumping to 8.0.0
versions for net8.0
+:
<ItemGroup Condition="'$(TargetFramework)' == '$(NetStandardMinimumSupportedVersion)'">
<PackageReference Include="System.ServiceModel.Primitives" Version="4.7.0" />
<!-- System.Security.Cryptography.Xml is indirect reference. It is needed to upgrade it directly to avoid https://github.com/advisories/GHSA-rxg9-xrhp-64gj -->
<PackageReference Include="System.Security.Cryptography.Xml" Version="4.7.1" />
</ItemGroup>
<ItemGroup Condition="'$(TargetFrameworkIdentifier)' == '.NETCoreApp'">
<PackageReference Include="System.ServiceModel.Primitives" Version="8.0.0" />
<!-- System.Security.Cryptography.Xml is indirect reference. It is needed to upgrade it directly to avoid https://github.com/advisories/GHSA-555c-2p6r-68mm -->
<PackageReference Include="System.Security.Cryptography.Xml" Version="8.0.2" />
</ItemGroup>
The 8.0.0
versions don't bring in System.Drawing.Common
at all. The current form will force System.Drawing.Common
onto users who may have already bumped to 8.0.0
to eliminate it 🤔
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.
First part done. Second deferred to #2274
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.
Some feedback, but LGTM
Follow up to #2243
Changes
[Instrumentation.WCF] Switch .NET6 to .NET8
Merge requirement checklist
CHANGELOG.md
files updated for non-trivial changes[ ] Changes in public API reviewed (if applicable)