Skip to content

Commit

Permalink
Update testing dependencies
Browse files Browse the repository at this point in the history
Fixes incompatibility with .NET 8 and references to obsolete .NET Core
3.1.
  • Loading branch information
Alex Davidson committed Dec 13, 2023
1 parent d709b47 commit d5de565
Show file tree
Hide file tree
Showing 25 changed files with 118 additions and 152 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,15 @@
<Version>2.0.12</Version>
</PackageReference>
<PackageReference Include="NUnit">
<Version>3.12.0</Version>
<Version>3.14.0</Version>
</PackageReference>
<PackageReference Include="NUnit.ConsoleRunner">
<Version>3.10.0</Version>
<Version>3.16.3</Version>
</PackageReference>
<PackageReference Include="NUnit.Extension.TeamCityEventListener">
<Version>1.0.7</Version>
<Version>1.0.9</Version>
</PackageReference>
</ItemGroup>
<Import Project="Bluewire.Common.GitWrapper.IntegrationTests.targets" />
<Import Project="..\StyleCopAnalyzers.props" />
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<!-- Force generation of binding redirects for library projects, ie. test projects. See https://github.com/microsoft/msbuild/issues/1310 -->
<Target Name="ForceGenerationOfBindingRedirects"
AfterTargets="ResolveAssemblyReferences"
BeforeTargets="GenerateBindingRedirects"
Condition="'$(AutoGenerateBindingRedirects)' == 'true'">
<PropertyGroup>
<!-- Needs to be set in a target because it has to be set after the initial evaluation in the MS common targets -->
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
</PropertyGroup>
</Target>
</Project>
19 changes: 0 additions & 19 deletions Bluewire.Common.GitWrapper.IntegrationTests/app.config

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net48;netcoreapp3.1</TargetFrameworks>
<TargetFrameworks>net48;net6</TargetFrameworks>
</PropertyGroup>
<ItemGroup>
<None Remove="*.ncrunchproject" />
Expand All @@ -11,12 +11,12 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="5.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.3" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="NUnit">
<Version>3.12.0</Version>
<Version>3.14.0</Version>
</PackageReference>
<PackageReference Include="NUnit3TestAdapter" Version="3.17.0" />
<PackageReference Include="TeamCity.VSTest.TestAdapter" Version="1.0.23" />
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" />
<PackageReference Include="TeamCity.VSTest.TestAdapter" Version="1.0.38" />
</ItemGroup>
<Import Project="..\StyleCopAnalyzers.props" />
</Project>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net48;netcoreapp3.1</TargetFrameworks>
<TargetFrameworks>net48;net6</TargetFrameworks>
</PropertyGroup>
<ItemGroup>
<None Remove="*.ncrunchproject" />
Expand All @@ -14,12 +14,12 @@
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.3" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="NUnit">
<Version>3.12.0</Version>
<Version>3.14.0</Version>
</PackageReference>
<PackageReference Include="NUnit3TestAdapter" Version="3.17.0" />
<PackageReference Include="TeamCity.VSTest.TestAdapter" Version="1.0.23" />
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" />
<PackageReference Include="TeamCity.VSTest.TestAdapter" Version="1.0.38" />
</ItemGroup>
<Import Project="..\StyleCopAnalyzers.props" />
</Project>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net48</TargetFrameworks>
Expand All @@ -9,15 +9,15 @@
<PackageReference Include="Bluewire.Common.Console.NUnit3">
<Version>9.2.2</Version>
</PackageReference>
<PackageReference Include="Moq" Version="4.16.1" />
<PackageReference Include="Moq" Version="4.20.70" />
<PackageReference Include="NUnit">
<Version>3.12.0</Version>
<Version>3.14.0</Version>
</PackageReference>
<PackageReference Include="NUnit.ConsoleRunner">
<Version>3.10.0</Version>
<Version>3.16.3</Version>
</PackageReference>
<PackageReference Include="NUnit.Extension.TeamCityEventListener">
<Version>1.0.7</Version>
<Version>1.0.9</Version>
</PackageReference>
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="5.0.0" />
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="4.6.0" />
Expand All @@ -26,5 +26,6 @@
<ProjectReference Include="..\Bluewire.Stash.Tool\Bluewire.Stash.Tool.csproj" />
<ProjectReference Include="..\Bluewire.Stash\Bluewire.Stash.csproj" />
</ItemGroup>
<Import Project="Bluewire.Stash.IntegrationTests.targets" />
<Import Project="..\StyleCopAnalyzers.props" />
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<!-- Force generation of binding redirects for library projects, ie. test projects. See https://github.com/microsoft/msbuild/issues/1310 -->
<Target Name="ForceGenerationOfBindingRedirects"
AfterTargets="ResolveAssemblyReferences"
BeforeTargets="GenerateBindingRedirects"
Condition="'$(AutoGenerateBindingRedirects)' == 'true'">
<PropertyGroup>
<!-- Needs to be set in a target because it has to be set after the initial evaluation in the MS common targets -->
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
</PropertyGroup>
</Target>
</Project>
23 changes: 0 additions & 23 deletions Bluewire.Stash.IntegrationTests/app.config

This file was deleted.

2 changes: 1 addition & 1 deletion Bluewire.Stash.Service/Bluewire.Stash.Service.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk.Web">

<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
<TargetFramework>net6</TargetFramework>
<UserSecretsId>aspnet-Bluewire.Stash.Service-2D72830D-2586-4565-BBFB-4138BFEAB11C</UserSecretsId>
<WebProject_DirectoryAccessLevelKey>0</WebProject_DirectoryAccessLevelKey>
<Nullable>Enable</Nullable>
Expand Down
10 changes: 5 additions & 5 deletions Bluewire.Stash.UnitTests/Bluewire.Stash.UnitTests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFrameworks>net48;netcoreapp3.1</TargetFrameworks>
<TargetFrameworks>net48;net6</TargetFrameworks>
<LangVersion>8.0</LangVersion>
<Nullable>Enable</Nullable>
</PropertyGroup>
Expand All @@ -12,12 +12,12 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="5.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.3" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.8.0" />
<PackageReference Include="NUnit">
<Version>3.12.0</Version>
<Version>3.14.0</Version>
</PackageReference>
<PackageReference Include="NUnit3TestAdapter" Version="3.17.0" />
<PackageReference Include="TeamCity.VSTest.TestAdapter" Version="1.0.23" />
<PackageReference Include="NUnit3TestAdapter" Version="4.5.0" />
<PackageReference Include="TeamCity.VSTest.TestAdapter" Version="1.0.38" />
</ItemGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@
<Version>2.0.12</Version>
</PackageReference>
<PackageReference Include="NUnit">
<Version>3.12.0</Version>
<Version>3.14.0</Version>
</PackageReference>
</ItemGroup>
<Import Project="Bluewire.Tools.GitRepository.IntegrationTests.targets" />
<Import Project="..\StyleCopAnalyzers.props" />
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<!-- Force generation of binding redirects for library projects, ie. test projects. See https://github.com/microsoft/msbuild/issues/1310 -->
<Target Name="ForceGenerationOfBindingRedirects"
AfterTargets="ResolveAssemblyReferences"
BeforeTargets="GenerateBindingRedirects"
Condition="'$(AutoGenerateBindingRedirects)' == 'true'">
<PropertyGroup>
<!-- Needs to be set in a target because it has to be set after the initial evaluation in the MS common targets -->
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
</PropertyGroup>
</Target>
</Project>
19 changes: 0 additions & 19 deletions Bluewire.Tools.GitRepository.IntegrationTests/app.config

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@
<Version>9.2.2</Version>
</PackageReference>
</ItemGroup>
<Import Project="Bluewire.Tools.Runner.IntegrationTests.targets" />
<Import Project="..\StyleCopAnalyzers.props" />
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<!-- Force generation of binding redirects for library projects, ie. test projects. See https://github.com/microsoft/msbuild/issues/1310 -->
<Target Name="ForceGenerationOfBindingRedirects"
AfterTargets="ResolveAssemblyReferences"
BeforeTargets="GenerateBindingRedirects"
Condition="'$(AutoGenerateBindingRedirects)' == 'true'">
<PropertyGroup>
<!-- Needs to be set in a target because it has to be set after the initial evaluation in the MS common targets -->
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
</PropertyGroup>
</Target>
</Project>
19 changes: 0 additions & 19 deletions Bluewire.Tools.Runner.IntegrationTests/app.config

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,12 @@
<Version>2.0.12</Version>
</PackageReference>
<PackageReference Include="Moq">
<Version>4.13.1</Version>
<Version>4.20.70</Version>
</PackageReference>
<PackageReference Include="NUnit">
<Version>3.12.0</Version>
<Version>3.14.0</Version>
</PackageReference>
</ItemGroup>
<Import Project="CanaryBuilder.IntegrationTests.targets" />
<Import Project="..\StyleCopAnalyzers.props" />
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="utf-8"?>
<Project>
<!-- Force generation of binding redirects for library projects, ie. test projects. See https://github.com/microsoft/msbuild/issues/1310 -->
<Target Name="ForceGenerationOfBindingRedirects"
AfterTargets="ResolveAssemblyReferences"
BeforeTargets="GenerateBindingRedirects"
Condition="'$(AutoGenerateBindingRedirects)' == 'true'">
<PropertyGroup>
<!-- Needs to be set in a target because it has to be set after the initial evaluation in the MS common targets -->
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
</PropertyGroup>
</Target>
</Project>
19 changes: 0 additions & 19 deletions CanaryBuilder.IntegrationTests/app.config

This file was deleted.

6 changes: 3 additions & 3 deletions CanaryBuilder.UnitTests/CanaryBuilder.UnitTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="NUnit">
<Version>3.12.0</Version>
<Version>3.14.0</Version>
</PackageReference>
<PackageReference Include="NUnit.ConsoleRunner">
<Version>3.10.0</Version>
<Version>3.16.3</Version>
</PackageReference>
<PackageReference Include="NUnit.Extension.TeamCityEventListener">
<Version>1.0.7</Version>
<Version>1.0.9</Version>
</PackageReference>
</ItemGroup>
<Import Project="..\StyleCopAnalyzers.props" />
Expand Down
2 changes: 1 addition & 1 deletion CanaryBuilder/CanaryBuilder.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<Version>2.0.12</Version>
</PackageReference>
<PackageReference Include="NUnit">
<Version>3.12.0</Version>
<Version>3.14.0</Version>
</PackageReference>
</ItemGroup>
<Import Project="..\StyleCopAnalyzers.props" />
Expand Down
2 changes: 1 addition & 1 deletion CanaryCollector.UnitTests/CanaryCollector.UnitTests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</ItemGroup>
<ItemGroup>
<PackageReference Include="NUnit">
<Version>3.12.0</Version>
<Version>3.14.0</Version>
</PackageReference>
</ItemGroup>
<Import Project="..\StyleCopAnalyzers.props" />
Expand Down
Loading

0 comments on commit d5de565

Please sign in to comment.