Merge branch 'main' into darc-main-35b1ce53-93f3-4548-9141-a67575ca61c3

This commit is contained in:
Michael Simons 2023-06-09 08:40:33 -05:00 committed by GitHub
commit 419fa449f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 84 additions and 19 deletions

View file

@ -32,7 +32,7 @@
<RuntimePack Include="Microsoft.NETCore.App.Host" Version="[$(MicrosoftNETCoreAppHostPackageVersion)]" />
<RuntimePack Include="Microsoft.NETCore.App.Runtime" Version="[$(MicrosoftNETCoreAppRuntimeVersion)]" />
<PortablePackage Include="Microsoft.DotNet.IlCompiler" Version="[$(MicrosoftDotNetIlCompilerVersion)]" />
<PortablePackage Include="Microsoft.DotNet.ILCompiler" Version="[$(MicrosoftDotNetILCompilerVersion)]" />
<PortablePackage Include="Microsoft.NETCore.DotNetAppHost" Version="[$(MicrosoftNETCoreDotNetAppHostVersion)]" />
<PortablePackage Include="Microsoft.NETCore.DotNetHost" Version="[$(MicrosoftNETCoreDotNetHostVersion)]" />
<PortablePackage Include="Microsoft.NETCore.DotNetHostPolicy" Version="[$(MicrosoftNETCoreDotNetHostPolicyVersion)]" />

View file

@ -21,6 +21,8 @@
<BuildCommandArgs>$(StandardSourceBuildArgs)</BuildCommandArgs>
<BuildCommand>$(ProjectDirectory)eng/source-build/build$(ShellExtension) $(BuildCommandArgs)</BuildCommand>
<PackageVersionPropsFlowType>DependenciesOnly</PackageVersionPropsFlowType>
</PropertyGroup>
<Import Project="Sdk.targets" Sdk="Microsoft.NET.Sdk" />

View file

@ -0,0 +1,47 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Nikola Milosavljevic <nikolam@microsoft.com>
Date: Wed, 7 Jun 2023 03:03:22 +0000
Subject: [PATCH] Add dependencies for PVP flow
Backport: https://github.com/NuGet/NuGet.Client/pull/5207
---
eng/Version.Details.xml | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml
index ff6bc71b5..bbadad4c0 100644
--- a/eng/Version.Details.xml
+++ b/eng/Version.Details.xml
@@ -5,4 +5,31 @@
See https://github.com/dotnet/arcade/issues/2396 for details.
See https://github.com/dotnet/arcade/blob/master/Documentation/DependencyDescriptionFormat.md#details-file for schema.
-->
+
+ <!--
+ Following dependencies are required for PVP flow.
+ PVP flow infra will automatically bump the version to the latest live one.
+ -->
+ <ProductDependencies>
+ <Dependency Name="Microsoft.Build" Version="17.3.1">
+ <Uri>https://github.com/dotnet/msbuild</Uri>
+ <Sha>80f618ad45d38475773fd1a6eaa059f118a0ad5a</Sha>
+ </Dependency>
+ <Dependency Name="Microsoft.Extensions.FileProviders.Abstractions" Version="6.0.0">
+ <Uri>https://github.com/dotnet/runtime</Uri>
+ <Sha>8470979eb44c2218025515234d3e01138bd74afb</Sha>
+ </Dependency>
+ <Dependency Name="Microsoft.Extensions.FileSystemGlobbing" Version="6.0.0">
+ <Uri>https://github.com/dotnet/runtime</Uri>
+ <Sha>8470979eb44c2218025515234d3e01138bd74afb</Sha>
+ </Dependency>
+ <Dependency Name="Microsoft.Web.Xdt" Version="3.0.0">
+ <Uri>https://github.com/aspnet/xdt</Uri>
+ <Sha>d4d088b6a9c793525b1a27a119cb66ba4587bb39</Sha>
+ </Dependency>
+ <Dependency Name="System.ComponentModel.Composition" Version="4.5.0">
+ <Uri>https://github.com/dotnet/corefx</Uri>
+ <Sha>30ab651fcb4354552bd4891619a0bdd81e0ebdbf</Sha>
+ </Dependency>
+ </ProductDependencies>
</Dependencies>
\ No newline at end of file

View file

@ -31,6 +31,7 @@
<Exec WorkingDirectory="$(VmrDir)" Command="git init -b $(VmrDefaultBranch)" />
<Exec WorkingDirectory="$(VmrDir)" Command="git commit --allow-empty -m 'Initial commit of the VMR%0D%0A%0D%0A[[ commit created by automation ]]'" />
<Exec WorkingDirectory="$(VmrDir)" Command="git remote add origin https://github.com/dotnet/dotnet" /> <!-- source link needs this -->
</Target>
<Target Name="InitializeRepoAndDependentsRecursive">
@ -56,6 +57,9 @@
Recursive="true"
VmrPath="$(VmrDir)"
TmpPath="$(TmpDir)"
InstallerPath="$(RepoRoot)"
ReadmeTemplatePath="$(MSBuildThisFileDirectory)/README.template.md"
TpnTemplatePath="$(MSBuildThisFileDirectory)/THIRD-PARTY-NOTICES.template.txt"
SourceMappingsPath="$(MSBuildThisFileDirectory)/source-mappings.json" />
<Message Text=" -> Done initializing individual repositories recursively" Importance="High" />

View file

@ -40,6 +40,12 @@ public class VirtualMonoRepo_Initialize : Build.Utilities.Task, ICancelableTask
public string PackageVersion { get; set; }
public string InstallerPath { get; set; }
public string ReadmeTemplatePath { get; set; }
public string TpnTemplatePath { get; set; }
public bool Recursive { get; set; }
public VirtualMonoRepo_Initialize()
@ -54,6 +60,10 @@ public class VirtualMonoRepo_Initialize : Build.Utilities.Task, ICancelableTask
VmrPath = Path.GetFullPath(VmrPath);
TmpPath = Path.GetFullPath(TmpPath);
var additionalRemotes = InstallerPath == null
? Array.Empty<AdditionalRemote>()
: new[] { new AdditionalRemote("installer", InstallerPath) };
var vmrInitializer = _serviceProvider.Value.GetRequiredService<IVmrInitializer>();
await vmrInitializer.InitializeRepository(
Repository,
@ -61,7 +71,9 @@ public class VirtualMonoRepo_Initialize : Build.Utilities.Task, ICancelableTask
PackageVersion,
Recursive,
new NativePath(SourceMappingsPath),
Array.Empty<AdditionalRemote>(),
additionalRemotes,
ReadmeTemplatePath,
TpnTemplatePath,
_cancellationToken.Token);
return true;
}