summaryrefslogtreecommitdiff
path: root/config.json
blob: 5011de3e7ff730c0f2e087822028faa81b1bc4f1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
{
  "settings": {
    "CloudDropAccessToken": {
      "description": "Azure access token",
      "valueType": "property",
      "values": [],
      "defaultValue": ""
    },
    "CloudDropAccountName": {
      "description": "Azure account name.",
      "valueType": "property",
      "values": [],
      "defaultValue": ""
    },
    "BuildNumberMajor": {
      "description": "Product build major number.",
      "valueType": "property",
      "values": [],
      "defaultValue": ""
    },
    "BuildNumberMinor": {
      "description": "Product build minor number.",
      "valueType": "property",
      "values": [],
      "defaultValue": ""
    },
    "__Container": {
      "description": "Container name for Azure upload.",
      "valueType": "property",
      "values": [],
      "defaultValue": ""
    },
    "__BlobNamePrefix": {
      "description": "Blob Prefix for Azure download.",
      "valueType": "property",
      "values": [],
      "defaultValue": ""
    },
    "MsBuildFileLogging": {
      "description": "MsBuild logging options.",
      "valueType": "passThrough",
      "values": [],
      "defaultValue": "/flp:v=normal"
    },
    "MsBuildEventLogging": {
      "description": "MsBuild logging options.",
      "valueType": "passThrough",
      "values": [],
      "defaultValue": "/l:BinClashLogger,Tools/net46/Microsoft.DotNet.Build.Tasks.dll;LogFile=binclash.log"
    },
    "FilterToOSGroup": {
      "description": "Specifies the OSGroup.",
      "valueType": "property",
      "values": [ "Windows_NT", "Linux", "Unix", "OSX" ],
      "defaultValue": "${OSName}"
    },
    "RestoreNETCorePlatforms": {
      "description": "MsBuild target that restores the NETCore packages.",
      "valueType": "target",
      "values": [],
      "defaultValue": ""
    },
    "RestoreOptData": {
      "description": "MsBuild target that restores optimization profile data.",
      "valueType": "target",
      "values": [],
      "defaultValue": ""
    },
    "RestoreDuringBuild": {
      "description": "Enables/disables package restore.",
      "valueType": "property",
      "values": [ true, false ],
      "defaultValue": true
    },
    "Project": {
      "description": "Project where the commands are going to be applied.",
      "valueType": "passThrough",
      "values": [],
      "defaultValue": ""
    },
    "__BuildType": {
      "description": "Specifies the configuration to publish packages",
      "valueType": "property",
      "values": [ "release", "debug", "checked" ],
      "defaultValue": "debug"
    },
    "__BuildArch": {
      "description": "Specifies the architecture to publish packages",
      "valueType": "property",
      "values": [ "x64", "x86", "arm", "arm64" ],
      "defaultValue": "${CPUArch}"
    },
    "__BuildOS": {
      "description": "Specifies the OS to publish packages.",
      "valueType": "property",
      "values": [ "Linux", "OSX", "FreeBSD", "OpenBSD", "NetBSD", "SunOS", "Windows_NT" ],
      "defaultValue": "${OSName}"
    },
    "__DistroRid": {
      "description": "Specifies the distro rid for Unix OS.",
      "valueType": "property",
      "values": [],
      "defaultValue": "${OSRid}"
    },
    "__VSVersion": {
      "description": "Sets the Visual Studio version to use.",
      "valueType": "property",
      "values": [],
      "defaultValue": "vs2015"
    },
    "__ProjectDir": {
      "description": "Directory of the dir.props file.",
      "valueType": "property",
      "values": [],
      "defaultValue": ""
    },
    "__SourceDir": {
      "description": "Source directory.",
      "valueType": "property",
      "values": [],
      "defaultValue": ""
    },
    "__PackagesDir": {
      "description": "Packages directory.",
      "valueType": "property",
      "values": [],
      "defaultValue": ""
    },
    "__RootBinDir": {
      "description": "Root bin directory.",
      "valueType": "property",
      "values": [],
      "defaultValue": ""
    },
    "__BinDir": {
      "description": "Bin directory of specific OS, Arch and Type being built.",
      "valueType": "property",
      "values": [],
      "defaultValue": ""
    },
    "__IntermediatesDir": {
      "description": "Intermediates bin directory.",
      "valueType": "property",
      "values": [],
      "defaultValue": ""
    },
    "__PackagesBinDir": {
      "description": "Packages bin directory.",
      "valueType": "property",
      "values": [],
      "defaultValue": ""
    },
    "__TestWorkingDir": {
      "description": "Test working directory.",
      "valueType": "property",
      "values": [],
      "defaultValue": ""
    },
    "GenerateVersionHeader": {
      "description": "Generates _version.h",
      "valueType": "passThrough",
      "values": [],
      "defaultValue": "/t:GenerateVersionHeader /p:GenerateVersionHeader=true"
    },
    "GenerateVersionSourceFile": {
      "description": "Generate version.cpp",
      "valueType": "passThrough",
      "values": [],
      "defaultValue": "/t:GenerateVersionSourceFile /p:GenerateVersionSourceFile=true"
    },
    "NativeVersionSourceFile": {
      "description": "Provides location for version.cpp",
      "valueType": "property",
      "values": [],
      "defaultValue": ""
    },
    "NativeVersionHeaderFile": {
      "description": "Provides location for _version.h",
      "valueType": "property",
      "values": [],
      "defaultValue": ""
    },
    "OverwriteCoreClrPackageVersion": {
      "description": "Sets the property specifying to overwrite CoreClr Package version using OfficialBuildId",
      "valueType": "property",
      "values": [ true, false ],
      "defaultValue": true
    },
    "OfficialBuildId": {
      "description": "Official Build Id.",
      "valueType": "property",
      "values": [],
      "defaultValue": ""
    },
    "Configuration": {
      "description": "Specifies the build type for native build.",
      "valueType": "property",
      "values": [ "debug", "release", "checked" ],
      "defaultValue": "debug"
    },
    "EnableProfileGuidedOptimization": {
      "description": "Enables IBC profile optimizations if profile data are available.",
      "valueType": "property",
      "values": [ true, false ],
      "defaultValue": false
    },
    "RestoreDefaultOptimizationDataPackage": {
      "description": "Instructs BuildTools to restore the default OptimizationData package.",
      "valueType": "property",
      "values": [ true, false ],
      "defaultValue": true
    },
    "UsePartialNGENOptimization": {
      "description": "Adds the `-partialNGEN -minify` arguments when invoking IBCMerge.",
      "valueType": "property",
      "values": [ true, false ],
      "defaultValue": true
    },
    "OptimizationDataDir": {
      "description": "Sets the path where the build should look for IBC profile data.",
      "valueType": "property",
      "values": [],
      "defaultValue": ""
    },
    "UseEnv": {
      "description": "Set when building for arm64.",
      "valueType": "property",
      "values": [ true, false ],
      "defaultValue": true
    },
    "Platform": {
      "description": "Sets the build arch for native build.",
      "valueType": "property",
      "values": [ "x86", "x64", "arm", "arm64" ],
      "defaultValue": "${CPUArch}"
    },
    "PortableBuild": {
      "description": "Indicates if this is a portable build.",
      "valueType": "property",
      "values": [ "false", "true"],
      "defaultValue": "true"
    },
    "Rebuild": {
      "description": "Specifies rebuild target.",
      "valueType": "target",
      "values": [],
      "defaultValue": ""
    },
    "MsBuildLog": {
      "description": "Specifies build logs for build alias.",
      "valueType": "passThrough",
      "values": [],
      "defaultValue": ""
    },
    "MsBuildWrn": {
      "description": "Specifies build logs for build alias.",
      "valueType": "passThrough",
      "values": [],
      "defaultValue": ""
    },
    "MsBuildErr": {
      "description": "Specifies build logs for build alias.",
      "valueType": "passThrough",
      "values": [],
      "defaultValue": ""
    },
    "BuildNugetPackage": {
      "description": "Specifies to build nuget packages.",
      "valueType": "property",
      "values": [ true, false ],
      "defaultValue": true
    },
    "SignType": {
      "description": "Sets the SignType.",
      "valueType": "property",
      "values": [ "real" ],
      "defaultValue": ""
    },
    "CLRTestPriorityToBuild": {
      "description": "Sets priority to build test.",
      "valueType": "property",
      "values": [],
      "defaultValue": ""
    },
    "CreateTestOverlay": {
      "description": "Runs CreateTestOverlay target.",
      "valueType": "target",
      "values": [],
      "defaultValue": ""
    },
    "CreateNonWindowsTestOverlay": {
      "description": "Runs CreateNonWindowsTestOverlay target.",
      "valueType": "target",
      "values": [],
      "defaultValue": ""
    },
    "Verbosity": {
      "description": "Sets build verbosity.",
      "valueType": "passThrough",
      "values": [],
      "defaultValue": "/v:normal"
    },
    "Build": {
      "description": "Runs the build target.",
      "valueType": "target",
      "values": [],
      "defaultValue": ""
    },
    "UseSharedCompilation": {
      "description": "Sets the use shared compilation property.",
      "valueType": "property",
      "values": [ true, false ],
      "defaultValue": true
    },
    "UpdateInvalidPackageVersions": {
      "description": "Runs the target to update package versions.",
      "valueType": "target",
      "values": [],
      "defaultValue": ""
    },
    "GenerateRuntimeLayout": {
      "description": "Generates Core_Root folder",
      "valueType": "property",
      "values": [ true, false ],
      "defaultValue": true
    },
    "BuildTestsAgainstPackages": {
      "description": "Sets the property specifying if we're building tests against packages",
      "valueType": "property",
      "values": [ true, false ],
      "defaultValue": true
    },
    "TargetsWindows": {
      "description": "Sets the property specifying if the tests we're building will target Windows",
      "valueType": "property",
      "values": [ true, false ],
      "defaultValue": true
    },
    "PublishTestNativeBins": {
      "description": "Publishes test native binaries to Azure on non-windows",
      "valueType": "property",
      "values": [ true, false ],
      "defaultValue": true
    },
    "BuildWrappers": {
      "description": "Builds test Xunit wrappers",
      "valueType": "property",
      "values": [ true, false ],
      "defaultValue": true
    },
    "Crossgen": {
      "description": "Determines if we're running Crossgen tests",
      "valueType": "property",
      "values": [ true, false ],
      "defaultValue": true
    },
    "RuntimeId": {
      "description": "Specifies the OS to build Core_Root for",
      "valueType": "property",
      "values": [ "debian.8-x64", "fedora.24-x64", "fedora.25-x64", "opensuse.42.1-x64", "osx.10.12-x64", "rhel.7-x64", "ubuntu.14.04-x64", "ubuntu.16.04-x64", "ubuntu.16.10-x64" ],
      "defaultValue": "${__RuntimeId}"
    },
    "BatchRestorePackages": {
      "description": "MsBuild target that restores the packages.",
      "valueType": "target",
      "values": [],
      "defaultValue": ""
    },
    "BinPlaceRef": {
      "description": "Place mscorlib.dll in bin/Product ref folder for building tests against",
      "valueType": "target",
      "values": [],
      "defaultValue": ""
    },
    "BinPlaceProduct": {
      "description": "Place test dependencies in bin/Product folder for building tests against",
      "valueType": "target",
      "values": [],
      "defaultValue": ""
    },
    "CopyCrossgenToProduct": {
      "description": "Place crossgen.exe in bin/Product folder for building tests against",
      "valueType": "target",
      "values": [],
      "defaultValue": ""
    },
    "OptionalToolSource": {
      "description": "URL of the nuget feed used by 'optional-tools'",
      "valueType": "property",
      "values": [],
      "defaultValue": ""
    },
    "OptionalToolSourceUser": {
      "description": "User name for authenticating to the optional tools feed",
      "valueType": "property",
      "values": [],
      "defaultValue": ""
    },
    "OptionalToolSourcePassword": {
      "description": "VSTS token for authenticating to the optional tools feed; requires 'package(READ)' permission",
      "valueType": "property",
      "values": [],
      "defaultValue": ""
    },
    "ExtraParameters": {
      "description": "Extra parameters will be passed to the selected command.",
      "valueType": "passThrough",
      "values": [],
      "defaultValue": ""
    }
  },
  "commands": {
    "build": {
      "alias": {
        "generateHeaderWindows": {
          "description": "Generates _version.h",
          "settings": {
            "GenerateVersionHeader": "default",
            "NativeVersionHeaderFile": "default"
          }
        },
        "generateHeaderUnix": {
          "description": "Generates version.cpp",
          "settings": {
            "GenerateVersionSourceFile": "default",
            "NativeVersionSourceFile": "default"
          }
        },
        "verbose": {
          "description": "Sets the verbosity",
          "settings": {
            "Verbosity": "/v:detailed"
          }
        },
        "disableoss": {
          "description": "Sets the sign type.",
          "settings": {
            "SignType": "real"
          }
        },
        "buildType": {
          "description": "Sets buildtype.",
          "settings": {
            "__BuildType": "default"
          }
        },
        "buildArch": {
          "description": "Sets buildarch.",
          "settings": {
            "__BuildArch": "default"
          }
        },
        "buildOS": {
          "description": "Sets the OS to build.",
          "settings": {
            "__BuildOS": "default"
          }
        },
        "testOverlay": {
          "description": "Runs test overlay target.",
          "settings": {
            "CreateTestOverlay": "default"
          }
        },
        "priority": {
          "description": "Sets CLRTestPriorityToBuild property.",
          "settings": {
            "CLRTestPriorityToBuild": "default"
          }
        },
        "skipRestore": {
          "description": "Skips restoring packages during build.",
          "settings": {
            "RestoreDuringBuild": false
          }
        },
        "BuildTarget": {
          "description": "Runs the build target.",
          "settings": {
            "Build": "default"
          }
        }
      },
      "defaultValues": {
        "toolName": "msbuild",
        "settings": {
          "MsBuildLog": "default",
          "MsBuildWrn": "default",
          "MsBuildErr": "default",
          "MsBuildEventLogging": "default",
          "RestoreDefaultOptimizationDataPackage": "false",
          "PortableBuild": "true",
          "UsePartialNGENOptimization": "false"
        }
      }
    },
    "sync": {
      "alias": {
        "p": {
          "description": "Restores all NuGet packages for repository.",
          "settings": {
            "Project": "./build.proj",
            "RestoreDuringBuild": true,
            "RestoreNETCorePlatforms": "default"
          }
        },
        "optdata": {
          "description": "Restores optimization profile data for the repository.",
          "settings": {
            "Project": "./build.proj",
            "RestoreDuringBuild": true,
            "RestoreOptData": "default"
          }
        },
        "ab": {
          "description": "Downloads the latests product packages from Azure. The values for '-AzureAccount' and '-AzureToken' are required",
          "settings": {
            "Project": "./src/syncAzure.proj"
          }
        },
        "n": {
          "description": "Downloads test native binaries. The values for '-AzureAccount', '-AzureToken', and '-Container' are required",
          "settings": {
            "Project": "./src/syncAzure.proj",
            "PublishTestNativeBins": "true"
          }
        },
        "azureToken": {
          "description": "Account token to connect to Azure Blob storage.",
          "settings": {
            "CloudDropAccessToken": "default"
          }
        },
        "azureAccount": {
          "description": "Account name to connect to Azure Blob storage.",
          "settings": {
            "CloudDropAccountName": "default"
          }
        },
        "container": {
          "description": "Container name to download from in Azure Blob storage.",
          "settings": {
            "__Container": "default"
          }
        },
        "blobNamePrefix": {
          "description": "Blob Prefix to download from in Azure container.",
          "settings": {
            "__BlobNamePrefix": "default"
          }
        },
        "runtimeId": {
          "description": "Runtime ID of the binaries in the specified container.",
          "settings": {
            "RuntimeId": "default"
          }
        },
        "verbose": {
          "description": "Passes /flp:v=diag to the msbuild command or the value passed by the user.",
          "settings": {
            "MsBuildFileLogging": "/flp:v=diag;LogFile=sync.log"
          }
        },
        "buildMajor": {
          "description": "To download a specific group of product packages, specify build number. The value for -BuildMinor required.",
          "settings": {
            "BuildNumberMajor": "default"
          }
        },
        "buildMinor": {
          "description": "To download a specific group of product packages, specify build number. The value for -BuildMajor required.",
          "settings": {
            "BuildNumberMinor": "default"
          }
        }
      },
      "defaultValues": {
        "toolName": "msbuild",
        "settings": {
          "MsBuildFileLogging": "/flp:v=detailed;LogFile=sync.log"
        }
      }
    },
    "publish-packages": {
      "alias": {
        "azureToken": {
          "description": "Account token to connect to Azure Blob storage.",
          "settings": {
            "CloudDropAccessToken": "default"
          }
        },
        "azureAccount": {
          "description": "Account name to connect to Azure Blob storage.",
          "settings": {
            "CloudDropAccountName": "default"
          }
        },
        "container": {
          "description": "Container name to upload into in Azure Blob storage.",
          "settings": {
            "__Container": "default"
          }
        },
        "buildArch": {
          "description": "Specifies architecture to publish, can be x64, x86, arm or arm64",
          "settings": {
            "__BuildArch": "default"
          }
        },
        "buildType": {
          "description": "Specifies configuration to publish, can be Release, Debug or Checked.",
          "settings": {
            "__BuildType": "default"
          }
        },
        "buildOS": {
          "description": "Specifies the OS to publish packages.",
          "settings": {
            "__BuildOS": "default"
          }
        },
        "distroRid": {
          "description": "Specifies distro rid for Unix OS.",
          "settings": {
            "__DistroRid": "default"
          }
        },
        "PublishTestNativeBins": {
          "description": "Publishes test native binaries.",
          "settings": {
            "PublishTestNativeBins": "default"
          }
        }
      },
      "defaultValues": {
        "toolName": "msbuild",
        "settings": {
          "Project": "./src/publish.proj",
          "MsBuildFileLogging": "/flp:v=detailed;LogFile=publish-packages.log"
        }
      }
    },
    "build-packages": {
      "alias": {
        "buildArch": {
          "description": "Specifies architecture to publish, can be x64, x86, arm or arm64",
          "settings": {
            "__BuildArch": "default"
          }
        },
        "buildType": {
          "description": "Specifies configuration to publish, can be Release, Debug or Checked.",
          "settings": {
            "__BuildType": "default"
          }
        },
        "distroRid": {
          "description": "Specifies distro rid for Unix OS.",
          "settings": {
            "__DistroRid": "default"
          }
        }
      },
      "defaultValues": {
        "toolName": "msbuild",
        "settings": {
          "__BuildOS": "default",
          "MsBuildFileLogging": "/flp:v=detailed;Append;LogFile=build-packages.log",
          "MsBuildEventLogging": "default",
          "PortableBuild": "true",
          "Project": "src/.nuget/packages.builds"
        }
      }
    }
  },
  "tools": {
    "msbuild": {
      "osSpecific": {
        "windows": {
          "defaultParameters": "/nologo /verbosity:minimal /clp:Summary /maxcpucount /nodeReuse:false",
          "path": "Tools/msbuild.cmd"
        },
        "unix": {
          "defaultParameters": "/nologo /verbosity:minimal /clp:Summary /maxcpucount",
          "path": "Tools/msbuild.sh"
        }
      },
      "valueTypes": {
        "property": "/p:{name}={value}",
        "target": "/t:{name}",
        "internal": "/{name}"
      }
    },
    "terminal": {
      "run": {
        "windows": "cmd",
        "unix": "sh"
      },
      "valueTypes": {}
    }
  }
}