Skip to content

Suppress TimeProvider.Testing net472 warning#1227

Merged
stephentoub merged 2 commits intomainfrom
copilot/suppress-warning-tfm-support
Jan 30, 2026
Merged

Suppress TimeProvider.Testing net472 warning#1227
stephentoub merged 2 commits intomainfrom
copilot/suppress-warning-tfm-support

Conversation

Copy link
Contributor

Copilot AI commented Jan 30, 2026

Microsoft.Extensions.TimeProvider.Testing 10.1.0 emits a build warning when targeting net472, stating the package hasn't been tested with that framework.

Changes

  • Add SuppressTfmSupportBuildWarnings property conditional on net472 target framework in ModelContextProtocol.Tests.csproj
<PropertyGroup Condition="'$(TargetFramework)' == 'net472'">
  <!-- Suppress warning that Microsoft.Extensions.TimeProvider.Testing hasn't been tested with net472 -->
  <SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings>
</PropertyGroup>

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
Copilot AI changed the title [WIP] Suppress warning for unsupported TargetFramework version Suppress TimeProvider.Testing net472 warning Jan 30, 2026
Copilot AI requested a review from stephentoub January 30, 2026 22:19
@stephentoub stephentoub marked this pull request as ready for review January 30, 2026 22:23
@stephentoub stephentoub requested a review from ericstj January 30, 2026 22:23
@stephentoub stephentoub enabled auto-merge (squash) January 30, 2026 22:45
@stephentoub stephentoub merged commit 6224f30 into main Jan 30, 2026
16 of 17 checks passed
@stephentoub stephentoub deleted the copilot/suppress-warning-tfm-support branch January 30, 2026 22:56
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