Skip to content

Commit

Permalink
Migrate test projects to MSTest.Sdk (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
dfederm authored Oct 29, 2024
1 parent 9ed3ab4 commit cca3dae
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
1 change: 0 additions & 1 deletion Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@
<PackageVersion Include="Microsoft.VisualStudio.Services.BlobStore.Client" Version="$(ArtifactsPackageVersion)" />
<PackageVersion Include="Microsoft.VisualStudio.Services.BlobStore.Client.Cache" Version="$(ArtifactsPackageVersion)" />
<PackageVersion Include="Microsoft.VisualStudio.Services.PipelineCache.WebApi" Version="$(ArtifactsPackageVersion)" />
<PackageVersion Include="MSTest" Version="3.5.0" />
<!--
An indirect dependency of BXL (Minimatch) depends on a very old and non-existing version of NETStandard.Library (>= 1.0.0-rc2-23910).
This forces a good version of NETStandard.Library to mitigate.
Expand Down
5 changes: 5 additions & 0 deletions global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"msbuild-sdks": {
"MSTest.Sdk": "3.6.1"
}
}
3 changes: 1 addition & 2 deletions src/Common.Tests/Microsoft.MSBuildCache.Common.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="MSTest.Sdk">
<PropertyGroup>
<!-- Only supports x64 due to the RocksDB dependency -->
<Platform>x64</Platform>
Expand All @@ -11,7 +11,6 @@
<NoWarn>$(NoWarn);CA1034</NoWarn>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="MSTest" />
<PackageReference Include="morelinq" />
</ItemGroup>
<ItemGroup>
Expand Down
5 changes: 2 additions & 3 deletions src/Repack.Tests/Microsoft.MSBuildCache.Repack.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="MSTest.Sdk">
<PropertyGroup>
<!-- Only supports x64 due to the RocksDB dependency -->
<Platform>x64</Platform>
<Platforms>AnyCPU;x64</Platforms>
<Platforms>$(Platform)</Platforms>
<TargetFrameworks>net472;net8.0</TargetFrameworks>
<RootNamespace>Microsoft.MSBuildCache.Repack.Tests</RootNamespace>
<!-- Suppress "Avoid constant arrays as arguments". UTs have many one-off test data arrays. -->
Expand All @@ -11,7 +11,6 @@
<NoWarn>$(NoWarn);CA1034</NoWarn>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="MSTest" />
<PackageReference Include="morelinq" />
</ItemGroup>
<ItemGroup>
Expand Down

0 comments on commit cca3dae

Please sign in to comment.