Skip to content

Commit 791e37e

Browse files
Multi-targeting with TargetFrameworks (dotnet#6003)
1 parent ea647f4 commit 791e37e

33 files changed

+103
-1232
lines changed

Diff for: .vsts-dotnet-ci.yml

+18-51
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,12 @@ jobs:
2525
container: UbuntuCrossArmContainer
2626
customMatrixes:
2727
Debug_Build:
28-
_configuration: Debug-netcoreapp3_1
28+
_configuration: Debug
2929
_config_short: DI
3030
_includeBenchmarkData: false
3131
_targetFramework: netcoreapp3.1
3232
Release_Build:
33-
_configuration: Release-netcoreapp3_1
33+
_configuration: Release
3434
_config_short: RI
3535
_includeBenchmarkData: true
3636
_targetFramework: netcoreapp3.1
@@ -47,12 +47,12 @@ jobs:
4747
container: UbuntuCrossArm64Container
4848
customMatrixes:
4949
Debug_Build:
50-
_configuration: Debug-netcoreapp3_1
50+
_configuration: Debug
5151
_config_short: DI
5252
_includeBenchmarkData: false
5353
_targetFramework: netcoreapp3.1
5454
Release_Build:
55-
_configuration: Release-netcoreapp3_1
55+
_configuration: Release
5656
_config_short: RI
5757
_includeBenchmarkData: true
5858
_targetFramework: netcoreapp3.1
@@ -66,25 +66,14 @@ jobs:
6666
name: Centos_x64_NetCoreApp31
6767
buildScript: ./build.sh
6868
container: CentosContainer
69-
customMatrixes:
70-
Debug_Build:
71-
_configuration: Debug-netcoreapp3_1
72-
_config_short: DI
73-
_includeBenchmarkData: false
74-
_targetFramework: netcoreapp3.1
75-
Release_Build:
76-
_configuration: Release-netcoreapp3_1
77-
_config_short: RI
78-
_includeBenchmarkData: true
79-
_targetFramework: netcoreapp3.1
8069
innerLoop: true
8170
pool:
8271
vmImage: ubuntu-18.04
8372
helixQueue: [email protected]/dotnet-buildtools/prereqs:centos-7-mlnet-helix-20210528183707-dde38af
8473

8574
- template: /build/ci/job-template.yml
8675
parameters:
87-
name: Ubuntu_x64_NetCoreApp21
76+
name: Ubuntu_x64_NetCoreApp31
8877
buildScript: ./build.sh
8978
container: UbuntuContainer
9079
innerLoop: true
@@ -94,7 +83,7 @@ jobs:
9483

9584
- template: /build/ci/job-template.yml
9685
parameters:
97-
name: MacOS_x64_NetCoreApp21
86+
name: MacOS_x64_NetCoreApp31
9887
buildScript: ./build.sh
9988
innerLoop: true
10089
pool:
@@ -104,52 +93,30 @@ jobs:
10493
- template: /build/ci/job-template.yml
10594
parameters:
10695
architecture: arm64
107-
name: MacOS_cross_arm64_NetCoreApp21
96+
name: MacOS_cross_arm64_Net6
10897
buildScript: ./build.sh
10998
customMatrixes:
11099
Debug_Build:
111-
_configuration: Debug-netcoreapp3_1
100+
_configuration: Debug
112101
_config_short: DI
113102
_includeBenchmarkData: false
114-
_targetFramework: netcoreapp3.1
103+
_targetFramework: net6.0
115104
Release_Build:
116-
_configuration: Release-netcoreapp3_1
105+
_configuration: Release
117106
_config_short: RI
118107
_includeBenchmarkData: true
119-
_targetFramework: netcoreapp3.1
108+
_targetFramework: net6.0
120109
innerLoop: true
121110
pool:
122111
vmImage: macOS-10.15
123-
testTargetFramework: net6.0
124112
helixQueue: OSX.1100.Arm64.Open
125113

126114
- template: /build/ci/job-template.yml
127115
parameters:
128116
name: Windows_x64_NetCoreApp31
129117
buildScript: build.cmd
130-
customMatrixes:
131-
Debug_Build:
132-
_configuration: Debug-netcoreapp3_1
133-
_config_short: DI
134-
_includeBenchmarkData: false
135-
_targetFramework: netcoreapp3.1
136-
Release_Build:
137-
_configuration: Release-netcoreapp3_1
138-
_config_short: RI
139-
_includeBenchmarkData: true
140-
_targetFramework: netcoreapp3.1
141-
innerLoop: true
142-
vsTestConfiguration: "/Framework:.NETCoreApp,Version=v3.0"
143-
pool:
144-
vmImage: windows-2019
145-
helixQueue: Windows.10.Amd64.Open
146-
147-
- template: /build/ci/job-template.yml
148-
parameters:
149-
name: Windows_x64_NetCoreApp21
150-
buildScript: build.cmd
151118
innerLoop: true
152-
vsTestConfiguration: "/Framework:.NETCoreApp,Version=v2.1"
119+
vsTestConfiguration: "/Framework:.NETCoreApp,Version=v3.1"
153120
pool:
154121
vmImage: windows-2019
155122
helixQueue: Windows.10.Amd64.Open
@@ -160,15 +127,15 @@ jobs:
160127
buildScript: build.cmd
161128
customMatrixes:
162129
Debug_Build:
163-
_configuration: Debug-netfx
130+
_configuration: Debug
164131
_config_short: DFX
165132
_includeBenchmarkData: false
166-
_targetFramework: win-x64
133+
_targetFramework: net461
167134
Release_Build:
168-
_configuration: Release-netfx
135+
_configuration: Release
169136
_config_short: RFX
170137
_includeBenchmarkData: false
171-
_targetFramework: win-x64
138+
_targetFramework: net461
172139
innerLoop: true
173140
vsTestConfiguration: "/Framework:.NETCoreApp,Version=v4.0"
174141
pool:
@@ -177,11 +144,11 @@ jobs:
177144

178145
- template: /build/ci/job-template.yml
179146
parameters:
180-
name: Windows_x86_NetCoreApp21
147+
name: Windows_x86_NetCoreApp31
181148
architecture: x86
182149
buildScript: build.cmd
183150
innerLoop: true
184-
vsTestConfiguration: "/Framework:.NETCoreApp,Version=v2.1"
151+
vsTestConfiguration: "/Framework:.NETCoreApp,Version=v3.1"
185152
pool:
186153
vmImage: windows-2019
187154
helixQueue: Windows.10.Amd64.Open

Diff for: Directory.Build.props

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222

2323
<PropertyGroup>
2424
<Configuration Condition="'$(Configuration)'==''">Debug</Configuration>
25-
<Configurations>Debug;Release;Debug-netcoreapp3_1;Release-netcoreapp3_1;Debug-netfx;Release-netfx</Configurations>
2625
<Platform Condition="'$(Platform)'==''">AnyCPU</Platform>
2726
<TargetArchitecture Condition="'$(TargetArchitecture)' == ''">$([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture)</TargetArchitecture>
2827
<TargetArchitecture>$(TargetArchitecture.ToLower())</TargetArchitecture>

0 commit comments

Comments
 (0)