Skip to content

Conversation

@WeihanLi
Copy link

@WeihanLi WeihanLi commented Nov 24, 2025

Motivation and Context

Starting with .NET 8, Source Link for the following source control providers is included in the .NET SDK and enabled by default:

GitHub or GitHub Enterprise
Azure Repos git repositories (formerly known as Visual Studio Team Services)
GitLab 12.0+ (for older versions see GitLab settings)
Bitbucket 4.7+ (for older versions see Bitbucket settings)
If your project uses .NET SDK 8+ and is hosted by the above providers it does not need to reference any Source Link packages or set any build properties to include source control information in the PDB.

https://github.com/dotnet/sourcelink

Description

Removed SourceLink package reference since not necessary

Contribution Checklist

  • The code builds clean without any errors or warnings
  • The PR follows the Contribution Guidelines
  • All unit tests pass, and I have added new tests where possible
  • Is this a breaking change? If yes, add "[BREAKING]" prefix to the title of the PR.

Removed SourceLink package reference since not necessary
Copilot AI review requested due to automatic review settings November 24, 2025 10:06
@github-actions github-actions bot changed the title Remove SourceLink package reference .NET: Remove SourceLink package reference Nov 24, 2025
Copilot finished reviewing on behalf of WeihanLi November 24, 2025 10:08
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 removes the Microsoft.SourceLink.GitHub package reference from the NuGet package configuration, as it's no longer needed for .NET 8+ projects hosted on GitHub (SourceLink is now included in the SDK by default).

Key Changes:

  • Removed the Microsoft.SourceLink.GitHub package reference and associated comments from nuget-package.props

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants