forked from microsoft/BuildXL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.dsc
777 lines (698 loc) · 43.5 KB
/
config.dsc
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
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
// Copyright (c) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
config({
// No orphan projects are owned by this configuration.
projects: [],
// Packages that define the build extent.
modules: [
...globR(d`Public/Src`, "module.config.dsc"),
...globR(d`Public/Sdk/UnitTests`, "module.config.dsc"),
...globR(d`Private/Wdg`, "module.config.dsc"),
...globR(d`Private/QTest`, "module.config.dsc"),
...globR(d`Private/InternalSdk`, "module.config.dsc"),
...globR(d`Private/Tools`, "module.config.dsc"),
...globR(d`Public/Sdk/SelfHost`, "module.config.dsc"),
// Internal only modules
...addIf(importFile(f`config.microsoftInternal.dsc`).isMicrosoftInternal,
...globR(d`Private/CloudTest`, "module.config.dsc")
),
],
frontEnd: {
enabledPolicyRules: [
"NoTransformers",
]
},
resolvers: [
// These are the new cleaned up Sdk's
{
kind: "DScript",
modules: [
f`Public/Sdk/Public/Prelude/package.config.dsc`, // Prelude cannot be named module because it is a v1 module
f`Public/Sdk/Public/Transformers/package.config.dsc`, // Transformers cannot be renamed yet because office relies on the filename
...globR(d`Public/Sdk`, "module.config.dsc"),
]
},
{
// The credential provider should be set by defining the env variable NUGET_CREDENTIALPROVIDERS_PATH.
kind: "Nuget",
// TODO: remove once the new LKG gets deployed, nuget.exe is not used anymore
configuration: {
toolUrl: "https://dist.nuget.org/win-x86-commandline/v4.9.4/NuGet.exe",
hash: "VSO0:17E8C8C0CDCCA3A6D1EE49836847148C4623ACEA5E6E36E10B691DA7FDC4C39200"
},
esrpSignConfiguration : Context.getCurrentHost().os === "win" && Environment.getFlag("ENABLE_ESRP") ? {
signToolPath: p`${Environment.expandEnvironmentVariablesInString(Environment.getStringValue("SIGN_TOOL_PATH"))}`,
signToolConfiguration: Environment.getPathValue("ESRP_SESSION_CONFIG"),
signToolEsrpPolicy: Environment.getPathValue("ESRP_POLICY_CONFIG"),
signToolAadAuth: p`${Context.getMount("SourceRoot").path}/Secrets/CodeSign/EsrpAuthentication.json`,
} : undefined,
repositories: importFile(f`config.microsoftInternal.dsc`).isMicrosoftInternal
? {
// If nuget resolver failed to download VisualCpp tool, then download it
// manually from "BuildXL.Selfhost" feed into some folder, and specify
// that folder as the value of "MyInternal" feed below.
// "MyInternal": "E:/BuildXLInternalRepos/NuGetInternal",
// CODESYNC: bxl.sh, Shared\Scripts\bxl.ps1
"BuildXL.Selfhost": "https://pkgs.dev.azure.com/cloudbuild/_packaging/BuildXL.Selfhost/nuget/v3/index.json",
// Note: From a compliance point of view it is important that MicrosoftInternal has a single feed.
// If you need to consume packages make sure they are upstreamed in that feed.
}
: {
"buildxl-selfhost" : "https://pkgs.dev.azure.com/ms/BuildXL/_packaging/BuildXL.Selfhost/nuget/v3/index.json",
"nuget.org" : "https://api.nuget.org/v3/index.json",
"dotnet-arcade" : "https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json",
},
packages: [
{ id: "NLog", version: "4.7.7" },
{ id: "Bond.Core.CSharp", version: "10.0.0" },
{ id: "Bond.CSharp", version: "10.0.0" },
{ id: "Bond.CSharp.osx-x64", version: "10.0.0", osSkip: [ "unix" ] },
{ id: "Bond.CSharp.linux-x64", version: "10.0.0", osSkip: [ "macOS" ] },
{ id: "Bond.Runtime.CSharp", version: "10.0.0" },
{ id: "CLAP", version: "4.6" },
{ id: "CLAP-DotNetCore", version: "4.6" },
{ id: "RuntimeContracts", version: "0.3.0" }, // Be very careful with updating this version, because CloudBuild and other repository needs to be updated as wwell
{ id: "RuntimeContracts.Analyzer", version: "0.3.2" }, // The versions are different because the analyzer has higher version for now.
{ id: "Microsoft.NETFramework.ReferenceAssemblies.net472", version: "1.0.0" },
{ id: "System.Diagnostics.DiagnosticSource", version: "4.5.1" },
{ id: "System.Diagnostics.DiagnosticSource", version: "4.0.0-beta-23516", alias: "System.Diagnostics.DiagnosticsSource.ForEventHub"},
// Roslyn
{ id: "Microsoft.Net.Compilers", version: "4.0.1" }, // Update Public/Src/Engine/UnitTests/Engine/Test.BuildXL.Engine.dsc if you change the version of Microsoft.Net.Compilers.
{ id: "Microsoft.NETCore.Compilers", version: "4.0.1" },
{ id: "Microsoft.CodeAnalysis.Common", version: "3.5.0" },
{ id: "Microsoft.CodeAnalysis.CSharp", version: "3.5.0" },
{ id: "Microsoft.CodeAnalysis.VisualBasic", version: "3.5.0" },
{ id: "Microsoft.CodeAnalysis.Workspaces.Common", version: "3.5.0",
dependentPackageIdsToSkip: ["SQLitePCLRaw.bundle_green", "System.Composition"],
dependentPackageIdsToIgnore: ["SQLitePCLRaw.bundle_green", "System.Composition"],
},
{ id: "Microsoft.CodeAnalysis.CSharp.Workspaces", version: "3.5.0" },
// VBCSCompilerLogger needs the latest version (.net 5), but we haven't completed the migration to net 5 for
// the rest of the codebase yet
// Note: if any of the CodeAnalysis packages get upgraded, any new
// switch introduced in the compiler command line argument supported by
// the new version needs to be evaluated and incorporated into VBCSCompilerLogger.cs
{ id: "Microsoft.CodeAnalysis.Common", version: "3.8.0", alias: "Microsoft.CodeAnalysis.Common.ForVBCS"},
{ id: "Microsoft.CodeAnalysis.CSharp", version: "3.8.0", alias: "Microsoft.CodeAnalysis.CSharp.ForVBCS",
dependentPackageIdsToSkip: ["Microsoft.CodeAnalysis.Common"] },
{ id: "Microsoft.CodeAnalysis.VisualBasic", version: "3.8.0", alias: "Microsoft.CodeAnalysis.VisualBasic.ForVBCS",
dependentPackageIdsToSkip: ["Microsoft.CodeAnalysis.Common"]},
{ id: "Microsoft.CodeAnalysis.Workspaces.Common", version: "3.8.0", alias: "Microsoft.CodeAnalysis.Workspaces.Common.ForVBCS",
dependentPackageIdsToSkip: ["SQLitePCLRaw.bundle_green", "System.Composition"],
dependentPackageIdsToIgnore: ["SQLitePCLRaw.bundle_green", "System.Composition"],
},
{ id: "Microsoft.CodeAnalysis.CSharp.Workspaces", version: "3.8.0", alias: "Microsoft.CodeAnalysis.CSharp.Workspaces.ForVBCS" },
{ id: "Humanizer.Core", version: "2.2.0" },
// Old code analysis libraries, for tests only
{ id: "Microsoft.CodeAnalysis.Common", version: "2.10.0", alias: "Microsoft.CodeAnalysis.Common.Old" },
{ id: "Microsoft.CodeAnalysis.CSharp", version: "2.10.0", alias: "Microsoft.CodeAnalysis.CSharp.Old" },
{ id: "Microsoft.CodeAnalysis.VisualBasic", version: "2.10.0", alias: "Microsoft.CodeAnalysis.VisualBasic.Old" },
// Roslyn Analyzers
{ id: "Microsoft.CodeAnalysis.Analyzers", version: "3.3.1" },
{ id: "Microsoft.CodeAnalysis.FxCopAnalyzers", version: "2.6.3" },
{ id: "Microsoft.CodeQuality.Analyzers", version: "2.3.0-beta1" },
{ id: "Microsoft.NetFramework.Analyzers", version: "2.3.0-beta1" },
{ id: "Microsoft.NetCore.Analyzers", version: "2.3.0-beta1" },
{ id: "Microsoft.CodeAnalysis.NetAnalyzers", version: "5.0.3"},
{ id: "AsyncFixer", version: "1.6.0" },
{ id: "ErrorProne.NET.CoreAnalyzers", version: "0.3.1-beta.2" },
{ id: "protobuf-net.BuildTools", version: "3.0.101" },
{ id: "Microsoft.VisualStudio.Threading.Analyzers", version: "16.9.60"},
{ id: "StructRecordGenerator", version: "0.4.0"},
{ id: "StyleCop.Analyzers", version: "1.1.0-beta004" },
{ id: "Text.Analyzers", version: "2.3.0-beta1" },
// MEF
{ id: "Microsoft.Composition", version: "1.0.30" },
{ id: "System.Composition.AttributedModel", version: "1.0.31" },
{ id: "System.Composition.Convention", version: "1.0.31" },
{ id: "System.Composition.Hosting", version: "1.0.31" },
{ id: "System.Composition.Runtime", version: "1.0.31" },
{ id: "System.Composition.TypedParts", version: "1.0.31" },
{ id: "Microsoft.Diagnostics.Tracing.EventSource.Redist", version: "1.1.28" },
{ id: "Microsoft.Diagnostics.Tracing.TraceEvent", version: "2.0.30" },
{ id: "Microsoft.Extensions.Globalization.CultureInfoCache", version: "1.0.0-rc1-final" },
{ id: "Microsoft.Extensions.MemoryPool", version: "1.0.0-rc1-final" },
{ id: "Microsoft.Extensions.PlatformAbstractions", version: "1.1.0" },
{ id: "Microsoft.Extensions.Http", version: "3.1.0" },
{ id: "Microsoft.Tpl.Dataflow", version: "4.5.24" },
{ id: "Microsoft.TypeScript.Compiler", version: "1.8" },
{ id: "Microsoft.WindowsAzure.ConfigurationManager", version: "1.8.0.0" },
{ id: "Newtonsoft.Json", version: "13.0.1" },
{ id: "Newtonsoft.Json.Bson", version: "1.0.1" },
{ id: "System.Reflection.Metadata", version: "1.6.0" },
{ id: "System.Reflection.Metadata", version: "5.0.0", alias: "System.Reflection.Metadata.ForVBCS", dependentPackageIdsToSkip: ["System.Collections.Immutable"] },
{ id: "System.Threading.Tasks.Dataflow", version: "4.9.0" },
// Nuget
{ id: "NuGet.Packaging", version: "5.11.3", dependentPackageIdsToSkip: ["System.Security.Cryptography.ProtectedData", "System.Security.Cryptography.Pkcs"] },
{ id: "NuGet.Configuration", version: "5.11.3", dependentPackageIdsToSkip: ["System.Security.Cryptography.ProtectedData"] },
{ id: "NuGet.Common", version: "5.11.3" },
{ id: "NuGet.Protocol", version: "5.11.3" },
{ id: "NuGet.Versioning", version: "5.11.3" },
{ id: "NuGet.CommandLine", version: "6.2.2" },
{ id: "NuGet.Frameworks", version: "5.11.3"}, // needed for qtest on .net core
// ProjFS (virtual file system)
{ id: "Microsoft.Windows.ProjFS", version: "1.2.19351.1" },
// RocksDb
{ id: "RocksDbSharp", version: "6.10.2-b20221102.4", alias: "RocksDbSharpSigned",
dependentPackageIdsToSkip: [ "System.Memory" ],
dependentPackageIdsToIgnore: [ "System.Memory" ]
},
{ id: "RocksDbNative", version: "6.10.2-b20221102.4" },
{ id: "JsonDiffPatch.Net", version: "2.1.0" },
// Event hubs
{ id: "Microsoft.Azure.Amqp", version: "2.5.10" },
{ id: "Microsoft.Azure.EventHubs", version: "4.3.2",
dependentPackageIdsToSkip: ["System.Net.Http", "System.Reflection.TypeExtensions", "System.Runtime.Serialization.Primitives", "Newtonsoft.Json", "System.Diagnostics.DiagnosticSource"],
},
{ id: "Microsoft.Azure.KeyVault.Core", version: "1.0.0" },
{ id: "Microsoft.Azure.Services.AppAuthentication", version: "1.0.3" },
{ id: "Microsoft.IdentityModel.Logging", version: "5.4.0" },
{ id: "Microsoft.IdentityModel.Tokens", version: "5.4.0",
dependentPackageIdsToSkip: ["Newtonsoft.Json"] },
{ id: "System.IdentityModel.Tokens.Jwt", version: "5.4.0",
dependentPackageIdsToSkip: ["Newtonsoft.Json"] },
{ id: "Microsoft.IdentityModel.JsonWebTokens", version: "5.4.0" },
// Key Vault
{ id: "Azure.Security.KeyVault.Secrets", version: "4.0.3" },
{ id: "Azure.Security.KeyVault.Certificates", version: "4.0.3" },
{ id: "Azure.Identity", version: "1.4.0" },
{ id: "Microsoft.Identity.Client", version: "4.30.1" },
{ id: "Microsoft.Identity.Client.Extensions.Msal", version: "2.18.4" },
{ id: "Azure.Core", version: "1.25.0",
dependentPackageIdsToSkip: ["System.Buffers", "System.Text.Encodings.Web", "System.Text.Json", "System.Memory", "System.Memory.Data", "System.Numerics.Vectors" ] },
{ id: "System.Memory.Data", version: "6.0.0",
dependentPackageIdsToSkip: [ "System.Memory", "System.Text.Json" ] },
// Package sets
...importFile(f`config.nuget.vssdk.dsc`).pkgs,
...importFile(f`config.nuget.aspNetCore.dsc`).pkgs,
...importFile(f`config.nuget.dotnetcore.dsc`).pkgs,
...importFile(f`config.nuget.grpc.dsc`).pkgs,
...importFile(f`config.microsoftInternal.dsc`).pkgs,
// Azure Blob Storage SDK V9
{ id: "WindowsAzure.Storage", version: "9.3.3" },
{ id: "Microsoft.Data.Services.Client", version: "5.8.2" },
{ id: "System.Spatial", version: "5.8.2" },
// Azure Blob Storage SDK V12
{ id: "Azure.Storage.Blobs", version: "12.13.0",
dependentPackageIdsToSkip: [ "System.Text.Json" ] },
{ id: "Azure.Storage.Common", version: "12.12.0" },
{ id: "System.IO.Hashing", version: "6.0.0",
dependentPackageIdsToSkip: [ "System.Buffers", "System.Memory" ] },
{ id: "Azure.Storage.Blobs.Batch", version: "12.10.0" },
// xUnit
{ id: "xunit.abstractions", version: "2.0.3" },
{ id: "xunit.analyzers", version: "0.10.0" },
{ id: "xunit.assert", version: "2.4.1-ms" },
{ id: "xunit.core", version: "2.4.1-ms" },
{ id: "xunit.extensibility.core", version: "2.4.1" },
{ id: "xunit.extensibility.execution", version: "2.4.1" },
{ id: "xunit.runner.console", version: "2.4.1" },
{ id: "Microsoft.DotNet.XUnitConsoleRunner", version: "2.5.1-beta.19270.4" },
{ id: "xunit.runner.reporters", version: "2.4.1-pre.build.4059" },
{ id: "xunit.runner.utility", version: "2.4.1" },
{ id: "xunit.runner.visualstudio", version: "2.4.1", dependentPackageIdsToSkip: ["Microsoft.NET.Test.Sdk"] },
// microsoft test platform
{ id: "Microsoft.TestPlatform.TestHost", version: "16.4.0"},
{ id: "Microsoft.TestPlatform.ObjectModel", version: "16.4.0"},
{ id: "Microsoft.NET.Test.Sdk", version: "15.9.0" },
{ id: "Microsoft.CodeCoverage", version: "15.9.0" },
{ id: "Microsoft.IdentityModel.Clients.ActiveDirectory", version: "5.2.9", /* Change Sync: BuildXLSdk.cacheBindingRedirects() */
dependentPackageIdsToSkip: ["Xamarin.Android.Support.CustomTabs", "Xamarin.Android.Support.v7.AppCompat"] },
{ id: "System.Private.Uri", version: "4.3.2" },
// CloudStore dependencies
{ id: "DeduplicationSigned", version: "1.0.14" },
{ id: "Microsoft.Bcl", version: "1.1.10" },
{ id: "Microsoft.Bcl.Async", version: "1.0.168" },
{ id: "Microsoft.Bcl.AsyncInterfaces", version: "5.0.0", dependentPackageIdsToSkip: ["System.Threading.Tasks.Extensions"] },
{ id: "Microsoft.Bcl.Build", version: "1.0.14" },
{ id: "Pipelines.Sockets.Unofficial", version: "2.2.0",
dependentPackageIdsToSkip: ["System.IO.Pipelines", "System.Runtime.CompilerServices.Unsafe", "Microsoft.Bcl.AsyncInterfaces"] },
{ id: "System.Diagnostics.PerformanceCounter", version: "5.0.0" },
{ id: "System.Threading.Channels", version: "6.0.0", dependentPackageIdsToSkip: ["System.Threading.Tasks.Extensions"] },
{ id: "System.Linq.Async", version: "4.0.0"},
{ id: "Polly", version: "7.2.1" },
{ id: "Polly.Contrib.WaitAndRetry", version: "1.1.1" },
// Azurite node app compiled to standalone executable
// Sources for this package are: https://github.com/Azure/Azurite
// This packaged is produced by the pipeline: https://dev.azure.com/mseng/Domino/_build?definitionId=13199
{ id: "BuildXL.Azurite.Executables", version: "1.0.0-CI-20220612-002122" },
// Testing
{ id: "System.Security.Cryptography.ProtectedData", version: "5.0.0"},
{ id: "System.Configuration.ConfigurationManager", version: "4.4.0"},
{ id: "FluentAssertions", version: "5.3.0",
dependentPackageIdsToSkip: ["System.Reflection.Emit", "System.Reflection.Emit.Lightweight"] },
{ id: "DotNet.Glob", version: "2.0.3" },
{ id: "Minimatch", version: "1.1.0.0" },
{ id: "Microsoft.ApplicationInsights", version: "2.11.0", dependentPackageIdsToIgnore: ["System.RunTime.InteropServices"] },
{ id: "Microsoft.ApplicationInsights.Agent.Intercept", version: "2.0.7" },
{ id: "Microsoft.ApplicationInsights.DependencyCollector", version: "2.3.0" },
{ id: "Microsoft.ApplicationInsights.PerfCounterCollector", version: "2.3.0" },
{ id: "Microsoft.ApplicationInsights.WindowsServer", version: "2.3.0" },
{ id: "Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel", version: "2.3.0" },
{ id: "System.Security.Cryptography.Xml", version: "4.5.0" },
{ id: "System.Text.Encodings.Web", version: "4.7.2" },
{ id: "System.Security.Permissions", version: "4.5.0" },
{ id: "System.Security.Cryptography.Pkcs", version: "4.5.0" },
{ id: "ILRepack", version: "2.0.16" },
// VS language service
{ id: "System.Runtime.Analyzers", version: "1.0.1" },
{ id: "System.Runtime.InteropServices.Analyzers", version: "1.0.1" },
{ id: "System.Security.Cryptography.Hashing.Algorithms.Analyzers", version: "1.1.0" },
{ id: "Validation", version: "2.5.42"},
// VSTS managed API
{ id: "Microsoft.TeamFoundationServer.Client", version: "16.170.0"},
{ id: "Microsoft.TeamFoundation.DistributedTask.WebApi", version: "16.170.0",
dependentPackageIdsToSkip: ["*"] },
{ id: "Microsoft.TeamFoundation.DistributedTask.Common.Contracts", version: "16.170.0"},
// MSBuild. These should be used for compile references only, as at runtime one can only practically use MSBuilds from Visual Studio / dotnet CLI
{ id: "Microsoft.Build", version: "17.0.0",
dependentPackageIdsToSkip: ["System.Threading.Tasks.Dataflow", "System.Memory", "System.Text.Json", "System.Collections.Immutable"], // These are overwritten in the deployment by DataflowForMSBuild and SystemMemoryForMSBuild since it doesn't work with the versions we use in larger buildxl.
},
{ id: "Microsoft.Build.Runtime", version: "17.0.0",
dependentPackageIdsToSkip: ["System.Threading.Tasks.Dataflow", "System.Memory"],
},
{ id: "Microsoft.Build.Tasks.Core", version: "17.0.0",
dependentPackageIdsToSkip: ["System.Threading.Tasks.Dataflow", "System.Memory", "System.Collections.Immutable"],
},
{ id: "Microsoft.Build.Utilities.Core", version: "17.0.0", dependentPackageIdsToSkip: ["System.Threading.Tasks.Dataflow", "System.Memory", "System.Text.Json", "System.Collections.Immutable"]},
{ id: "Microsoft.Build.Framework", version: "17.0.0", dependentPackageIdsToSkip: ["System.Threading.Tasks.Dataflow", "System.Memory", "System.Text.Json"]},
{ id: "Microsoft.NET.StringTools", version: "1.0.0", dependentPackageIdsToSkip: ["System.Memory", "System.Text.Json"]},
{ id: "Microsoft.Build.Locator", version: "1.5.5" },
{ id: "System.Resources.Extensions", version: "4.6.0-preview9.19411.4",
dependentPackageIdsToSkip: ["System.Memory"]},
// Buffers and Memory
{ id: "System.Buffers", version: "4.5.1" }, /* Change Sync: BuildXLSdk.cacheBindingRedirects() */ // A different version, because StackExchange.Redis uses it.
{ id: "System.Memory", version: "4.5.4", dependentPackageIdsToSkip: ["System.Runtime.CompilerServices.Unsafe", "System.Numerics.Vectors"] }, /* Change Sync: BuildXLSdk.cacheBindingRedirects() */
{ id: "System.Runtime.CompilerServices.Unsafe", version: "5.0.0" }, /* Change Sync: BuildXLSdk.cacheBindingRedirects() */
{ id: "System.IO.Pipelines", version: "6.0.2", dependentPackageIdsToSkip: ["System.Threading.Tasks.Extensions"] },
{ id: "System.Numerics.Vectors", version: "4.5.0" }, /* Change Sync: BuildXLSdk.cacheBindingRedirects() */
// Extra dependencies to make MSBuild work
{ id: "Microsoft.VisualStudio.Setup.Configuration.Interop", version: "1.16.30"},
{ id: "System.CodeDom", version: "4.4.0"},
{ id: "System.Text.Encoding.CodePages", version: "4.5.1",
dependentPackageIdsToSkip: ["System.Runtime.CompilerServices.Unsafe"]},
{ id: "System.Runtime.CompilerServices.Unsafe", version: "4.5.3", alias: "SystemRuntimeCompilerServicesUnsafeForMSBuild", dependentPackageIdsToSkip: ["*"]},
{id: "System.Numerics.Vectors", version: "4.4.0", alias: "SystemNumericsVectorsForMSBuild"},
// Used for MSBuild input/output prediction
{ id: "Microsoft.Build.Prediction", version: "0.3.0" },
{ id: "SharpZipLib", version: "1.3.3" },
{ id: "ObjectLayoutInspector", version: "0.1.4" },
// Ninja JSON graph generation helper
{ id: "BuildXL.Tools.Ninjson", version: "1.11.2" },
{ id: "BuildXL.Tools.AppHostPatcher", version: "1.0.0" },
// Kusto SDK (for netstandard)
{ id: "Microsoft.Azure.Kusto.Cloud.Platform.Azure.NETStandard", version: "6.1.8",
dependentPackageIdsToSkip: ["Microsoft.Extensions.PlatformAbstractions"] },
{ id: "Microsoft.Azure.Kusto.Cloud.Platform.NETStandard", version: "6.1.8",
dependentPackageIdsToSkip: ["Microsoft.Extensions.PlatformAbstractions"] },
{ id: "Microsoft.Azure.Kusto.Data.NETStandard", version: "6.1.8",
dependentPackageIdsToSkip: ["Microsoft.Extensions.PlatformAbstractions"] },
{ id: "Microsoft.Azure.Kusto.Ingest.NETStandard", version: "6.1.8",
dependentPackageIdsToSkip: ["Microsoft.Extensions.PlatformAbstractions"] },
{ id: "Microsoft.IO.RecyclableMemoryStream", version: "1.2.2" },
{ id: "Microsoft.Azure.KeyVault", version: "3.0.1"},
{ id: "Microsoft.Azure.KeyVault.WebKey", version: "3.0.1"},
// Kusto SDK (for full framework)
{ id: "Microsoft.Azure.Kusto.Data", version: "6.1.8" },
{ id: "Microsoft.Azure.Kusto.Ingest", version: "6.1.8" },
{ id: "Microsoft.Azure.Kusto.Tools", version: "2.2.2" },
{ id: "Microsoft.Azure.Management.Kusto", version: "1.0.0" },
// Azure Communication
{ id: "Microsoft.Rest.ClientRuntime", version: "2.3.21",
dependentPackageIdsToSkip: ["Microsoft.NETCore.Runtime"],
dependentPackageIdsToIgnore: ["Microsoft.NETCore.Runtime"],
},
{ id: "Microsoft.Rest.ClientRuntime.Azure", version: "3.3.18" },
{ id: "Microsoft.Rest.ClientRuntime.Azure.Authentication", version: "2.4.0" },
// Azure Management SDK
{ id: "Microsoft.Azure.Management.AppService.Fluent", version: "1.33.0" },
{ id: "Microsoft.Azure.Management.BatchAI.Fluent", version: "1.33.0" },
{ id: "Microsoft.Azure.Management.Cdn.Fluent", version: "1.33.0" },
{ id: "Microsoft.Azure.Management.Compute.Fluent", version: "1.33.0" },
{ id: "Microsoft.Azure.Management.ContainerInstance.Fluent", version: "1.33.0" },
{ id: "Microsoft.Azure.Management.ContainerRegistry.Fluent", version: "1.33.0" },
{ id: "Microsoft.Azure.Management.ContainerService.Fluent", version: "1.33.0" },
{ id: "Microsoft.Azure.Management.CosmosDB.Fluent", version: "1.33.0" },
{ id: "Microsoft.Azure.Management.Dns.Fluent", version: "1.33.0" },
{ id: "Microsoft.Azure.Management.EventHub.Fluent", version: "1.33.0" },
{ id: "Microsoft.Azure.Management.Graph.RBAC.Fluent", version: "1.33.0" },
{ id: "Microsoft.Azure.Management.KeyVault.Fluent", version: "1.33.0" },
{ id: "Microsoft.Azure.Management.Locks.Fluent", version: "1.33.0" },
{ id: "Microsoft.Azure.Management.Msi.Fluent", version: "1.33.0" },
{ id: "Microsoft.Azure.Management.Network.Fluent", version: "1.33.0" },
{ id: "Microsoft.Azure.Management.PrivateDns.Fluent", version: "1.33.0" },
{ id: "Microsoft.Azure.Management.Search.Fluent", version: "1.33.0" },
{ id: "Microsoft.Azure.Management.ServiceBus.Fluent", version: "1.33.0" },
{ id: "Microsoft.Azure.Management.Sql.Fluent", version: "1.33.0" },
{ id: "Microsoft.Azure.Management.Storage.Fluent", version: "1.33.0" },
{ id: "Microsoft.Azure.Management.TrafficManager.Fluent", version: "1.33.0" },
// These are the ones we actually care about
{ id: "Microsoft.Azure.Management.Redis", version: "5.0.0" },
{ id: "Microsoft.Azure.Management.Redis.Fluent", version: "1.33.0" },
{ id: "Microsoft.Azure.Management.ResourceManager.Fluent", version: "1.33.0" },
{ id: "Microsoft.Azure.Management.Fluent", version: "1.33.0" },
{ id: "Microsoft.Azure.Management.Monitor.Fluent", version: "1.33.0" },
{ id: "Microsoft.Azure.Management.Monitor", version: "0.25.0-preview" },
// FsCheck
{ id: "FsCheck", version: "2.14.3" },
{ id: "FSharp.Core", version: "4.2.3" },
// ANTLR
{ id: "Antlr4.Runtime.Standard", version: "4.7.2" },
// Runtime dependencies for Linux
{
id: "runtime.ubuntu-linux-x64.buildxl",
version: "0.1.0-20221020.0.2",
osSkip: importFile(f`config.microsoftInternal.dsc`).isMicrosoftInternal
? []
: [ "win", "macOS", "unix" ]
},
// For C++ testing
{ id: "boost", version: "1.71.0.0" },
// Needed for SBOM Generation
{ id: "Microsoft.Extensions.Logging.Abstractions", version: "6.0.0", alias: "Microsoft.Extensions.Logging.Abstractions.v6.0.0", dependentPackageIdsToSkip: ["System.Buffers", "System.Memory"] },
{ id: "System.Text.Encodings.Web", version: "5.0.1", dependentPackageIdsToSkip: ["System.Buffers", "System.Memory"], alias: "System.Text.Encodings.Web.v5.0.1" },
{ id: "packageurl-dotnet", version: "1.0.0" },
{ id: "PackageUrl", version: "1.0.0" },
{ id: "System.Reactive", version: "4.4.1" },
// Windows CoW on ReFS
{ id: "CopyOnWrite", version: "0.2.1" },
],
doNotEnforceDependencyVersions: true,
},
importFile(f`config.microsoftInternal.dsc`).resolver,
// .NET Runtimes.
{ kind: "SourceResolver", modules: [f`Public\Sdk\SelfHost\Libraries\Dotnet-Runtime-External\module.config.dsc`] },
{ kind: "SourceResolver", modules: [f`Public\Sdk\SelfHost\Libraries\Dotnet-Runtime-5-External\module.config.dsc`] },
{ kind: "SourceResolver", modules: [f`Public\Sdk\SelfHost\Libraries\Dotnet-Runtime-6-External\module.config.dsc`] },
{
kind: "Download",
downloads: [
// PowerShell.Core
{
moduleName: "PowerShell.Core.win-x64",
url: "https://github.com/PowerShell/PowerShell/releases/download/v6.1.3/PowerShell-6.1.3-win-x64.zip",
hash: "VSO0:E8E98155383EDFE3CA6D06854638560EAB57C8225880B5308547A916DBE9A9A900",
archiveType: "zip",
},
{
moduleName: "PowerShell.Core.osx-x64",
url: "https://github.com/PowerShell/PowerShell/releases/download/v6.1.3/PowerShell-6.1.3-osx-x64.tar.gz",
hash: "VSO0:6D3B557962CC26CC9BB6F8A35B288CE8C68460E68B74B73C85BECAE87BB311D600",
archiveType: "tgz",
},
{
moduleName: "PowerShell.Core.linux-x64",
url: "https://github.com/PowerShell/PowerShell/releases/download/v6.1.3/PowerShell-6.1.3-linux-x64.tar.gz",
hash: "VSO0:159D6D8F82D59AD34D2F8A7084D05C25D6B532DE22CD9502882385F62CDD070300",
archiveType: "tgz",
},
// XNU kernel sources
{
moduleName: "Apple.Darwin.Xnu",
url: "https://github.com/apple/darwin-xnu/archive/xnu-4903.221.2.tar.gz",
hash: "VSO0:D6D26AEECA99240D2D833B6B8B811609B9A6E3516C0EE97A951B64F9AA4F90F400",
archiveType: "tgz",
},
// DotNet Core Runtime 6.0.3
{
moduleName: "DotNet-Runtime.win-x64.6.0.201",
url: "https://download.visualstudio.microsoft.com/download/pr/cf4207e9-1af7-4eec-8f3b-78880cae7500/1a1bd8eea1a0fb4287b3527bdfa4f757/dotnet-runtime-6.0.3-win-x64.zip",
hash: "VSO0:F270ACEE84A4BE9A229AECC0A5B8D09C0BF01684674B3066516CF2FA58EEF4A100",
archiveType: "zip",
},
{
moduleName: "DotNet-Runtime.osx-x64.6.0.201",
url: "https://download.visualstudio.microsoft.com/download/pr/1f354e35-ff3f-4de7-b6be-f5001b7c3976/b7c8814ab28a6f00f063440e63903105/dotnet-runtime-6.0.3-osx-x64.tar.gz",
hash: "VSO0:F934E2046E396EBFD83F21AA4E3B7EDB42AC307EB71F423D2D57945DE52D7F5B00",
archiveType: "tgz",
},
{
moduleName: "DotNet-Runtime.linux-x64.6.0.201",
url: "https://download.visualstudio.microsoft.com/download/pr/4e766615-57e6-4b1d-a574-25eeb7a71107/9f95f74c33711e085302ffd644ef86ee/dotnet-runtime-6.0.3-linux-x64.tar.gz",
hash: "VSO0:A3426598ACFE162FB39F2D508DF43F23B4169BD3DA26A69535DA11CAB387641F00",
archiveType: "tgz",
},
// DotNet Core Runtime 5.0
{
moduleName: "DotNet-Runtime.win-x64.5.0.100",
url: "https://download.visualstudio.microsoft.com/download/pr/e285f4d2-03b3-44b3-960c-4897d24b36a6/3e2458ba37e913aad84394253c0a50da/dotnet-runtime-5.0.10-win-x64.zip",
hash: "VSO0:23E48E45703DAC800E97ADE38E43CACB8518D895F72AAB9EB426D9ADE837F6C200",
archiveType: "zip",
},
{
moduleName: "DotNet-Runtime.osx-x64.5.0.100",
url: "https://download.visualstudio.microsoft.com/download/pr/112291a5-e3e0-4741-9c66-c9cea6231f3f/3ebd75dfda0492fcbf50c6f939762c46/dotnet-runtime-5.0.0-osx-x64.tar.gz",
hash: "VSO0:FA5B6AD52AB940BD56BFAE1A1D841885071EE82A356C8D7EA82FCCAE562920FB00",
archiveType: "tgz",
},
{
moduleName: "DotNet-Runtime.linux-x64.5.0.100",
url: "https://download.visualstudio.microsoft.com/download/pr/4bb93b65-658d-4c6c-b4e2-32ec2a3d8aa6/ca3a11e65bcbc6dbb30330a54fcc1059/dotnet-runtime-5.0.10-linux-x64.tar.gz",
hash: "VSO0:A7B32570216C6EBF2EA18584402EE03FB58246483A49977877D20B9654A321F300",
archiveType: "tgz",
},
// DotNet Core Runtime 3.1
{
moduleName: "DotNet-Runtime.win-x64.3.1.19",
url: "https://download.visualstudio.microsoft.com/download/pr/931d585f-d14b-4714-93e7-b6c648b2aabd/8040f6c391002ae09b3e79662033eeb1/aspnetcore-runtime-3.1.19-win-x64.zip",
hash: "VSO0:AA74CA39625548953060640B7F2D2B535A12E49B2E8995E66E86C774F2D6C4FC00",
archiveType: "zip",
},
{
moduleName: "DotNet-Runtime.osx-x64.3.1.19",
url: "https://download.visualstudio.microsoft.com/download/pr/d8fc8a1f-8d5f-4ab9-b847-5a265231987f/f634e0332753e0a436d16c7a9e0614dc/aspnetcore-runtime-3.1.19-osx-x64.tar.gz",
hash: "VSO0:51F3BFF42A88CA9DE4034CC6EE895AB9151498DE380EA9A3B3D41E0CB7BE607600",
archiveType: "tgz",
},
{
moduleName: "DotNet-Runtime.linux-x64.3.1.19",
url: "https://download.visualstudio.microsoft.com/download/pr/7a050aa5-7842-4bfa-a1c9-67c6c5995ea9/5592f443610943d5ca738ae92309dfab/aspnetcore-runtime-3.1.19-linux-x64.tar.gz",
hash: "VSO0:C6CA26DD12EBC3A35AEEFAF400DA970F2AAAA6864EEF660247754594F4B330DF00",
archiveType: "tgz",
},
// The following are needed for dotnet core MSBuild test deployments
{
moduleName: "DotNet-Runtime.win-x64.2.2.2",
url: "https://download.visualstudio.microsoft.com/download/pr/b10d0a68-b720-48ae-bab8-4ac39bd1b5d3/f32b8b41dff5c1488c2b915a007fc4a6/dotnet-runtime-2.2.2-win-x64.zip",
hash: "VSO0:6BBAE77F9BA0231C90ABD9EA720FF886E8613CE8EF29D8B657AF201E2982829600",
archiveType: "zip",
},
// NodeJs
{
moduleName: "NodeJs.win-x64",
url: "https://nodejs.org/dist/v18.6.0/node-v18.6.0-win-x64.zip",
hash: "VSO0:EA729EEA528055396523F3F5BD61EDD769C251EB7B4483AABFEB511333E60AA000",
archiveType: "zip",
},
{
moduleName: "NodeJs.osx-x64",
url: "https://nodejs.org/dist/v18.6.0/node-v18.6.0-darwin-x64.tar.gz",
hash: "VSO0:653B5954AD06BB6C9B7141853649602790FCB0031B81FDB82241333E2EE1350200",
archiveType: "tgz",
},
{
moduleName: "NodeJs.linux-x64",
url: "https://nodejs.org/dist/v18.6.0/node-v18.6.0-linux-x64.tar.gz",
hash: "VSO0:15A59CD4CC7C08A91FDF0C028F1C1129DC4B635749514739E1B2C6224E6420FB00",
archiveType: "tgz",
},
{
moduleName: "YarnTool",
extractedValueName: "yarnPackage",
url: 'https://registry.npmjs.org/yarn/-/yarn-1.22.19.tgz',
archiveType: "tgz"
},
],
},
],
qualifiers: {
defaultQualifier: {
configuration: "debug",
targetFramework: "net6.0",
targetRuntime:
Context.getCurrentHost().os === "win" ? "win-x64" :
Context.getCurrentHost().os === "macOS" ? "osx-x64" : "linux-x64",
},
namedQualifiers: {
Debug: {
configuration: "debug",
targetFramework: "net6.0",
targetRuntime: "win-x64",
},
DebugNet472: {
configuration: "debug",
targetFramework: "net472",
targetRuntime: "win-x64",
},
DebugDotNet6: {
configuration: "debug",
targetFramework: "net6.0",
targetRuntime: "win-x64",
},
DebugDotNetCoreMac: {
configuration: "debug",
targetFramework: "net6.0",
targetRuntime: "osx-x64",
},
DebugLinux: {
configuration: "debug",
targetFramework: "net6.0",
targetRuntime: "linux-x64",
},
// Release
Release: {
configuration: "release",
targetFramework: "net6.0",
targetRuntime: "win-x64",
},
ReleaseNet472: {
configuration: "release",
targetFramework: "net472",
targetRuntime: "win-x64",
},
ReleaseDotNet6: {
configuration: "release",
targetFramework: "net6.0",
targetRuntime: "win-x64",
},
ReleaseDotNetCoreMac: {
configuration: "release",
targetFramework: "net6.0",
targetRuntime: "osx-x64",
},
ReleaseLinux: {
configuration: "release",
targetFramework: "net6.0",
targetRuntime: "linux-x64",
},
}
},
mounts: [
...importFile(f`unix.mounts.dsc`).mounts,
{
name: a`DeploymentRoot`,
path: p`Out/Bin`,
trackSourceFileChanges: true,
isWritable: true,
isReadable: true,
},
{
name: a`CgNpmRoot`,
path: p`cg/npm`,
trackSourceFileChanges: true,
isWritable: false,
isReadable: true
},
{
// Special scrubbable mount with the content that can be cleaned up by running bxl.exe /scrub
name: a`ScrubbableDeployment`,
path: Context.getCurrentHost().os === "win" ? p`Out/Objects/TempDeployment` : p`Out/Objects.noindex/TempDeployment`,
trackSourceFileChanges: true,
isWritable: true,
isReadable: true,
isScrubbable: true,
},
{
name: a`SdkRoot`,
path: p`Public/Sdk/Public`,
trackSourceFileChanges: true,
isWritable: false,
isReadable: true,
},
{
name: a`Example`,
path: p`Example`,
trackSourceFileChanges: true,
isWritable: false,
isReadable: true
},
{
name: a`Sandbox`,
path: p`Public/Src/Sandbox`,
trackSourceFileChanges: true,
isWritable: false,
isReadable: true
},
...(Environment.getStringValue("BUILDXL_DROP_CONFIG") !== undefined ?
[
{
// Path used in CloudBuild for things like drop configuration files. These files should not be tracked.
name: a`CloudBuild`,
path: Environment.getPathValue("BUILDXL_DROP_CONFIG").parent,
trackSourceFileChanges: false,
isWritable: false,
isReadable: true
}
] : []),
{
name: a`ThirdParty_mono`,
path: p`third_party/mono@abad3612068e7333956106e7be02d9ce9e346f92`,
trackSourceFileChanges: true,
isWritable: false,
isReadable: true
},
...(Environment.hasVariable("TOOLPATH_GUARDIAN") ?
[
{
name: a`GuardianDrop`,
path: Environment.getPathValue("TOOLPATH_GUARDIAN").parent,
isReadable: true,
isWritable: true,
trackSourceFileChanges: true
}
] : []),
...(Environment.hasVariable("ESRP_POLICY_CONFIG") ?
[
{
name: a`EsrpPolicyConfig`,
path: Environment.getPathValue("ESRP_POLICY_CONFIG").parent,
isReadable: true,
isWritable: false,
trackSourceFileChanges: true
}
] : []),
...(Environment.hasVariable("ESRP_SESSION_CONFIG") ?
[
{
name: a`EsrpSessionConfig`,
path: Environment.getPathValue("ESRP_SESSION_CONFIG").parent,
isReadable: true,
isWritable: false,
trackSourceFileChanges: true
}
] : [])
],
searchPathEnumerationTools: [
r`cl.exe`,
r`lib.exe`,
r`link.exe`,
r`sn.exe`,
r`csc.exe`,
r`StyleCopCmd.exe`,
r`BuildXL.LogGen.exe`,
r`csc.exe`,
r`ccrefgen.exe`,
r`ccrewrite.exe`,
r`FxCopCmd.exe`,
r`NuGet.exe`
],
ide: {
// Let the /VS flag generate the projects in the source tree so that add/remove C# file works properly.
canWriteToSrc: true,
dotSettingsFile: f`Public/Sdk/SelfHost/BuildXL/BuildXL.sln.DotSettings`,
},
cacheableFileAccessAllowlist: Context.getCurrentHost().os !== "win" ? [] : [
// Allow the debugger to be able to be launched from BuildXL Builds
{
name: "JitDebugger",
toolPath: f`${Environment.getDirectoryValue("SystemRoot")}/system32/vsjitdebugger.exe`,
pathRegex: `.*${Environment.getStringValue("CommonProgramFiles").replace("\\", "\\\\")}\\\\Microsoft Shared\\\\VS7Debug\\\\.*`
},
// cl.exe may write temporary files under its working directory
{
name: "cl.exe",
toolPath: a`cl.exe`,
pathRegex: ".*.tmp"
}
]
});