Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Merge | PacketHandle.*.cs#3241

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
benrr101 merged 4 commits intomainfromdev/russellben/merge/packethandle
Mar 25, 2025
Merged

Conversation

benrr101
Copy link
Contributor

Description: Very simple move of PacketHandle.Windows.cs and PacketHandle.Unix from the netcore project to the common project. File names updated to reflect that they only apply to netcore.

Testing: Literally no functional changes, just moving files.

@benrr101benrr101 added the Common Project 🚮Things that relate to the common project project labelMar 24, 2025
@benrr101benrr101 requested review froma team andCopilotMarch 24, 2025 19:06
Copy link
Contributor

@CopilotCopilotAI 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 moves the PacketHandle.netcore.Windows.cs and PacketHandle.netcore.Unix.cs files from the netcore project to the common project while updating file names to clarify that they only apply to netcore.

  • Added conditional compilation directives (#if NET / #endif) to both files
  • Reformatted comments and updated multi-line lambda formatting for readability

Reviewed Changes

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

FileDescription
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/PacketHandle.netcore.Unix.csAdded #if NET wrapper and updated comment formatting and lambda method style
src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/PacketHandle.netcore.Windows.csAdded #if NET wrapper, updated comment formatting, lambda method style, and reordered field declarations
Files not reviewed (1)
  • src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj: Language not supported
Comments suppressed due to low confidence (1)

src/Microsoft.Data.SqlClient/src/Microsoft/Data/SqlClient/PacketHandle.netcore.Windows.cs:28

  • The reordered field declarations (NativePacket before NativePointer) may affect memory layout if the struct relies on a specific field order. Please confirm that this change is intentional and does not impact any layout-dependent logic.
public readonly SNIPacket NativePacket;

Copy link
Contributor

@paulmedynskipaulmedynski left a comment

Choose a reason for hiding this comment

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

Oops - are you compiling the Unix file?

@paulmedynskipaulmedynski self-assigned thisMar 25, 2025
@codecovCodecov
Copy link

codecovbot commentedMar 25, 2025
edited
Loading

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 72.80%. Comparing base(1247ca4) to head(62706fe).
Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@##             main    #3241      +/-   ##==========================================+ Coverage   72.69%   72.80%   +0.10%==========================================  Files         303      300       -3       Lines       59718    59611     -107     ==========================================- Hits        43414    43398      -16+ Misses      16304    16213      -91
FlagCoverage Δ
addons92.58% <ø> (ø)
netcore75.24% <100.00%> (+0.13%)⬆️
netfx71.42% <ø> (+0.04%)⬆️

Flags with carried forward coverage won't be shown.Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report?Share it here.

🚀 New features to boost your workflow:
  • ❄️Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Wraith2
Copy link
Contributor

The reason there are two files is that at the time the common practice in this library was to avoid using compiler directives and use msbuild conditions. Since then I think everyone involved has got tired of the complexity involved and the amount of difficulty debugging msbuild so it might be worth considering just combining the two files and using compiler directives.

/cc@David-Engel

David-Engel reacted with thumbs up emoji

@benrr101
Copy link
ContributorAuthor

@Wraith2 yes, the eventual plan is to use compiler directives for the different OS builds. Not there yet, but it's in the plan.

@benrr101benrr101 merged commit414f016 intomainMar 25, 2025
252 checks passed
@benrr101benrr101 deleted the dev/russellben/merge/packethandle branchMarch 25, 2025 23:16
@cheenamalhotracheenamalhotra added this to the6.1-preview1 milestoneMar 28, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

Copilot code reviewCopilotCopilot left review comments

@mdaiglemdaiglemdaigle approved these changes

@paulmedynskipaulmedynskipaulmedynski approved these changes

Assignees

@paulmedynskipaulmedynski

Labels
Common Project 🚮Things that relate to the common project project
Projects
None yet
Milestone
6.1-preview1
Development

Successfully merging this pull request may close these issues.

5 participants
@benrr101@Wraith2@mdaigle@paulmedynski@cheenamalhotra

[8]ページ先頭

©2009-2025 Movatter.jp