Skip to content

Commit 6b03f24

Browse files
Remove unnecessary project configuration.
1 parent 7593f71 commit 6b03f24

1 file changed

Lines changed: 4 additions & 11 deletions

File tree

tests/ModelContextProtocol.Tests/ModelContextProtocol.Tests.csproj

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,13 @@
99
<IsPackable>false</IsPackable>
1010
<IsTestProject>true</IsTestProject>
1111
<RootNamespace>ModelContextProtocol.Tests</RootNamespace>
12-
<!-- The target framework to use for the test server. Defaults to the current TFM. -->
13-
<TestServerTargetFramework>$(TargetFramework)</TestServerTargetFramework>
1412
</PropertyGroup>
1513

1614
<PropertyGroup Condition="'$(TargetFramework)' == 'net9.0'">
1715
<!-- For better test coverage, only disable reflection in one of the targets -->
1816
<JsonSerializerIsReflectionEnabledByDefault>false</JsonSerializerIsReflectionEnabledByDefault>
1917
</PropertyGroup>
2018

21-
<PropertyGroup Condition="'$(TargetFramework)' == 'net472'">
22-
<!-- Test servers don't support netfx, so hardcode to net8.0 in that case. -->
23-
<TestServerTargetFramework>net8.0</TestServerTargetFramework>
24-
</PropertyGroup>
25-
2619
<PropertyGroup>
2720
<!-- Without this, tests are currently not showing results until all tests complete
2821
https://xunit.net/docs/getting-started/v3/microsoft-testing-platform
@@ -74,16 +67,16 @@
7467
</ItemGroup>
7568

7669
<ItemGroup>
77-
<Content Condition="$([MSBuild]::IsOSPlatform('Windows'))" Include="$([System.IO.Path]::GetFullPath('$(ArtifactsBinDir)ModelContextProtocol.TestServer\$(Configuration)'))\$(TestServerTargetFramework)\TestServer.exe">
70+
<Content Condition="$([MSBuild]::IsOSPlatform('Windows'))" Include="$([System.IO.Path]::GetFullPath('$(ArtifactsBinDir)ModelContextProtocol.TestServer\$(Configuration)'))\$(TargetFramework)\TestServer.exe">
7871
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
7972
</Content>
80-
<Content Condition="$([MSBuild]::IsOSPlatform('Linux'))" Include="$([System.IO.Path]::GetFullPath('$(ArtifactsBinDir)ModelContextProtocol.TestServer\$(Configuration)'))\$(TestServerTargetFramework)\TestServer.dll">
73+
<Content Condition="$([MSBuild]::IsOSPlatform('Linux'))" Include="$([System.IO.Path]::GetFullPath('$(ArtifactsBinDir)ModelContextProtocol.TestServer\$(Configuration)'))\$(TargetFramework)\TestServer.dll">
8174
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
8275
</Content>
83-
<Content Condition="$([MSBuild]::IsOSPlatform('Windows'))" Include="$([System.IO.Path]::GetFullPath('$(ArtifactsBinDir)TestServerWithHosting\$(Configuration)'))\$(TestServerTargetFramework)\TestServerWithHosting.exe">
76+
<Content Condition="$([MSBuild]::IsOSPlatform('Windows'))" Include="$([System.IO.Path]::GetFullPath('$(ArtifactsBinDir)TestServerWithHosting\$(Configuration)'))\$(TargetFramework)\TestServerWithHosting.exe">
8477
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
8578
</Content>
86-
<Content Condition="$([MSBuild]::IsOSPlatform('Linux'))" Include="$([System.IO.Path]::GetFullPath('$(ArtifactsBinDir)TestServerWithHosting\$(Configuration)'))\$(TestServerTargetFramework)\TestServerWithHosting.dll">
79+
<Content Condition="$([MSBuild]::IsOSPlatform('Linux'))" Include="$([System.IO.Path]::GetFullPath('$(ArtifactsBinDir)TestServerWithHosting\$(Configuration)'))\$(TargetFramework)\TestServerWithHosting.dll">
8780
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
8881
</Content>
8982
</ItemGroup>

0 commit comments

Comments
 (0)