Skip to content

Conversation

@eerhardt
Copy link
Member

@eerhardt eerhardt commented Oct 16, 2025

Without setting this property, the NuGet pacakges will raise an error saying the libraries don't support net462.

These libraries work correctly on .NET Framework and the unit tests are passing. So disable the NuGet MSBuild error.

cc @KalleOlaviNiemitalo

Microsoft Reviewers: Open in CodeFlow

Without setting this property, the NuGet pacakges will raise an error saying the libraries don't support net462.

These libraries work correctly on .NET Framework and the unit tests are passing. So disable the NuGet MSBuild error.
@eerhardt eerhardt changed the title Set DisableNETStandardCompatErrors Set DisableNETStandardCompatErrors in ServiceDiscovery libraries Oct 16, 2025
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

Adds a property to two ServiceDiscovery project files to suppress NETStandard compatibility errors during packing.

  • Introduces DisableNETStandardCompatErrors in the main ServiceDiscovery library.
  • Mirrors the same property in the abstractions project to align behavior.

Reviewed Changes

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

File Description
src/Libraries/Microsoft.Extensions.ServiceDiscovery/Microsoft.Extensions.ServiceDiscovery.csproj Adds DisableNETStandardCompatErrors property to suppress NETStandard compatibility errors.
src/Libraries/Microsoft.Extensions.ServiceDiscovery.Abstractions/Microsoft.Extensions.ServiceDiscovery.Abstractions.csproj Adds the same suppression property for consistency with the main library.

@joperezr joperezr merged commit 417bdfa into dotnet:main Oct 16, 2025
7 checks passed
This was referenced Nov 11, 2025
This was referenced Nov 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants