Merged PR 763864: DScript spec cleanup

Mostly cache specs, but also touching some shared stuff:
* Unified some Nuget packages (System.Collections.Immutable, System.Memory, etc), and bumped versions to the latest. This triggered a bunch of other updates...
* Removed a lot of unnecessary 'withQualifier'
* Simplified some references by fixing the 'runtimes' folder behavior on the Nuget resolver (which forced a bunch of 'withWinRuntime' calls

More cleanup passes are possible, but those to come later
This commit is contained in:
Serge Mera 2024-02-01 22:30:56 +00:00
Родитель 69a854a55e
Коммит 2a6c56a2c8
47 изменённых файлов: 238 добавлений и 300 удалений

Просмотреть файл

@ -85,7 +85,7 @@ export function test(args: TestArguments): Managed.TestResult {
skipTestRun: !BuildXLSdk.targetFrameworkMatchesCurrentHost,
references: [
SdkTesting.Helper.dll,
importFrom("System.Runtime.CompilerServices.Unsafe").withQualifier({targetFramework: "netstandard2.0"}).pkg,
importFrom("System.Runtime.CompilerServices.Unsafe").pkg,
...importFrom("Sdk.Managed.Testing.XUnit").xunitReferences
],
tools: {

Просмотреть файл

@ -4,10 +4,9 @@ import {DotNetCoreVersion, Assembly, Factory} from "Sdk.Managed.Shared";
namespace Helpers {
export declare const qualifier : {};
// For now there are no assemblies to skip, leave this infra in place just in case we need
// this again.
const assemblyNamesToExclude = Set.create(
a`System.IO.FileSystem.AccessControl`,
a`System.Security.AccessControl`,
a`System.Security.Principal.Windows`
);
// We skip deploying those files from the .NET Core package as we need those very assemblies from their dedicated package

Просмотреть файл

@ -102,5 +102,5 @@ export const framework : Shared.Framework = {
function createDefaultAssemblies() : Shared.Assembly[] {
const pkgContents = importFrom("Microsoft.NETCore.App.Ref60").Contents.all;
return Helpers.createDefaultAssemblies(pkgContents, "net6.0", /*includeAllAssemblies*/ false);
return Helpers.createDefaultAssemblies(pkgContents, "net6.0", /*includeAllAssemblies*/ true);
}

Просмотреть файл

@ -69,7 +69,7 @@ const additionalNetCoreRuntimeContent = isDotNetCore(qualifier.targetFramework)
// into a self-contained deployment or treat it as a framework-dependent deployment as intended, let's do the latter
...(getXunitConsoleRuntimeConfigNetCoreAppFiles()),
xunitConsolePackage.getFile(r`/tools/netcoreapp2.0/xunit.runner.utility.netcoreapp10.dll`),
// Note that below we are using different console runner due to this bug https://github.com/xunit/xunit/pull/1846
// that the xunit maintainer does not want to fix. Let's consider removing this patch when we upgrade to xunit 3.0.
xunitNetCoreConsolePackage.getFile(r`/lib/netcoreapp2.0/xunit.console.dll`)

Просмотреть файл

@ -44,10 +44,10 @@ export function getSystemMemoryPackages(includeNetStandard: boolean) : (Managed.
export function getSystemMemoryPackagesWithoutNetStandard() : Managed.ManagedNugetPackage[] {
return [
...(isDotNetCore ? [] : [
importFrom("System.Memory").withQualifier({targetFramework: "netstandard2.0"}).pkg,
importFrom("System.Buffers").withQualifier({targetFramework: "netstandard2.0"}).pkg,
importFrom("System.Runtime.CompilerServices.Unsafe").withQualifier({targetFramework: "netstandard2.0"}).pkg,
importFrom("System.Numerics.Vectors").withQualifier({targetFramework: "netstandard2.0"}).pkg,
importFrom("System.Memory").pkg,
importFrom("System.Buffers").pkg,
importFrom("System.Runtime.CompilerServices.Unsafe").pkg,
importFrom("System.Numerics.Vectors").pkg,
]
),
];

Просмотреть файл

@ -539,8 +539,8 @@ export function bxlBindingRedirects() {
name: "System.Runtime.CompilerServices.Unsafe",
publicKeyToken: "b03f5f7f11d50a3a",
culture: "neutral",
oldVersion: "0.0.0.0-5.0.0.0",
newVersion: "5.0.0.0", // Corresponds to: { id: "System.Runtime.CompilerServices.Unsafe", version: "5.0.0" },
oldVersion: "0.0.0.0-6.0.0.0",
newVersion: "6.0.0.0", // Corresponds to: { id: "System.Runtime.CompilerServices.Unsafe", version: "6.0.0" },
},
];
}

Просмотреть файл

@ -100,6 +100,18 @@ export interface Net7Qualifier extends Qualifier {
targetRuntime: "win-x64" | "osx-x64" | "linux-x64";
}
/**
* Having a net7 specific qualifier (without net 6) for some specific tests that only
* work in net 7.
* TODO: This should be consolidated with DefaultQualifier when we stop compiling for net6
*/
@@public
export interface Net7QualifierWithNet472 extends Qualifier {
configuration: "debug" | "release";
targetFramework: "net7.0" | "net472";
targetRuntime: "win-x64" | "osx-x64" | "linux-x64";
}
/**
* LatestFullFrameworkQualifier, used to pin tool execution to a specific .NET Framework version
*/

Просмотреть файл

@ -4,7 +4,7 @@
import * as Managed from "Sdk.Managed";
import * as BuildXLSdk from "Sdk.BuildXL";
export declare const qualifier: BuildXLSdk.DefaultQualifierWithNet472;
export declare const qualifier: BuildXLSdk.Net7QualifierWithNet472;
@@public
export const msbuildReferences: Managed.ManagedNugetPackage[] = [
@ -13,24 +13,28 @@ export const msbuildReferences: Managed.ManagedNugetPackage[] = [
importFrom("Microsoft.Build").pkg,
importFrom("Microsoft.Build.Tasks.Core").pkg,
importFrom("Microsoft.NET.StringTools").pkg,
...addIf(BuildXLSdk.isFullFramework, importFrom("System.Runtime.CompilerServices.Unsafe").withQualifier({targetFramework: "netstandard2.0"}).pkg),
...addIf(BuildXLSdk.isFullFramework, importFrom("System.Runtime.CompilerServices.Unsafe").pkg),
];
/** Runtime content for tests */
/**
* Runtime content for tests
* Observe that we use a net7-specific version of msbuild.
**/
@@public
export const msbuildRuntimeContent = [
importFrom("Microsoft.Build.Runtime").pkg,
importFrom("System.MemoryForVBCS").pkg,
importFrom("System.Numerics.Vectors").withQualifier({targetFramework: "netstandard2.0"}).pkg,
importFrom("System.Collections.Immutable.ForVBCS").pkg,
importFrom("System.Memory").pkg,
importFrom("System.Numerics.Vectors").pkg,
importFrom("System.Collections.Immutable").pkg,
importFrom("System.Runtime.CompilerServices.Unsafe").pkg,
importFrom("System.Threading.Tasks.Dataflow").pkg,
importFrom("System.Threading.Tasks.Extensions").pkg,
importFrom("Microsoft.Bcl.AsyncInterfaces").pkg,
...BuildXLSdk.isDotNetCoreOrStandard ? [
importFrom("System.Text.Encoding.CodePages").pkg,
importFrom("Microsoft.Build.Tasks.Core").pkg,
importFrom("Microsoft.Build.Runtime").Contents.all.getFile(r`contentFiles/any/net6.0/MSBuild.dll`),
importFrom("Microsoft.Build.Runtime").Contents.all.getFile(r`contentFiles/any/net6.0/MSBuild.runtimeconfig.json`),
importFrom("Microsoft.Build.Runtime").Contents.all.getFile(r`contentFiles/any/net7.0/MSBuild.dll`),
importFrom("Microsoft.Build.Runtime").Contents.all.getFile(r`contentFiles/any/net7.0/MSBuild.runtimeconfig.json`),
importFrom("Microsoft.NET.StringTools").pkg
]
: [

Просмотреть файл

@ -17,7 +17,7 @@ export const NetFx = BuildXLSdk.NetFx;
@@public
export function getSerializationPackages(includeNetStandard: boolean) : (Managed.ManagedNugetPackage | Managed.Assembly)[] {
return [
importFrom("System.Memory.Data").withQualifier({targetFramework: "netstandard2.0"}).pkg,
importFrom("System.Memory.Data").pkg,
...getSystemTextJson(includeNetStandard),
...getSerializationPackagesWithoutNetStandard()
];
@ -27,13 +27,13 @@ export function getSerializationPackages(includeNetStandard: boolean) : (Managed
export function getSerializationPackagesWithoutNetStandard() : (Managed.ManagedNugetPackage)[] {
return [
...(BuildXLSdk.isFullFramework ? [
importFrom("System.Runtime.CompilerServices.Unsafe").withQualifier({ targetFramework: "netstandard2.0" }).pkg,
importFrom("System.Runtime.CompilerServices.Unsafe").pkg,
] : []),
...(BuildXLSdk.isFullFramework || qualifier.targetFramework === "netstandard2.0" ? [
importFrom("System.Memory").withQualifier({targetFramework: "netstandard2.0"}).pkg,
importFrom("System.Memory").pkg,
] : []),
importFrom("System.Text.Encodings.Web").withQualifier({targetFramework: "netstandard2.0"}).pkg,
importFrom("System.Numerics.Vectors").withQualifier({targetFramework: "netstandard2.0"}).pkg,
importFrom("System.Text.Encodings.Web").pkg,
importFrom("System.Numerics.Vectors").pkg,
];
}
@ -53,20 +53,15 @@ export function getSystemTextJsonWithoutNetStandard() : Managed.ManagedNugetPack
return [
...addIf(
!BuildXLSdk.isDotNetCore,
importFrom("System.Text.Json").withQualifier({targetFramework: "netstandard2.0"}).pkg),
importFrom("System.Text.Json").pkg),
];
}
@@public
export function getProtobufPackages() : Managed.ManagedNugetPackage[] {
return [
BuildXLSdk.isFullFramework || qualifier.targetFramework === "netstandard2.0" ?
importFrom("System.Memory").withQualifier({ targetFramework: "netstandard2.0" }).pkg
: importFrom("System.Memory").pkg,
BuildXLSdk.isFullFramework || qualifier.targetFramework === "netstandard2.0" ?
importFrom("System.Buffers").withQualifier({ targetFramework: "netstandard2.0" }).pkg
: importFrom("System.Buffers").pkg,
importFrom("System.Buffers").pkg,
importFrom("System.Memory").pkg,
importFrom("Google.Protobuf").pkg,
];
}
@ -118,11 +113,14 @@ export function getGrpcAspNetCorePackages() : (Managed.ManagedNugetPackage | Man
importFrom("Grpc.AspNetCore.Server.ClientFactory").pkg,
importFrom("Grpc.AspNetCore.Server").pkg,
BuildXLSdk.withWinRuntime(importFrom("System.Security.Cryptography.ProtectedData").pkg, r`runtimes/win/lib/netstandard2.0`),
importFrom("System.Security.Cryptography.ProtectedData").pkg,
// AspNetCore assemblies
Managed.Factory.filterRuntimeSpecificBinaries(BuildXLSdk.WebFramework.getFrameworkPackage(), [
importFrom("System.IO.Pipelines").pkg
importFrom("System.IO.Pipelines").pkg,
importFrom("System.Diagnostics.EventLog").pkg,
importFrom("System.Security.Cryptography.Pkcs").pkg,
importFrom("System.Security.Cryptography.Xml").pkg,
])
])
];

Просмотреть файл

@ -20,8 +20,8 @@ namespace Distributed {
: []),
importFrom("Azure.Core.Amqp").pkg,
importFrom("Microsoft.Azure.Amqp").pkg,
importFrom("System.Memory.Data").withQualifier({targetFramework: "netstandard2.0"}).pkg,
BuildXLSdk.withWinRuntime(importFrom("System.Security.Cryptography.ProtectedData").pkg, r`runtimes/win/lib/netstandard2.0`),
importFrom("System.Memory.Data").pkg,
importFrom("System.Security.Cryptography.ProtectedData").pkg,
];
@@public
@ -74,8 +74,8 @@ namespace Distributed {
...(BuildXLSdk.isFullFramework
? [
// Needed because net472 -> netstandard2.0 translation is not yet supported by the NuGet resolver.
importFrom("System.IO.Pipelines").withQualifier({ targetFramework: "netstandard2.0" }).pkg,
importFrom("System.Runtime.CompilerServices.Unsafe").withQualifier({ targetFramework: "netstandard2.0" }).pkg,
importFrom("System.IO.Pipelines").pkg,
importFrom("System.Runtime.CompilerServices.Unsafe").pkg,
importFrom("Pipelines.Sockets.Unofficial").withQualifier({ targetFramework: "netstandard2.0" }).pkg,
]
: [

Просмотреть файл

@ -107,8 +107,8 @@ namespace DistributedTest {
...(BuildXLSdk.isFullFramework
? [
// Needed because net472 -> netstandard2.0 translation is not yet supported by the NuGet resolver.
importFrom("System.IO.Pipelines").withQualifier({ targetFramework: "netstandard2.0" }).pkg,
importFrom("System.Runtime.CompilerServices.Unsafe").withQualifier({ targetFramework: "netstandard2.0" }).pkg,
importFrom("System.IO.Pipelines").pkg,
importFrom("System.Runtime.CompilerServices.Unsafe").pkg,
importFrom("Pipelines.Sockets.Unofficial").withQualifier({ targetFramework: "netstandard2.0" }).pkg,
]
: [

Просмотреть файл

@ -14,13 +14,11 @@ namespace Grpc {
references: [
...getGrpcPackages(true),
...BuildXLSdk.bclAsyncPackages,
...addIfLazy(BuildXLSdk.isDotNetCoreOrStandard, () => [
BuildXLSdk.withWinRuntime(importFrom("System.Security.Cryptography.ProtectedData").pkg, r`runtimes/win/lib/netstandard2.0`),
]),
importFrom("System.Security.Cryptography.ProtectedData").pkg,
...addIfLazy(qualifier.targetFramework === "netstandard2.0", () => [
// Don't need adding the following package for net6+
BuildXLSdk.withWinRuntime(importFrom("System.Security.Cryptography.Cng").pkg, r`runtimes/win/lib/netstandard2.0`),
importFrom("System.Security.Cryptography.Cng").pkg
]),
...addIf(!BuildXLSdk.isDotNetCoreOrStandard, NetFx.System.Security.dll),

Просмотреть файл

@ -5,10 +5,6 @@ namespace Library {
export declare const qualifier : BuildXLSdk.AllSupportedQualifiers;
@@public
export const systemMemoryPackage =
BuildXLSdk.isFullFramework ? importFrom("System.Memory").withQualifier({ targetFramework: "netstandard2.0" }).pkg : importFrom("System.Memory").pkg;
@@public
export const dll = BuildXLSdk.library({
assemblyName: "BuildXL.Cache.ContentStore",
@ -22,7 +18,7 @@ namespace Library {
),
...BuildXLSdk.systemThreadingTasksDataflowPackageReference,
systemMemoryPackage,
importFrom("System.Memory").pkg,
...importFrom("BuildXL.Utilities").Native.securityDlls,
UtilitiesCore.dll,

Просмотреть файл

@ -21,7 +21,7 @@ namespace Test {
),
...addIf(BuildXLSdk.isFullFramework,
importFrom("System.Memory").withQualifier({targetFramework: "netstandard2.0"}).pkg
importFrom("System.Memory").pkg
),
// TODO: This needs to be renamed to just utilities... but it is in a package in public/src
importFrom("BuildXL.Utilities").dll,

Просмотреть файл

@ -40,7 +40,10 @@ namespace LauncherServer {
// AspNetCore assemblies
Managed.Factory.filterRuntimeSpecificBinaries(BuildXLSdk.WebFramework.getFrameworkPackage(), [
importFrom("System.IO.Pipelines").pkg
importFrom("System.IO.Pipelines").pkg,
importFrom("System.Diagnostics.EventLog").pkg,
importFrom("System.Security.Cryptography.Pkcs").pkg,
importFrom("System.Security.Cryptography.Xml").pkg,
])
],
assemblyBindingRedirects: [

Просмотреть файл

@ -16,7 +16,7 @@ namespace Library {
importFrom("Microsoft.Bcl.AsyncInterfaces").pkg,
...importFrom("BuildXL.Cache.ContentStore").getAzureBlobStorageSdkPackages(true),
importFrom("Microsoft.IdentityModel.Abstractions").pkg,
importFrom("System.Memory.Data").withQualifier({targetFramework: "netstandard2.0"}).pkg,
importFrom("System.Memory.Data").pkg,
importFrom("NLog").pkg,
importFrom("BuildXL.Cache.ContentStore").Hashing.dll,
importFrom("BuildXL.Cache.ContentStore").Interfaces.dll,

Просмотреть файл

@ -10,7 +10,7 @@ namespace ProcessPipExecutor {
allowUnsafeBlocks: true,
references: [
...addIfLazy(!BuildXLSdk.isDotNetCore, () => [
importFrom("System.Memory").withQualifier({ targetFramework: "netstandard2.0" }).pkg,
importFrom("System.Memory").pkg,
]),
Processes.dll,

Просмотреть файл

@ -16,8 +16,8 @@ namespace Processes.External {
],
references: [
...addIfLazy(!BuildXLSdk.isDotNetCore, () => [
importFrom("System.Text.Json").withQualifier({targetFramework: "netstandard2.0"}).pkg,
importFrom("System.Memory").withQualifier({targetFramework: "netstandard2.0"}).pkg,
importFrom("System.Text.Json").pkg,
importFrom("System.Memory").pkg,
BuildXLSdk.NetFx.System.Net.Http.dll,
NetFx.Netstandard.dll
]),

Просмотреть файл

@ -20,8 +20,8 @@ namespace Processes {
// should go to 'ProcessPipExecutor' instead.
...addIfLazy(!BuildXLSdk.isDotNetCore, () => [
importFrom("System.Text.Json").withQualifier({targetFramework: "netstandard2.0"}).pkg,
importFrom("System.Memory").withQualifier({ targetFramework: "netstandard2.0" }).pkg,
importFrom("System.Text.Json").pkg,
importFrom("System.Memory").pkg,
]),
...addIf(BuildXLSdk.isFullFramework,

Просмотреть файл

@ -15,7 +15,7 @@ namespace Scheduler {
NetFx.System.Runtime.Serialization.dll,
NetFx.System.Text.Encoding.dll,
NetFx.Netstandard.dll,
importFrom("System.Text.Json").withQualifier({targetFramework: "netstandard2.0"}).pkg,
importFrom("System.Text.Json").pkg,
importFrom("System.Collections.Immutable").pkg
]),
...addIfLazy(BuildXLSdk.isDotNetCore, () => [

Просмотреть файл

@ -60,12 +60,7 @@ namespace BuildXL.Scheduler.Tracing
var serializerOptions = new JsonSerializerOptions
{
WriteIndented = true,
#if NET5_0_OR_GREATER
// .NET 5 and 6 have a different way of dealing with null values
DefaultIgnoreCondition = System.Text.Json.Serialization.JsonIgnoreCondition.WhenWritingNull,
#else
IgnoreNullValues = true,
#endif
};
try

Просмотреть файл

@ -22,7 +22,9 @@ namespace Distribution {
importFrom("BuildXL.Utilities").Configuration.dll,
importFrom("BuildXL.Utilities").Utilities.Core.dll,
Managed.Factory.filterRuntimeSpecificBinaries(BuildXLSdk.WebFramework.getFrameworkPackage(), [
importFrom("System.IO.Pipelines").pkg
importFrom("System.IO.Pipelines").pkg,
importFrom("System.Diagnostics.EventLog").pkg,
importFrom("System.Security.Cryptography.Pkcs").pkg
]),
],
});

Просмотреть файл

@ -36,7 +36,7 @@ namespace Scheduler {
BuildXLSdk.NetFx.Netstandard.dll
),
...addIfLazy(!BuildXLSdk.isDotNetCore, () => [
importFrom("System.Text.Json").withQualifier({targetFramework: "netstandard2.0"}).pkg,
importFrom("System.Text.Json").pkg,
]),
EngineTestUtilities.dll,
importFrom("BuildXL.Cache.ContentStore").Hashing.dll,

Просмотреть файл

@ -52,7 +52,11 @@ namespace MsBuild {
},
{
subfolder: r`tools`,
contents: [importFrom("BuildXL.Tools").MsBuildGraphBuilder.deployment],
// For the dotnet case, we are only deploying the tool for net7
// TODO: Remove condition when we stop building for net6.0
contents: [qualifier.targetFramework === "net6.0"
? importFrom("BuildXL.Tools").MsBuildGraphBuilder.withQualifier({targetFramework: Managed.TargetFrameworks.DefaultTargetFramework}).deployment
: importFrom("BuildXL.Tools").MsBuildGraphBuilder.deployment],
}
]
});

Просмотреть файл

@ -22,7 +22,7 @@ namespace Nuget {
NetFx.System.Net.Http.dll
),
...addIf(BuildXLSdk.isFullFramework,
importFrom("System.Memory").withQualifier({targetFramework: "netstandard2.0"}).pkg
importFrom("System.Memory").pkg
),
Sdk.dll,
@ -45,12 +45,12 @@ namespace Nuget {
importFrom("BuildXL.Utilities").Utilities.Core.dll,
importFrom("Newtonsoft.Json").pkg,
importFrom("NuGet.Versioning").withQualifier({targetFramework: "netstandard2.0"}).pkg,
importFrom("NuGet.Protocol").withQualifier({targetFramework: "netstandard2.0"}).pkg,
importFrom("NuGet.Configuration").withQualifier({targetFramework: "netstandard2.0"}).pkg,
importFrom("NuGet.Common").withQualifier({targetFramework: "netstandard2.0"}).pkg,
importFrom("NuGet.Frameworks").withQualifier({targetFramework: "netstandard2.0"}).pkg,
importFrom("NuGet.Packaging").withQualifier({targetFramework: "netstandard2.0"}).pkg,
importFrom("NuGet.Versioning").pkg,
importFrom("NuGet.Protocol").pkg,
importFrom("NuGet.Configuration").pkg,
importFrom("NuGet.Common").pkg,
importFrom("NuGet.Frameworks").pkg,
importFrom("NuGet.Packaging").pkg,
...BuildXLSdk.tplPackages,
],

Просмотреть файл

@ -49,14 +49,18 @@ namespace Test.MsBuild {
runtimeContent: [
// We need both the full framework and dotnet core versions of MSBuild, plus dotnet.exe for the dotnet core case
...importFrom("Sdk.Selfhost.MSBuild").withQualifier({targetFramework: "net472"}).deployment,
...importFrom("Sdk.Selfhost.MSBuild").withQualifier({targetFramework: "net6.0"}).deployment,
...importFrom("Sdk.Selfhost.MSBuild").withQualifier({targetFramework: Managed.TargetFrameworks.DefaultTargetFramework}).deployment,
{
subfolder: "dotnet",
contents: Frameworks.Helpers.getDotNetToolTemplate('net6.0').dependencies
contents: Frameworks.Helpers.getDotNetToolTemplate('net7.0').dependencies
},
{
subfolder: a`tools`,
contents: [importFrom("BuildXL.Tools").MsBuildGraphBuilder.deployment]
// For the dotnet case, we are only deploying the tool for net7
// TODO: Remove condition when we stop building for net6.0
contents: [qualifier.targetFramework === "net6.0"
? importFrom("BuildXL.Tools").MsBuildGraphBuilder.withQualifier({targetFramework: Managed.TargetFrameworks.DefaultTargetFramework}).deployment
: importFrom("BuildXL.Tools").MsBuildGraphBuilder.deployment]
},
{
subfolder: r`Sdk/Sdk.Managed.Tools.BinarySigner`,

Просмотреть файл

@ -60,7 +60,7 @@ namespace LanguageService.Server {
runtimeReferences: [
importFrom("Nerdbank.Streams").pkg,
importFrom("System.IO.Pipelines").pkg,
importFrom("System.Collections.Immutable.ForVBCS").pkg,
importFrom("System.Collections.Immutable").pkg,
],
});

Просмотреть файл

@ -5,8 +5,7 @@ import * as Branding from "BuildXL.Branding";
import * as Contracts from "Tse.RuntimeContracts";
namespace BuildXLVsPackage {
@@public
export const dll = !BuildXLSdk.Flags.isMicrosoftInternal ? undefined : BuildXLSdk.library({
const dll = BuildXLSdk.library({
assemblyName: "BuildXLVsPackage",
rootNamespace: "BuildXL.VsPackage",
skipDocumentationGeneration: false,
@ -48,7 +47,7 @@ namespace BuildXLVsPackage {
importFrom("Microsoft.VisualStudio.Threading").pkg,
importFrom("Microsoft.VisualStudio.ProjectSystem").pkg,
importFrom("Microsoft.VisualStudio.Composition").pkg,
importFrom("System.Collections.Immutable.ForVBCS").pkg,
importFrom("System.Collections.Immutable").pkg,
],
});
@ -66,7 +65,7 @@ namespace BuildXLVsPackage {
};
@@public
export const vsix = CreateZipPackage.zip({
export const vsix = !BuildXLSdk.Flags.isMicrosoftInternal ? undefined : CreateZipPackage.zip({
outputFileName: "BuildXL.vs.vsix",
useUriEncoding: true,
inputDirectory: Deployment.deployToDisk({

Просмотреть файл

@ -54,8 +54,8 @@ export namespace DropDaemon {
internalsVisibleTo: [
"Test.Tool.DropDaemon",
],
// TODO: The SBOM package expects a netcore 7 JSON package, even for netcore 6. Remove when we stop supporting net6
deploymentOptions: { ignoredSelfContainedRuntimeFilenames: [a`System.Text.Encodings.Web.dll`, a`System.Text.Json.dll`] },
runtimeContentToSkip: dropDaemonRuntimeContentToSkip()
});
const temporarySdkDropNextToEngineFolder = d`${Context.getBuildEngineDirectory()}/Sdk/Sdk.Drop/bin`;
@ -148,14 +148,6 @@ export namespace DropDaemon {
];
}
@@public
export function dropDaemonRuntimeContentToSkip() {
return [
importFrom("System.Text.Json").withQualifier({ targetFramework: "netstandard2.0" }).pkg,
importFrom("System.Text.Encodings.Web").withQualifier({ targetFramework: "netstandard2.0" }).pkg,
];
}
@@public
export function dropDaemonSbomPackages() {
// Any package needed for SBOM generation should
@ -170,9 +162,9 @@ export namespace DropDaemon {
importFrom("Microsoft.ComponentDetection.Contracts").pkg,
importFrom("Microsoft.Sbom.Adapters").pkg,
importFrom("packageurl-dotnet").pkg,
importFrom("System.Text.Json.v7.0.0").pkg,
importFrom("System.Text.Json").pkg,
importFrom("Newtonsoft.Json").pkg,
importFrom("System.Text.Encodings.Web.v7.0.0").pkg,
importFrom("System.Text.Encodings.Web").pkg,
];
}

Просмотреть файл

@ -25,11 +25,6 @@ export function dropDaemonBindingRedirects() {
return BuildXLSdk.isDropToolingEnabled ? DropDaemon.dropDaemonBindingRedirects() : undefined;
}
@@public
export function dropDaemonRuntimeContentToSkip() {
return BuildXLSdk.isDropToolingEnabled ? DropDaemon.dropDaemonRuntimeContentToSkip() : undefined;
}
@@public
export function dropDaemonSbomPackages() {
return BuildXLSdk.isDropToolingEnabled ? DropDaemon.dropDaemonSbomPackages() : undefined;

Просмотреть файл

@ -28,7 +28,7 @@ namespace Execution.Analyzer {
NetFx.System.IO.Compression.dll,
NetFx.System.Net.Http.dll,
NetFx.System.Runtime.Serialization.dll,
importFrom("System.Memory").withQualifier({targetFramework: "netstandard2.0"}).pkg
importFrom("System.Memory").pkg
]),
VSCode.DebugAdapter.dll,
VSCode.DebugProtocol.dll,

Просмотреть файл

@ -43,15 +43,13 @@ namespace NugetDownloader {
importFrom("BuildXL.Utilities").dll,
importFrom("BuildXL.Utilities").Utilities.Core.dll,
importFrom("NuGet.Versioning").withQualifier({targetFramework: "netstandard2.0"}).pkg,
importFrom("NuGet.Protocol").withQualifier({targetFramework: "netstandard2.0"}).pkg,
importFrom("NuGet.Configuration").withQualifier({targetFramework: "netstandard2.0"}).pkg,
importFrom("NuGet.Common").withQualifier({targetFramework: "netstandard2.0"}).pkg,
importFrom("NuGet.Frameworks").withQualifier({targetFramework: "netstandard2.0"}).pkg,
importFrom("NuGet.Packaging").withQualifier({targetFramework: "netstandard2.0"}).pkg,
],
runtimeContentToSkip:[
importFrom("Newtonsoft.Json").withQualifier({targetFramework: "netstandard2.0"}).pkg,
importFrom("NuGet.Versioning").pkg,
importFrom("NuGet.Protocol").pkg,
importFrom("NuGet.Configuration").pkg,
importFrom("NuGet.Common").pkg,
importFrom("NuGet.Frameworks").pkg,
importFrom("NuGet.Packaging").pkg,
importFrom("System.Security.Cryptography.Pkcs").pkg
],
runtimeContent: [
f`App.config`,

Просмотреть файл

@ -11,6 +11,8 @@ import * as Shared from "Sdk.Managed.Shared";
namespace MsBuildGraphBuilder {
export declare const qualifier: BuildXLSdk.Net7QualifierWithNet472;
@@public
export const exe = BuildXLSdk.executable({
assemblyName: "ProjectGraphBuilder",
@ -23,7 +25,7 @@ namespace MsBuildGraphBuilder {
importFrom("BuildXL.Utilities").dll,
importFrom("BuildXL.Utilities").Utilities.Core.dll,
importFrom("BuildXL.Utilities").Native.dll,
...addIf(BuildXLSdk.isFullFramework, importFrom("System.Collections.Immutable.ForVBCS").pkg),
...addIf(BuildXLSdk.isFullFramework, importFrom("System.Collections.Immutable").pkg),
...addIf(BuildXLSdk.isFullFramework, importFrom("System.Threading.Tasks.Dataflow").pkg),
importFrom("Microsoft.Build.Prediction").pkg,
importFrom("Microsoft.Build.Locator").pkg,
@ -37,8 +39,8 @@ namespace MsBuildGraphBuilder {
// don't add msbuild dlls because assembly resolvers will resolve msbuild from other MSBuild installations
...MSBuild.msbuildReferences,
importFrom("System.Collections.Immutable").pkg,
importFrom("System.Collections.Immutable.ForVBCS").pkg,
importFrom("System.Memory").withQualifier({targetFramework: "netstandard2.0"}).pkg,
importFrom("System.Collections.Immutable").pkg,
importFrom("System.Memory").pkg,
importFrom("System.Memory").pkg,
],
internalsVisibleTo: [
@ -63,7 +65,7 @@ namespace MsBuildGraphBuilder {
{
subfolder: r`dotnetcore`,
contents: [
$.withQualifier({ targetFramework: "net6.0" })
$.withQualifier({ targetFramework: Managed.TargetFrameworks.DefaultTargetFramework })
.MsBuildGraphBuilder.exe
]
}

Просмотреть файл

@ -38,7 +38,7 @@ namespace Test.Tool.DropDaemon {
...importFrom("BuildXL.Tools.DropDaemon").dropDaemonSbomPackages(),
],
// TODO: The SBOM package expects a netcore 7 JSON package, even for netcore 6. Remove when we stop supporting net6
deploymentOptions: { ignoredSelfContainedRuntimeFilenames: [a`System.Text.Encodings.Web.dll`, a`System.Text.Json.dll`] },
runtimeContentToSkip: importFrom("BuildXL.Tools.DropDaemon").dropDaemonRuntimeContentToSkip(),
});
}

Просмотреть файл

@ -6,7 +6,7 @@ import * as MSBuild from "Sdk.Selfhost.MSBuild";
namespace Test.Tool.MsBuildGraphBuilder {
export declare const qualifier: BuildXLSdk.DefaultQualifierWithNet472;
export declare const qualifier: BuildXLSdk.Net7QualifierWithNet472;
@@public
export const dll = BuildXLSdk.test({
@ -28,10 +28,5 @@ namespace Test.Tool.MsBuildGraphBuilder {
dep.name !== "System.Collections.Immutable.dll")),
...MSBuild.msbuildReferences,
],
runtimeContentToSkip: [
...addIf(BuildXLSdk.isFullFramework, importFrom("System.Buffers").pkg),
...addIf(BuildXLSdk.isFullFramework, importFrom("System.Memory").pkg),
...addIf(BuildXLSdk.isFullFramework, importFrom("System.MemoryForVBCS").pkg)
]
});
}

Просмотреть файл

@ -6,7 +6,7 @@ import * as MSBuild from "Sdk.Selfhost.MSBuild";
namespace Test.Tool.VBCSCompilerLogger {
export declare const qualifier: BuildXLSdk.DefaultQualifier;
export declare const qualifier: BuildXLSdk.Net7Qualifier;
@@public
export const dll = BuildXLSdk.test({

Просмотреть файл

@ -6,6 +6,8 @@ import * as MSBuild from "Sdk.Selfhost.MSBuild";
namespace VBCSCompilerLogger {
export declare const qualifier: BuildXLSdk.Net7QualifierWithNet472;
@@public
export const dll = BuildXLSdk.library({
assemblyName: "VBCSCompilerLogger",
@ -17,20 +19,20 @@ namespace VBCSCompilerLogger {
importFrom("Microsoft.CodeAnalysis.CSharp.ForVBCS").pkg,
importFrom("Microsoft.CodeAnalysis.VisualBasic.ForVBCS").pkg,
importFrom("Microsoft.CodeAnalysis.Common.ForVBCS").pkg,
...addIf(BuildXLSdk.isFullFramework, importFrom("System.Collections.Immutable.ForVBCS").pkg),
...addIf(BuildXLSdk.isFullFramework, importFrom("System.Collections.Immutable").pkg),
importFrom("BuildXL.Utilities").Utilities.Core.dll,
importFrom("BuildXL.Utilities").Native.dll,
importFrom("BuildXL.Engine").Processes.dll,
NetFx.Netstandard.dll, // due to issue https://github.com/dotnet/standard/issues/542
],
runtimeContent:[
importFrom("System.Reflection.Metadata.ForVBCS").pkg,
importFrom("System.Memory").withQualifier({targetFramework: "netstandard2.0"}).pkg,
importFrom("System.Runtime.CompilerServices.Unsafe").withQualifier({targetFramework: "netstandard2.0"}).pkg,
importFrom("System.Numerics.Vectors").withQualifier({targetFramework: "netstandard2.0"}).pkg,
importFrom("System.Reflection.Metadata").pkg,
importFrom("System.Memory").pkg,
importFrom("System.Runtime.CompilerServices.Unsafe").pkg,
importFrom("System.Numerics.Vectors").pkg,
],
runtimeContentToSkip: [
importFrom("System.Collections.Immutable").withQualifier({targetFramework: "netstandard2.0"}).pkg,
importFrom("System.Collections.Immutable").pkg,
importFrom("System.Memory").pkg,
],
internalsVisibleTo: ["Test.Tool.VBCSCompilerLogger"]

Просмотреть файл

@ -14,7 +14,7 @@ namespace Core {
importFrom("BuildXL.Utilities").Utilities.Core.dll,
importFrom("Microsoft.CodeAnalysis.CSharp").pkg,
importFrom("Microsoft.CodeAnalysis.Common").pkg,
importFrom("System.Collections.Immutable.ForVBCS").pkg,
importFrom("System.Collections.Immutable").pkg,
],
});
}

Просмотреть файл

@ -19,7 +19,7 @@ namespace LogGenerator {
importFrom("Microsoft.CodeAnalysis.Common.ForVBCS").pkg,
importFrom("Microsoft.CodeAnalysis.CSharp.ForVBCS").pkg,
importFrom("System.Collections.Immutable.ForVBCS").pkg,
importFrom("System.Collections.Immutable").pkg,
importFrom("BuildXL.Utilities").CodeGenerationHelper.dll,
],
analyzers: [importFrom("Microsoft.CodeAnalysis.Analyzers").pkg]

Просмотреть файл

@ -13,25 +13,17 @@ namespace Native {
export const securityDlls = BuildXLSdk.isDotNetCoreOrStandard ? [
// In netCoreApp2.2 accesscontrol is missing enum: System.Security.AccessControl.AccessControlType
importFrom("System.IO.Pipes.AccessControl").pkg,
BuildXLSdk.withWinRuntime(importFrom("System.Threading.AccessControl").pkg, r`runtimes/win/lib/netstandard2.0`),
importFrom("System.Threading.AccessControl").pkg,
...addIf(!BuildXLSdk.isDotNetCore,
BuildXLSdk.withWinRuntime(importFrom("System.Security.AccessControl").pkg, r`runtimes/win/lib/netcoreapp2.0`),
BuildXLSdk.withWinRuntime(importFrom("System.IO.FileSystem.AccessControl").pkg, r`runtimes/win/lib/netstandard2.0`)
importFrom("System.Security.AccessControl").pkg,
importFrom("System.IO.FileSystem.AccessControl").pkg
),
// Don't need to exclude assemblies for net7 because they're higher versions.
...addIf(qualifier.targetFramework === 'net6.0',
BuildXLSdk.withWinRuntime(importFrom("System.IO.FileSystem.AccessControl.v6.0.0").pkg, r`runtimes/win/lib/netstandard2.0`),
BuildXLSdk.withWinRuntime(importFrom("System.Security.AccessControl.v6.0.0").pkg, r`runtimes/win/lib/netstandard2.0`),
BuildXLSdk.withWinRuntime(importFrom("System.Security.Principal.Windows.v6.0.0").pkg, r`runtimes/win/lib/netstandard2.0`)
),
...addIf(!BuildXLSdk.isDotNetCore,
BuildXLSdk.isTargetRuntimeOsx
? Managed.Factory.createBinary(importFrom("System.Security.Principal.Windows").Contents.all, r`runtimes/unix/lib/netcoreapp2.0/System.Security.Principal.Windows.dll`)
: Managed.Factory.createBinary(importFrom("System.Security.Principal.Windows").Contents.all, r`runtimes/win/lib/netcoreapp2.0/System.Security.Principal.Windows.dll`))
importFrom("System.Security.Principal.Windows").pkg)
] : [];
@@public

Просмотреть файл

@ -18,7 +18,7 @@ namespace Plugin {
importFrom("BuildXL.Utilities").PluginGrpc.dll,
importFrom("BuildXL.Utilities").Plugin.dll,
importFrom("BuildXL.Utilities").Utilities.Core.dll,
importFrom("System.Runtime.CompilerServices.Unsafe").withQualifier({ targetFramework: "netstandard2.0" }).pkg,
importFrom("System.Runtime.CompilerServices.Unsafe").pkg,
...importFrom("BuildXL.Cache.ContentStore").getGrpcPackages(false),
],

Просмотреть файл

@ -19,7 +19,7 @@ namespace Utilities.Core {
NetFx.System.Xml.dll,
NetFx.Netstandard.dll,
importFrom("System.Threading.Channels").withQualifier({ targetFramework: "netstandard2.0" }).pkg,
importFrom("System.Memory").withQualifier({targetFramework: "netstandard2.0"}).pkg,
importFrom("System.Memory").pkg,
importFrom("System.Threading.Tasks.Extensions").pkg,
]),
],

Просмотреть файл

@ -11,12 +11,12 @@ namespace VstsAuthentication {
Native.dll,
Utilities.Core.dll,
importFrom("Newtonsoft.Json").withQualifier({targetFramework: "netstandard2.0"}).pkg,
importFrom("NuGet.Versioning").withQualifier({targetFramework: "netstandard2.0"}).pkg,
importFrom("NuGet.Protocol").withQualifier({targetFramework: "netstandard2.0"}).pkg,
importFrom("NuGet.Configuration").withQualifier({targetFramework: "netstandard2.0"}).pkg,
importFrom("NuGet.Common").withQualifier({targetFramework: "netstandard2.0"}).pkg,
importFrom("NuGet.Frameworks").withQualifier({targetFramework: "netstandard2.0"}).pkg,
importFrom("NuGet.Packaging").withQualifier({targetFramework: "netstandard2.0"}).pkg,
importFrom("NuGet.Versioning").pkg,
importFrom("NuGet.Protocol").pkg,
importFrom("NuGet.Configuration").pkg,
importFrom("NuGet.Common").pkg,
importFrom("NuGet.Frameworks").pkg,
importFrom("NuGet.Packaging").pkg,
...addIfLazy(BuildXLSdk.isFullFramework, () => [
NetFx.System.Net.Http.dll,
NetFx.Netstandard.dll,

Просмотреть файл

@ -18,7 +18,7 @@ if NOT DEFINED DBD_TESTGEN_COUNT (
)
if NOT DEFINED TEST_COMMITID (
set TEST_COMMITID=dcdc8f8bbb0cd83c38dc827c19c3c44b7f195b9c
set TEST_COMMITID=98214d145b8dfcd1fbb2c2d46ff5a473cafbd023
)
set TEST_SOLUTION_ROOT=%ENLISTMENTROOT%\Out\Tests\SMDB

Просмотреть файл

@ -735,7 +735,7 @@
"Type": "NuGet",
"NuGet": {
"Name": "Microsoft.Bcl.AsyncInterfaces",
"Version": "6.0.0"
"Version": "7.0.0"
}
}
},
@ -762,7 +762,7 @@
"Type": "NuGet",
"NuGet": {
"Name": "Microsoft.Build",
"Version": "17.0.0"
"Version": "17.7.2"
}
}
},
@ -771,7 +771,7 @@
"Type": "NuGet",
"NuGet": {
"Name": "Microsoft.Build.Framework",
"Version": "17.0.0"
"Version": "17.7.2"
}
}
},
@ -798,7 +798,7 @@
"Type": "NuGet",
"NuGet": {
"Name": "Microsoft.Build.Runtime",
"Version": "17.0.0"
"Version": "17.7.2"
}
}
},
@ -807,7 +807,7 @@
"Type": "NuGet",
"NuGet": {
"Name": "Microsoft.Build.Tasks.Core",
"Version": "17.0.0"
"Version": "17.7.2"
}
}
},
@ -1554,16 +1554,7 @@
"Type": "NuGet",
"NuGet": {
"Name": "Microsoft.NETCore.Platforms",
"Version": "3.1.0"
}
}
},
{
"Component": {
"Type": "NuGet",
"NuGet": {
"Name": "Microsoft.NETCore.Platforms",
"Version": "6.0.11"
"Version": "5.0.0"
}
}
},
@ -2013,7 +2004,7 @@
"Type": "NuGet",
"NuGet": {
"Name": "Microsoft.VisualStudio.Setup.Configuration.Interop",
"Version": "1.16.30"
"Version": "3.2.2146"
}
}
},
@ -2296,6 +2287,15 @@
}
}
},
{
"Component": {
"Type": "NuGet",
"NuGet": {
"Name": "Microsoft.Win32.SystemEvents",
"Version": "7.0.0"
}
}
},
{
"Component": {
"Type": "NuGet",
@ -2652,16 +2652,7 @@
"Type": "NuGet",
"NuGet": {
"Name": "System.Collections.Immutable",
"Version": "1.5.0"
}
}
},
{
"Component": {
"Type": "NuGet",
"NuGet": {
"Name": "System.Collections.Immutable",
"Version": "5.0.0"
"Version": "7.0.0"
}
}
},
@ -2787,7 +2778,7 @@
"Type": "NuGet",
"NuGet": {
"Name": "System.Configuration.ConfigurationManager",
"Version": "4.4.0"
"Version": "7.0.0"
}
}
},
@ -2845,6 +2836,15 @@
}
}
},
{
"Component": {
"Type": "NuGet",
"NuGet": {
"Name": "System.Diagnostics.EventLog",
"Version": "7.0.0"
}
}
},
{
"Component": {
"Type": "NuGet",
@ -2917,6 +2917,15 @@
}
}
},
{
"Component": {
"Type": "NuGet",
"NuGet": {
"Name": "System.Drawing.Common",
"Version": "7.0.0"
}
}
},
{
"Component": {
"Type": "NuGet",
@ -2935,6 +2944,15 @@
}
}
},
{
"Component": {
"Type": "NuGet",
"NuGet": {
"Name": "System.Formats.Asn1",
"Version": "7.0.0"
}
}
},
{
"Component": {
"Type": "NuGet",
@ -3169,15 +3187,6 @@
}
}
},
{
"Component": {
"Type": "NuGet",
"NuGet": {
"Name": "System.Memory",
"Version": "4.5.4"
}
}
},
{
"Component": {
"Type": "NuGet",
@ -3295,15 +3304,6 @@
}
}
},
{
"Component": {
"Type": "NuGet",
"NuGet": {
"Name": "System.Numerics.Vectors",
"Version": "4.4.0"
}
}
},
{
"Component": {
"Type": "NuGet",
@ -3417,7 +3417,7 @@
"Type": "NuGet",
"NuGet": {
"Name": "System.Reflection.Metadata",
"Version": "1.6.0"
"Version": "7.0.0"
}
}
},
@ -3425,8 +3425,8 @@
"Component": {
"Type": "NuGet",
"NuGet": {
"Name": "System.Reflection.Metadata",
"Version": "5.0.0"
"Name": "System.Reflection.MetadataLoadContext",
"Version": "7.0.0"
}
}
},
@ -3507,7 +3507,7 @@
"Type": "NuGet",
"NuGet": {
"Name": "System.Runtime.CompilerServices.Unsafe",
"Version": "5.0.0"
"Version": "6.0.0"
}
}
},
@ -3637,15 +3637,6 @@
}
}
},
{
"Component": {
"Type": "NuGet",
"NuGet": {
"Name": "System.Security.AccessControl",
"Version": "4.7.0"
}
}
},
{
"Component": {
"Type": "NuGet",
@ -3678,7 +3669,7 @@
"Type": "NuGet",
"NuGet": {
"Name": "System.Security.Cryptography.Cng",
"Version": "4.3.0"
"Version": "5.0.0"
}
}
},
@ -3723,7 +3714,7 @@
"Type": "NuGet",
"NuGet": {
"Name": "System.Security.Cryptography.Pkcs",
"Version": "4.5.0"
"Version": "7.0.2"
}
}
},
@ -3741,7 +3732,7 @@
"Type": "NuGet",
"NuGet": {
"Name": "System.Security.Cryptography.ProtectedData",
"Version": "5.0.0"
"Version": "7.0.0"
}
}
},
@ -3768,7 +3759,7 @@
"Type": "NuGet",
"NuGet": {
"Name": "System.Security.Permissions",
"Version": "4.5.0"
"Version": "7.0.0"
}
}
},
@ -3781,24 +3772,6 @@
}
}
},
{
"Component": {
"Type": "NuGet",
"NuGet": {
"Name": "System.Security.Principal.Windows",
"Version": "4.7.0"
}
}
},
{
"Component": {
"Type": "NuGet",
"NuGet": {
"Name": "System.Security.Principal.Windows",
"Version": "5.0.0"
}
}
},
{
"Component": {
"Type": "NuGet",
@ -3862,15 +3835,6 @@
}
}
},
{
"Component": {
"Type": "NuGet",
"NuGet": {
"Name": "System.Text.Encodings.Web",
"Version": "4.7.2"
}
}
},
{
"Component": {
"Type": "NuGet",
@ -3880,15 +3844,6 @@
}
}
},
{
"Component": {
"Type": "NuGet",
"NuGet": {
"Name": "System.Text.Json",
"Version": "4.7.2"
}
}
},
{
"Component": {
"Type": "NuGet",
@ -3957,7 +3912,7 @@
"Type": "NuGet",
"NuGet": {
"Name": "System.Threading.Tasks.Dataflow",
"Version": "4.9.0"
"Version": "7.0.0"
}
}
},
@ -4015,6 +3970,15 @@
}
}
},
{
"Component": {
"Type": "NuGet",
"NuGet": {
"Name": "System.Windows.Extensions",
"Version": "7.0.0"
}
}
},
{
"Component": {
"Type": "NuGet",

Просмотреть файл

@ -150,13 +150,12 @@ config({
{ 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" },
{ id: "System.Reflection.Metadata", version: "7.0.0" },
{ id: "System.Threading.Tasks.Dataflow", version: "7.0.0" },
// Nuget
{ id: "NuGet.Packaging", version: "5.11.5", dependentPackageIdsToSkip: ["System.Security.Cryptography.ProtectedData", "System.Security.Cryptography.Pkcs"] },
{ id: "NuGet.Configuration", version: "5.11.5", dependentPackageIdsToSkip: ["System.Security.Cryptography.ProtectedData"] },
{ id: "NuGet.Packaging", version: "5.11.5" },
{ id: "NuGet.Configuration", version: "5.11.5" },
{ id: "NuGet.Common", version: "5.11.5" },
{ id: "NuGet.Protocol", version: "5.11.5" },
{ id: "NuGet.Versioning", version: "5.11.5" },
@ -246,7 +245,7 @@ config({
{ 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: "6.0.0", dependentPackageIdsToSkip: ["System.Threading.Tasks.Extensions"] },
{ id: "Microsoft.Bcl.AsyncInterfaces", version: "7.0.0", dependentPackageIdsToSkip: ["System.Threading.Tasks.Extensions"] },
{ id: "Microsoft.Bcl.Build", version: "1.0.14" },
{ id: "Pipelines.Sockets.Unofficial", version: "2.2.0",
@ -264,8 +263,9 @@ config({
{ id: "BuildXL.Azurite.Executables", version: "1.0.0-CI-20230614-171424" },
// Testing
{ id: "System.Security.Cryptography.ProtectedData", version: "5.0.0"},
{ id: "System.Configuration.ConfigurationManager", version: "4.4.0"},
{ id: "System.Security.Cryptography.ProtectedData", version: "7.0.0"},
{ id: "System.Configuration.ConfigurationManager", version: "7.0.0"},
{ id: "System.Diagnostics.EventLog", version: "7.0.0" },
{ id: "FluentAssertions", version: "5.3.0",
dependentPackageIdsToSkip: ["System.Reflection.Emit", "System.Reflection.Emit.Lightweight"] },
@ -278,9 +278,12 @@ config({
{ id: "Microsoft.ApplicationInsights.WindowsServer", version: "2.3.0" },
{ id: "Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel", version: "2.3.0" },
{ id: "System.Security.Cryptography.Xml", version: "4.7.1" },
{ 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: "System.Text.Encodings.Web", version: "7.0.0" },
{ id: "System.Security.Permissions", version: "7.0.0" },
{ id: "System.Windows.Extensions", version: "7.0.0" },
{ id: "System.Drawing.Common", version: "7.0.0" },
{ id: "Microsoft.Win32.SystemEvents", version: "7.0.0" },
{ id: "System.Security.Cryptography.Pkcs", version: "7.0.2" },
{ id: "ILRepack", version: "2.0.16" },
@ -297,37 +300,32 @@ config({
{ 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.Reflection.Metadata", "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.Memory"],
},
{ id: "Microsoft.Build.Tasks.Core", version: "17.0.0",
dependentPackageIdsToSkip: ["System.Memory", "System.Collections.Immutable"],
{ id: "Microsoft.Build", version: "17.7.2",
dependentPackageIdsToSkip: ["System.Reflection.Metadata", "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.7.2" },
{ id: "Microsoft.Build.Tasks.Core", version: "17.7.2" },
{ id: "Microsoft.Build.Utilities.Core", version: "17.0.0", dependentPackageIdsToSkip: ["System.Memory", "System.Text.Json", "System.Collections.Immutable"]},
{ id: "Microsoft.Build.Framework", version: "17.0.0", dependentPackageIdsToSkip: ["System.Memory", "System.Text.Json"]},
{ id: "Microsoft.Build.Framework", version: "17.7.2", dependentPackageIdsToSkip: ["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.Reflection.MetadataLoadContext", version: "7.0.0"},
{ 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.5", dependentPackageIdsToSkip: ["System.Runtime.CompilerServices.Unsafe", "System.Numerics.Vectors"] }, /* Change Sync: BuildXLSdk.cacheBindingRedirects() */
{ id: "System.Memory", version: "4.5.4", alias: "System.MemoryForVBCS", dependentPackageIdsToSkip: ["System.Runtime.CompilerServices.Unsafe", "System.Numerics.Vectors"] },
{ id: "System.Runtime.CompilerServices.Unsafe", version: "5.0.0" }, /* Change Sync: BuildXLSdk.cacheBindingRedirects() */
{ id: "System.Memory", version: "4.5.5" }, /* Change Sync: BuildXLSdk.cacheBindingRedirects() */
{ id: "System.Runtime.CompilerServices.Unsafe", version: "6.0.0" }, /* Change Sync: BuildXLSdk.cacheBindingRedirects() */
{ id: "System.IO.Pipelines", version: "7.0.0-rc.1.22426.10", 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: "Microsoft.VisualStudio.Setup.Configuration.Interop", version: "3.2.2146"},
{ id: "System.CodeDom", version: "4.4.0"},
{ id: "System.Text.Encoding.CodePages", version: "4.5.1",
dependentPackageIdsToSkip: ["System.Runtime.CompilerServices.Unsafe"]},
{ id: "System.Numerics.Vectors", version: "4.4.0", alias: "SystemNumericsVectorsForMSBuild"},
// Used for MSBuild input/output prediction
{ id: "Microsoft.Build.Prediction", version: "0.3.0" },
@ -358,7 +356,6 @@ config({
// Needed for SBOM Generation
{ id: "Microsoft.Extensions.Logging.Abstractions", version: "7.0.0", dependentPackageIdsToSkip: ["System.Buffers", "System.Memory"] },
{ id: "System.Text.Encodings.Web", version: "7.0.0", dependentPackageIdsToSkip: ["System.Buffers", "System.Memory"], alias: "System.Text.Encodings.Web.v7.0.0" },
{ id: "packageurl-dotnet", version: "1.1.0" },
{ id: "System.Reactive", version: "4.4.1" },

Просмотреть файл

@ -24,7 +24,7 @@ export const pkgs = [
{ id: "Microsoft.NETCore.App.Ref", version: coreVersion },
{ id: "NETStandard.Library", version: "2.0.3", tfm: ".NETStandard2.0" },
{ id: "Microsoft.NETCore.Platforms", version: coreVersion },
{ id: "Microsoft.NETCore.Platforms", version: core50Version },
// .NET Core Self-Contained Deployment
{ id: "Microsoft.NETCore.DotNetHostResolver", version: coreVersion },
@ -38,8 +38,7 @@ export const pkgs = [
// .NET Core 6.0 Dependencies
{ id: "Microsoft.NETCore.App.Ref", version: core60Version, alias: "Microsoft.NETCore.App.Ref60" },
{ id: "Microsoft.NETCore.Platforms", version: core60VersionPlatforms, alias: "Microsoft.NETCore.Platforms.6.0" },
// .NET Core Self-Contained Deployment
{ id: "Microsoft.NETCore.DotNetHostResolver", version: core60Version, alias: "Microsoft.NETCore.DotNetHostResolver.6.0" },
@ -205,7 +204,7 @@ export const pkgs = [
{ id: "System.Runtime.Serialization.Xml", version: pkgVersion },
{ id: "System.Runtime.WindowsRuntime", version: pkgVersion },
{ id: "System.Security.Cryptography.Algorithms", version: pkgVersion },
{ id: "System.Security.Cryptography.Cng", version: pkgVersion },
{ id: "System.Security.Cryptography.Cng", version: pkgVersion5 },
{ id: "System.Security.Cryptography.Csp", version: pkgVersion },
{ id: "System.Security.Cryptography.Encoding", version: pkgVersion },
{ id: "System.Security.Cryptography.Primitives", version: pkgVersion },
@ -219,7 +218,8 @@ export const pkgs = [
{ id: "System.Threading", version: pkgVersion },
{ id: "System.Threading.Overlapped", version: pkgVersion },
{ id: "System.Threading.Tasks", version: pkgVersion },
{ id: "System.Formats.Asn1", version: "7.0.0"},
{ id: "System.Threading.Tasks.Parallel", version: pkgVersion },
{ id: "System.Threading.Thread", version: pkgVersion },
{ id: "System.Threading.ThreadPool", version: pkgVersion },
@ -236,23 +236,13 @@ export const pkgs = [
// Bumped version numbers
{ id: "System.IO.FileSystem.AccessControl", version: pkgVersionNext },
{ id: "System.Management", version: pkgVersionNext },
{ id: "System.Security.AccessControl", version: pkgVersionNext,
dependentPackageIdsToSkip: ["System.Security.Principal.Windows"] },
{ id: "System.Security.Principal.Windows", version: pkgVersionNext },
{ id: "System.Security.AccessControl", version: pkgVersion6 },
{ id: "System.Security.Principal.Windows", version: pkgVersion6Preview },
{ id: "System.Security.Principal.Windows", version: pkgVersion5, alias: "System.Security.Principal.Windows.v5.0.0" },
{ id: "System.Text.Json", version: "4.7.2",
dependentPackageIdsToSkip: ["System.Memory", "System.ValueTuple", "System.Runtime.CompilerServices.Unsafe", "System.Numerics.Vectors", "System.Threading.Tasks.Extensions", "Microsoft.Bcl.AsyncInterfaces"],
},
{ id: "System.Text.Json", version: pkgVersion7,
dependentPackageIdsToSkip: ["System.Memory", "System.Buffers", "System.ValueTuple", "System.Runtime.CompilerServices.Unsafe", "System.Numerics.Vectors", "System.Threading.Tasks.Extensions", "Microsoft.Bcl.AsyncInterfaces", "System.Text.Encodings.Web"],
alias: "System.Text.Json.v7.0.0"
},
{ id: "System.Text.Json", version: "7.0.0" },
{ id: "System.Threading.AccessControl", version: pkgVersionNext },
{ id: "System.IO.FileSystem.AccessControl", version: pkgVersion6Preview, alias: "System.IO.FileSystem.AccessControl.v6.0.0" },
{ id: "System.Security.AccessControl", version: pkgVersion6, alias: "System.Security.AccessControl.v6.0.0" },
{ id: "System.Security.Principal.Windows", version: pkgVersion6Preview, alias: "System.Security.Principal.Windows.v6.0.0" },
// Non-standard version ones
{ id: "Microsoft.NETCore.Targets", version: "2.0.0" },
@ -264,10 +254,7 @@ export const pkgs = [
dependentPackageIdsToSkip: ["System.Runtime.CompilerServices.Unsafe"] },
{ id: "System.Security.Cryptography.OpenSsl", version: "4.4.0" },
{ id: "System.Collections.Immutable", version: "1.5.0" },
// The next one is used only to run some tests in the IDE.
// { id: "System.Collections.Immutable", version: "1.7.1", dependentPackageIdsToSkip: ["System.Memory"] },
{ id: "System.Collections.Immutable", version: "5.0.0", alias: "System.Collections.Immutable.ForVBCS", dependentPackageIdsToSkip: ["System.Memory"] },
{ id: "System.Collections.Immutable", version: "7.0.0" },
];