Skip to content

Commit

Permalink
Retarget netcoreapp3.0 tests to netcoreapp3.1
Browse files Browse the repository at this point in the history
Also add netcoreapp3.1 test run to Azure Pipelines
  • Loading branch information
AArnott committed May 3, 2020
1 parent 99ce21e commit b49cf61
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 97 deletions.
9 changes: 9 additions & 0 deletions azure-pipelines/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,15 @@ steps:
workingDirectory: src/Microsoft.VisualStudio.Threading.Tests
condition: ne(variables['OptProf'], 'true')

- task: DotNetCoreCLI@2
displayName: dotnet test -f netcoreapp3.1
inputs:
command: test
arguments: --no-build -c $(BuildConfiguration) -f netcoreapp3.1 --filter "TestCategory!=FailsInCloudTest" -v n /p:CollectCoverage=true
testRunTitle: netcoreapp3.1-$(Agent.JobName)
workingDirectory: src/Microsoft.VisualStudio.Threading.Tests
condition: ne(variables['OptProf'], 'true')

# We have to artifically run this script so that the extra .nupkg is produced for variables/InsertConfigValues.ps1 to notice.
- powershell: azure-pipelines\artifacts\VSInsertion.ps1
displayName: Prepare VSInsertion artifact
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
<PackageId>Microsoft.VisualStudio.Threading.Analyzers.Only</PackageId>
<IsPackable>false</IsPackable>
</PropertyGroup>
<ItemGroup>
<Compile Include="..\Microsoft.VisualStudio.Threading\NullabilityAttributes.cs" Link="NullabilityAttributes.cs" />
</ItemGroup>
<ItemGroup>
<Compile Update="Strings.Designer.cs">
<AutoGen>True</AutoGen>
Expand All @@ -32,6 +29,10 @@
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="2.8.2" />
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="2.9.6" PrivateAssets="all" />
<PackageReference Include="MicroBuild.VisualStudio" Version="$(MicroBuildVersion)" />
<PackageReference Include="Nullable" Version="1.2.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="System.Threading.Tasks.Extensions" Version="4.5.3" />
<PackageReference Include="System.ValueTuple" Version="4.3.0" />
<PackageReference Include="XliffTasks" Version="1.0.0-beta.19253.2" PrivateAssets="all" />
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>net472;netcoreapp2.1;netcoreapp3.0</TargetFrameworks>
<TargetFrameworks>net472;netcoreapp2.1;netcoreapp3.1</TargetFrameworks>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<CodeAnalysisRuleSet>Microsoft.VisualStudio.Threading.Tests.ruleset</CodeAnalysisRuleSet>
<NoWarn>$(NoWarn);CS1591</NoWarn>
Expand All @@ -20,7 +20,6 @@
<Compile Include="..\Microsoft.VisualStudio.Threading\ListOfOftenOne.cs">
<Link>ListOfOftenOne.cs</Link>
</Compile>
<Compile Include="..\Microsoft.VisualStudio.Threading\NullabilityAttributes.cs" Link="NullabilityAttributes.cs" />
<Compile Include="..\Microsoft.VisualStudio.Threading\RoslynDebug.cs" Link="RoslynDebug.cs" />
<Compile Include="..\Microsoft.VisualStudio.Threading\WeakKeyDictionary.cs">
<Link>WeakKeyDictionary.cs</Link>
Expand All @@ -30,11 +29,15 @@
<PackageReference Include="coverlet.msbuild" Version="2.6.3" />
<PackageReference Include="MicroBuild.Nonshipping" Version="$(MicroBuildVersion)" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.2.0" />
<PackageReference Include="Nullable" Version="1.2.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="4.6.0" />
<PackageReference Include="Xunit.Combinatorial" Version="1.2.7" />
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.1" />
<PackageReference Include="Xunit.SkippableFact" Version="1.3.12" />
<PackageReference Include="Xunit.StaFact" Version="0.3.18" />
<PackageReference Include="Xunit.StaFact" Version="1.0.30-beta" />
<PackageReference Include="xunit" Version="2.4.1" />
</ItemGroup>
<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@
<AdditionalFiles Include="$(TargetFramework)\PublicAPI.Unshipped.txt" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Nullable" Version="1.2.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="Roslyn.Diagnostics.Analyzers" Version="2.9.7" PrivateAssets="all" />
<PackageReference Include="System.Threading.Tasks.Extensions" Version="4.5.3" />
<PackageReference Include="Microsoft.Bcl.AsyncInterfaces" Version="1.0.0" />
Expand Down
91 changes: 0 additions & 91 deletions src/Microsoft.VisualStudio.Threading/NullabilityAttributes.cs

This file was deleted.

0 comments on commit b49cf61

Please sign in to comment.