|
16 | 16 | <IncludeBuildOutput>false</IncludeBuildOutput> |
17 | 17 | </PropertyGroup> |
18 | 18 |
|
19 | | - <PropertyGroup Condition="'$(TargetFramework)'=='netcoreapp2.1'"> |
| 19 | + <PropertyGroup Condition="'$(TargetFramework)' == 'netcoreapp2.1'"> |
20 | 20 | <DefineConstants>NETSTANDARD</DefineConstants> |
21 | 21 | </PropertyGroup> |
22 | 22 |
|
23 | 23 | <ItemGroup> |
24 | 24 | <PackageReference Include="Mono.Cecil" Version="[0.10-*, 0.11)" /> |
25 | 25 | <PackageReference Include="Machine.Specifications" Version="[0.11.0,2.0.0)" PrivateAssets="All" /> |
26 | | - </ItemGroup> |
27 | | - |
28 | | - <ItemGroup Condition="'$(TargetFramework)'=='netcoreapp2.1'"> |
29 | | - <PackageReference Include="Microsoft.TestPlatform.ObjectModel" Version="[15.0.0,17.0.0)" PrivateAssets="All" /> |
30 | | - </ItemGroup> |
31 | | - <ItemGroup Condition="'$(TargetFramework)'=='net452'"> |
32 | | - <PackageReference Include="Microsoft.TestPlatform.ObjectModel" Version="11.0.0" PrivateAssets="All" /> |
| 26 | + <PackageReference Include="Microsoft.TestPlatform.ObjectModel" Version="16.10.0" PrivateAssets="All" /> |
33 | 27 | </ItemGroup> |
34 | 28 |
|
35 | 29 | <ItemGroup> |
|
40 | 34 | <TargetsForTfmSpecificContentInPackage>$(TargetsForTfmSpecificContentInPackage);NetCorePackageItems;NetFrameworkPackageItems</TargetsForTfmSpecificContentInPackage> |
41 | 35 | </PropertyGroup> |
42 | 36 |
|
| 37 | + <Target Name="PreventTestPlatformObjectModelCopyLocal" AfterTargets="ResolveReferences"> |
| 38 | + <ItemGroup> |
| 39 | + <ReferenceCopyLocalPaths Remove="@(ReferenceCopyLocalPaths)" Condition="'%(Filename)' == 'Microsoft.VisualStudio.TestPlatform.ObjectModel'" /> |
| 40 | + </ItemGroup> |
| 41 | + </Target> |
| 42 | + |
43 | 43 | <Target Name="NetCorePackageItems" Condition="'$(TargetFramework)' == 'netcoreapp2.1'"> |
44 | 44 | <ItemGroup> |
45 | 45 | <TfmSpecificPackageFile Include="*.props" PackagePath="build\$(TargetFramework)" /> |
46 | | - <TfmSpecificPackageFile Include="$(OutputPath)\*.dll" PackagePath="build\$(TargetFramework)" /> |
| 46 | + <TfmSpecificPackageFile Include="$(OutputPath)\Machine.*.dll" PackagePath="build\$(TargetFramework)" /> |
47 | 47 | </ItemGroup> |
48 | 48 | </Target> |
49 | 49 |
|
50 | | - <Target Name="NetFrameworkPackageItems" Condition="'$(TargetFramework)'=='net452'"> |
| 50 | + <Target Name="NetFrameworkPackageItems" Condition="'$(TargetFramework)' != 'netcoreapp2.1'"> |
51 | 51 | <ItemGroup> |
52 | 52 | <TfmSpecificPackageFile Include="*.props" PackagePath="build\$(TargetFramework)" /> |
53 | | - <TfmSpecificPackageFile Include="$(OutputPath)\Machine.Specifications.dll" PackagePath="build\$(TargetFramework)\" /> |
54 | | - <TfmSpecificPackageFile Include="$(OutputPath)\Machine.TestAdapter.dll" PackagePath="build\$(TargetFramework)" /> |
| 53 | + <TfmSpecificPackageFile Include="$(OutputPath)\Machine.*.dll" PackagePath="build\$(TargetFramework)" /> |
55 | 54 | <TfmSpecificPackageFile Include="$(OutputPath)\Mono.*.dll" PackagePath="build\$(TargetFramework)" /> |
56 | 55 | </ItemGroup> |
57 | 56 | </Target> |
|
0 commit comments