Skip to content

Conversation

@benrr101
Copy link
Contributor

Description

This PR is the first in the next series towards a single MDS csproj. There are a handful of files that were left behind in the separate projects that could be easily swept up.

  • netcore/MatchingRefApiCompatBaseline.txt - deleted, not referenced anywhere.
  • netcore/Microsoft.Data.SqlClient.TypeForwards.cs - moved to TypeForwards.netcore.cs in common project
  • netcore/.editorconfig - removed in favor of solution-wide .editorconfig
  • netcore/PinvokeAnalyzerExceptionList.analyzerdata.netcoreapp - removed, (if this does what I think it does) replaced with APIScan
  • netfx/.editorconfig - removed in favor of solution-wide .editorconfig
  • netfx/GenerateThisAssemblyCs.targets - removed in favor of using the same one as netcore, only difference is it adds the NugetPackageVersion constant to the netfx assembly. This seems acceptable because it is internal only.

Issues

N/A, but continues from #1261 which was sort of the "common project" issue.

Testing

Projects still build, but CI (and likely an official build) will need to be used to verify.

@benrr101 benrr101 added this to the 7.0.0-preview3 milestone Nov 18, 2025
@benrr101 benrr101 requested a review from a team as a code owner November 18, 2025 22:17
@benrr101 benrr101 added the Common Project 🚮 Things that relate to the common project project label Nov 18, 2025
Copilot AI review requested due to automatic review settings November 18, 2025 22:17
Copilot finished reviewing on behalf of benrr101 November 18, 2025 22:20
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 PR consolidates duplicate configuration files and moves shared code to common locations as part of the ongoing work toward a single Microsoft.Data.SqlClient csproj structure.

  • Removes obsolete and duplicate files from platform-specific directories
  • Consolidates build targets and type forwards to shared locations
  • Standardizes configuration files across the solution

Reviewed Changes

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

Show a summary per file
File Description
src/Microsoft.Data.SqlClient/src/TypeForwards.netcore.cs Added #if NET conditional compilation guards to ensure type forwards only apply to .NET Core/5+ builds
src/Microsoft.Data.SqlClient/netfx/tools/targets/GenerateThisAssemblyCs.targets Deleted platform-specific version in favor of common targets file
src/Microsoft.Data.SqlClient/netfx/src/Microsoft.Data.SqlClient.csproj Updated to reference common GenerateThisAssemblyCs.targets using $(ToolsDir) variable
src/Microsoft.Data.SqlClient/netfx/src/.editorconfig Deleted platform-specific editor config; solution-wide .editorconfig at repository root now applies
src/Microsoft.Data.SqlClient/netcore/src/PinvokeAnalyzerExceptionList.analyzerdata.netcoreapp Deleted analyzer exception list, superseded by APIScan
src/Microsoft.Data.SqlClient/netcore/src/Microsoft.Data.SqlClient.csproj Updated to reference common TypeForwards.netcore.cs using $(CommonSourceRoot) variable
src/Microsoft.Data.SqlClient/netcore/src/MatchingRefApiCompatBaseline.txt Deleted unreferenced API compatibility baseline file
src/Microsoft.Data.SqlClient/netcore/src/.editorconfig Deleted platform-specific editor config; solution-wide .editorconfig at repository root now applies

@priyankatiwari08 priyankatiwari08 self-assigned this Nov 19, 2025
@paulmedynski paulmedynski self-assigned this Nov 19, 2025
@benrr101 benrr101 merged commit 70ec559 into main Nov 21, 2025
508 of 514 checks passed
@benrr101 benrr101 deleted the dev/russellben/delete-extraneous branch November 21, 2025 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Common Project 🚮 Things that relate to the common project project

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants