Skip to content

Commit

Permalink
Fix tests locally and in CI
Browse files Browse the repository at this point in the history
When tests run locally from within VS, we use net472 so that TestDriven can run them quickly. In CI, we use net5, which requires Microsoft.TestPlatform.ObjectModel (see microsoft/vstest#2469 (comment))
  • Loading branch information
jzabroski committed Jan 4, 2021
1 parent 1702c09 commit eb6aec4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/RazorLight.Tests/RazorLight.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
<ItemGroup Condition="'$(TargetFramework)' == 'net472'">
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.3" />
<PackageReference Include="Microsoft.TestPlatform.ObjectModel" Version="16.8.3" />
<PackageReference Include="Microsoft.Extensions.DependencyModel" Version="2.1.0" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="2.1.0" />
</ItemGroup>
Expand Down

0 comments on commit eb6aec4

Please sign in to comment.