File tree 2 files changed +11
-20
lines changed
2 files changed +11
-20
lines changed Original file line number Diff line number Diff line change 1
1
<Project Sdk =" Microsoft.NET.Sdk" >
2
2
3
3
<PropertyGroup >
4
- <TargetFrameworks >net472;netcoreapp2.1</TargetFrameworks >
4
+ <TargetFrameworks >net472;netcoreapp2.1;net5.0 </TargetFrameworks >
5
5
</PropertyGroup >
6
6
7
7
<ItemGroup >
8
8
<ProjectReference Include =" ..\LibGit2Sharp\LibGit2Sharp.csproj" />
9
- <ProjectReference Include =" ..\NativeLibraryLoadTestApp\x86\NativeLibraryLoadTestApp.x86.csproj" Condition =" '$(TargetFramework)' != 'netcoreapp2.1 '" ReferenceOutputAssembly =" false" OutputItemType =" TestAppExe" />
10
- <ProjectReference Include =" ..\NativeLibraryLoadTestApp\x64\NativeLibraryLoadTestApp.x64.csproj" Condition =" '$(TargetFramework)' != 'netcoreapp2.1 '" ReferenceOutputAssembly =" false" OutputItemType =" TestAppExe" />
9
+ <ProjectReference Include =" ..\NativeLibraryLoadTestApp\x86\NativeLibraryLoadTestApp.x86.csproj" Condition =" '$(TargetFramework)' == 'net472 '" ReferenceOutputAssembly =" false" OutputItemType =" TestAppExe" />
10
+ <ProjectReference Include =" ..\NativeLibraryLoadTestApp\x64\NativeLibraryLoadTestApp.x64.csproj" Condition =" '$(TargetFramework)' == 'net472 '" ReferenceOutputAssembly =" false" OutputItemType =" TestAppExe" />
11
11
</ItemGroup >
12
12
13
13
<ItemGroup >
23
23
24
24
<ItemGroup >
25
25
<Compile Include =" ..\LibGit2Sharp\Core\Platform.cs" Link =" TestHelpers\Platform.cs" />
26
- <Compile Remove =" desktop\**" Condition =" '$(TargetFramework)' == 'netcoreapp2.1 '" />
26
+ <Compile Remove =" desktop\**" Condition =" '$(TargetFramework)' != 'net472 '" />
27
27
<Content Include =" Resources\**\*.*" CopyToOutputDirectory =" PreserveNewest" />
28
28
<None Update =" xunit.runner.json" CopyToOutputDirectory =" PreserveNewest" />
29
29
</ItemGroup >
Original file line number Diff line number Diff line change 6
6
- script : dotnet pack --no-build -c $(BuildConfiguration) /v:m /bl:"$(Build.ArtifactStagingDirectory)/build_logs/pack.binlog"
7
7
displayName : dotnet pack
8
8
9
- - task : DotNetCoreCLI@2
10
- displayName : dotnet test -f net46 (w/ coverage)
11
- inputs :
12
- command : test
13
- arguments : --no-build -c $(BuildConfiguration) -f net46 --filter "TestCategory!=FailsInCloudTest & TestCategory!=FailsWhileInstrumented" -v n /p:CollectCoverage=true
14
- testRunTitle : net46-$(Agent.JobName)
15
- condition : and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))
16
-
17
- - task : DotNetCoreCLI@2
18
- displayName : dotnet test -f net46 (w/o coverage)
19
- inputs :
20
- command : test
21
- arguments : --no-build -c $(BuildConfiguration) -f net46 --filter "TestCategory!=FailsInCloudTest & TestCategory=FailsWhileInstrumented" -v n
22
- testRunTitle : net46-$(Agent.JobName)-nocoverage
23
- condition : and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))
24
-
25
9
- task : DotNetCoreCLI@2
26
10
displayName : dotnet test -f net472 (w/ coverage)
27
11
inputs :
@@ -45,6 +29,13 @@ steps:
45
29
arguments : --no-build -c $(BuildConfiguration) -f netcoreapp2.1 --filter "TestCategory!=FailsInCloudTest" -v n /p:CollectCoverage=true
46
30
testRunTitle : netcoreapp2.1-$(Agent.JobName)
47
31
32
+ - task : DotNetCoreCLI@2
33
+ displayName : dotnet test -f net5.0
34
+ inputs :
35
+ command : test
36
+ arguments : --no-build -c $(BuildConfiguration) -f net5.0 --filter "TestCategory!=FailsInCloudTest" -v n /p:CollectCoverage=true
37
+ testRunTitle : net5.0-$(Agent.JobName)
38
+
48
39
- task : PowerShell@2
49
40
inputs :
50
41
filePath : azure-pipelines/artifacts/_pipelines.ps1
You can’t perform that action at this time.
0 commit comments