Skip to content

Commit 6224f30

Browse files
Copilotstephentoub
andauthored
Suppress TimeProvider.Testing net472 warning (#1227)
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: stephentoub <2642209+stephentoub@users.noreply.github.com>
1 parent 6a4e4d2 commit 6224f30

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tests/ModelContextProtocol.Tests/ModelContextProtocol.Tests.csproj

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@
2121
<JsonSerializerIsReflectionEnabledByDefault>false</JsonSerializerIsReflectionEnabledByDefault>
2222
</PropertyGroup>
2323

24+
<PropertyGroup Condition="'$(TargetFramework)' == 'net472'">
25+
<!-- Suppress warning that Microsoft.Extensions.TimeProvider.Testing hasn't been tested with net472 -->
26+
<SuppressTfmSupportBuildWarnings>true</SuppressTfmSupportBuildWarnings>
27+
</PropertyGroup>
28+
2429
<PropertyGroup>
2530
<!-- Without this, tests are currently not showing results until all tests complete
2631
https://xunit.net/docs/getting-started/v3/microsoft-testing-platform

0 commit comments

Comments
 (0)