|
9 | 9 | <IsPackable>false</IsPackable> |
10 | 10 | <IsTestProject>true</IsTestProject> |
11 | 11 | <RootNamespace>ModelContextProtocol.Tests</RootNamespace> |
12 | | - <!-- The target framework to use for the test server. Defaults to the current TFM. --> |
13 | | - <TestServerTargetFramework>$(TargetFramework)</TestServerTargetFramework> |
14 | 12 | </PropertyGroup> |
15 | 13 |
|
16 | 14 | <PropertyGroup Condition="'$(TargetFramework)' == 'net9.0'"> |
17 | 15 | <!-- For better test coverage, only disable reflection in one of the targets --> |
18 | 16 | <JsonSerializerIsReflectionEnabledByDefault>false</JsonSerializerIsReflectionEnabledByDefault> |
19 | 17 | </PropertyGroup> |
20 | 18 |
|
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 | | - |
26 | 19 | <PropertyGroup> |
27 | 20 | <!-- Without this, tests are currently not showing results until all tests complete |
28 | 21 | https://xunit.net/docs/getting-started/v3/microsoft-testing-platform |
|
74 | 67 | </ItemGroup> |
75 | 68 |
|
76 | 69 | <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"> |
78 | 71 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
79 | 72 | </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"> |
81 | 74 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
82 | 75 | </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"> |
84 | 77 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
85 | 78 | </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"> |
87 | 80 | <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory> |
88 | 81 | </Content> |
89 | 82 | </ItemGroup> |
|
0 commit comments