Skip to content

Conversation

yousif-bugsnag
Copy link
Contributor

@yousif-bugsnag yousif-bugsnag commented Mar 24, 2025

Goal

Adds a net6.0 target framework for the Bugsnag and Bugsnag.AspNet.Core packages and updates project references accordingly.

Design

Many of the package references (nuget dependencies) for these projects are provided by the .NET platform/framework and only require a nuget package reference when targeting netstandard.

By targeting net6.0 and restricting these package references to the netstandard2.0 target, consuming projects on .NET 6+ will not need to pull in unnecessary nuget dependencies for packages that are provided by the platform/runtime, while projects that still need to use the netstandard2.0 dll can continue to do so.

In addition, I've removed the DisableImplicitFrameworkReferences config and removed unnecessary framework references from the project files. This was an outdated approach from the early days of netstandard that is no longer required/recommended for netstandard2.0 (see https://github.com/dotnet/standard/blob/release/2.0.0/docs/faq.md#should-i-reference-the-meta-package-or-should-i-reference-individual-packages).

Testing

Tested manually

twometresteve
twometresteve previously approved these changes Mar 25, 2025
Copy link
Contributor

@twometresteve twometresteve left a comment

Choose a reason for hiding this comment

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

My only comment is should we have a CHANGELOG entry for this?

@yousif-bugsnag
Copy link
Contributor Author

I'm planning to do the changelog separately as part of the release PR

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.

2 participants