Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Oct 14, 2025

Summary

This PR adds the required <Workstream>, <Stage>, and <PackageValidationBaselineVersion> metadata properties to all ServiceDiscovery library .csproj files to ensure packages are built and generated correctly.

Changes

Added a new <PropertyGroup> section to each ServiceDiscovery project containing:

<PropertyGroup>
  <Workstream>ServiceDiscovery</Workstream>
  <Stage>normal</Stage>
  <PackageValidationBaselineVersion>9.5.1</PackageValidationBaselineVersion>
</PropertyGroup>

Affected Projects

  • Microsoft.Extensions.ServiceDiscovery.Abstractions
  • Microsoft.Extensions.ServiceDiscovery
  • Microsoft.Extensions.ServiceDiscovery.Dns
  • Microsoft.Extensions.ServiceDiscovery.Yarp

These metadata properties are used by the build and packaging infrastructure to properly categorize and process the ServiceDiscovery libraries, following the same pattern used by other library workstreams in this repository (AI, Telemetry, Resilience, etc.). The PackageValidationBaselineVersion is set to 9.5.1 to fix build validation issues.

Fixes #6868

Original prompt

The ServiceDiscovery libraries added in PR #6868 need the additional metadata properties <Workstream> and <Stage> to ensure packages are built and generated correctly. This change involves updating all relevant .csproj files for the ServiceDiscovery libraries to include the following lines:

  <PropertyGroup>
    <Workstream>ServiceDiscovery</Workstream>
    <Stage>normal</Stage>
  </PropertyGroup>

The affected files are:

  1. src/Libraries/Microsoft.Extensions.ServiceDiscovery.Abstractions/Microsoft.Extensions.ServiceDiscovery.Abstractions.csproj
  2. src/Libraries/Microsoft.Extensions.ServiceDiscovery/Microsoft.Extensions.ServiceDiscovery.csproj
  3. src/Libraries/Microsoft.Extensions.ServiceDiscovery.Dns/Microsoft.Extensions.ServiceDiscovery.Dns.csproj
  4. src/Libraries/Microsoft.Extensions.ServiceDiscovery.Yarp/Microsoft.Extensions.ServiceDiscovery.Yarp.csproj

These changes ensure the correct build and packaging process for ServiceDiscovery libraries.

This pull request was created as a result of the following prompt from Copilot chat.

The ServiceDiscovery libraries added in PR #6868 need the additional metadata properties <Workstream> and <Stage> to ensure packages are built and generated correctly. This change involves updating all relevant .csproj files for the ServiceDiscovery libraries to include the following lines:

  <PropertyGroup>
    <Workstream>ServiceDiscovery</Workstream>
    <Stage>normal</Stage>
  </PropertyGroup>

The affected files are:

  1. src/Libraries/Microsoft.Extensions.ServiceDiscovery.Abstractions/Microsoft.Extensions.ServiceDiscovery.Abstractions.csproj
  2. src/Libraries/Microsoft.Extensions.ServiceDiscovery/Microsoft.Extensions.ServiceDiscovery.csproj
  3. src/Libraries/Microsoft.Extensions.ServiceDiscovery.Dns/Microsoft.Extensions.ServiceDiscovery.Dns.csproj
  4. src/Libraries/Microsoft.Extensions.ServiceDiscovery.Yarp/Microsoft.Extensions.ServiceDiscovery.Yarp.csproj

These changes ensure the correct build and packaging process for ServiceDiscovery libraries.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Microsoft Reviewers: Open in CodeFlow

Co-authored-by: joperezr <13854455+joperezr@users.noreply.github.com>
Copilot AI changed the title [WIP] Update .csproj files to add Workstream and Stage metadata Add Workstream and Stage metadata properties to ServiceDiscovery libraries Oct 14, 2025
Copilot finished work on behalf of joperezr October 14, 2025 18:40
Copilot AI requested a review from joperezr October 14, 2025 18:40
@joperezr joperezr requested a review from eerhardt October 14, 2025 18:54
@joperezr joperezr marked this pull request as ready for review October 14, 2025 18:54
Copilot AI review requested due to automatic review settings October 14, 2025 18:54
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 adds required <Workstream> and <Stage> metadata properties to all ServiceDiscovery library project files to ensure proper build and packaging infrastructure support.

  • Adds <Workstream>ServiceDiscovery</Workstream> and <Stage>normal</Stage> properties to four ServiceDiscovery libraries
  • Follows the established pattern used by other library workstreams in the repository
  • Enables correct categorization and processing by the build infrastructure

Reviewed Changes

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

File Description
Microsoft.Extensions.ServiceDiscovery.csproj Added metadata PropertyGroup for core ServiceDiscovery library
Microsoft.Extensions.ServiceDiscovery.Yarp.csproj Added metadata PropertyGroup for YARP integration library
Microsoft.Extensions.ServiceDiscovery.Dns.csproj Added metadata PropertyGroup for DNS provider library
Microsoft.Extensions.ServiceDiscovery.Abstractions.csproj Added metadata PropertyGroup for abstractions library

@joperezr
Copy link
Member

@copilot in order to fix the build issues, please also add the following property to all 4 projects: <PackageValidationBaselineVersion>9.5.1</PackageValidationBaselineVersion>

Co-authored-by: joperezr <13854455+joperezr@users.noreply.github.com>
Copy link
Contributor Author

Copilot AI commented Oct 14, 2025

@copilot in order to fix the build issues, please also add the following property to all 4 projects: <PackageValidationBaselineVersion>9.5.1</PackageValidationBaselineVersion>

Added <PackageValidationBaselineVersion>9.5.1</PackageValidationBaselineVersion> to all 4 ServiceDiscovery projects in commit 4fbe2dd.

Copilot AI changed the title Add Workstream and Stage metadata properties to ServiceDiscovery libraries Add Workstream, Stage, and PackageValidationBaselineVersion metadata to ServiceDiscovery libraries Oct 14, 2025
Copilot AI requested a review from joperezr October 14, 2025 18:59
Copilot finished work on behalf of joperezr October 14, 2025 18:59
@joperezr joperezr requested a review from a team as a code owner October 14, 2025 19:47
…ojects

Replace PackageIconFullPath with StrongNameKeyId and add MinCodeCoverage/MinMutationScore properties in ServiceDiscovery, ServiceDiscovery.Abstractions, ServiceDiscovery.Dns, and ServiceDiscovery.Yarp .csproj files. Also add empty .json placeholder files for ServiceDiscovery and ServiceDiscovery.Abstractions.
@joperezr joperezr merged commit 58e7bc7 into main Oct 15, 2025
6 checks passed
@joperezr joperezr deleted the copilot/update-csproj-for-service-discovery branch October 15, 2025 19:44
This was referenced Nov 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants