Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate test projects to MSTest.Sdk #99

Merged
merged 1 commit into from
Oct 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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