Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable PVP flow for SDK repo #16633

Merged
merged 3 commits into from
Jun 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/SourceBuild/content/repo-projects/sdk.proj
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
<BuildCommandArgs>$(BuildCommandArgs) -v $(LogVerbosity)</BuildCommandArgs>

<BuildCommand>$(StandardSourceBuildCommand) $(BuildCommandArgs)</BuildCommand>

<PackageVersionPropsFlowType>DependenciesOnly</PackageVersionPropsFlowType>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,143 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Nikola Milosavljevic <nikolam@microsoft.com>
Date: Thu, 8 Jun 2023 22:21:02 +0000
Subject: [PATCH] Add dependencies needed for source-build PVP flow

Backport: https://github.com/dotnet/sdk/pull/33039
---
eng/Version.Details.xml | 68 +++++++++++++++++++++++++++++++++++++++++
eng/Versions.props | 28 ++++++++---------
2 files changed, 82 insertions(+), 14 deletions(-)

diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml
index 2bf363fc70..a242f463ee 100644
--- a/eng/Version.Details.xml
+++ b/eng/Version.Details.xml
@@ -112,15 +112,83 @@
<Uri>https://github.com/dotnet/aspnetcore</Uri>
<Sha>8dea0b8d3bf5852fe61b2d98b94ae190f68b9768</Sha>
</Dependency>
+ <Dependency Name="Microsoft.Build.NuGetSdkResolver" Version="6.7.0-preview.3.57">
+ <Uri>https://github.com/nuget/nuget.client</Uri>
+ <Sha>1f85d874ef0bc82affad2c2175fdd47c5b4bb387</Sha>
+ </Dependency>
<Dependency Name="NuGet.Build.Tasks" Version="6.7.0-preview.3.57">
<Uri>https://github.com/nuget/nuget.client</Uri>
<Sha>1f85d874ef0bc82affad2c2175fdd47c5b4bb387</Sha>
</Dependency>
+ <Dependency Name="NuGet.Build.Tasks.Console" Version="6.7.0-preview.3.57">
+ <Uri>https://github.com/nuget/nuget.client</Uri>
+ <Sha>1f85d874ef0bc82affad2c2175fdd47c5b4bb387</Sha>
+ </Dependency>
+ <Dependency Name="NuGet.Build.Tasks.Pack" Version="6.7.0-preview.3.57">
+ <Uri>https://github.com/nuget/nuget.client</Uri>
+ <Sha>1f85d874ef0bc82affad2c2175fdd47c5b4bb387</Sha>
+ </Dependency>
+ <Dependency Name="NuGet.Commands" Version="6.7.0-preview.3.57">
+ <Uri>https://github.com/nuget/nuget.client</Uri>
+ <Sha>1f85d874ef0bc82affad2c2175fdd47c5b4bb387</Sha>
+ </Dependency>
+ <Dependency Name="NuGet.CommandLine.XPlat" Version="6.7.0-preview.3.57">
+ <Uri>https://github.com/nuget/nuget.client</Uri>
+ <Sha>1f85d874ef0bc82affad2c2175fdd47c5b4bb387</Sha>
+ </Dependency>
+ <Dependency Name="NuGet.Common" Version="6.7.0-preview.3.57">
+ <Uri>https://github.com/nuget/nuget.client</Uri>
+ <Sha>1f85d874ef0bc82affad2c2175fdd47c5b4bb387</Sha>
+ </Dependency>
+ <Dependency Name="NuGet.Configuration" Version="6.7.0-preview.3.57">
+ <Uri>https://github.com/nuget/nuget.client</Uri>
+ <Sha>1f85d874ef0bc82affad2c2175fdd47c5b4bb387</Sha>
+ </Dependency>
+ <Dependency Name="NuGet.Credentials" Version="6.7.0-preview.3.57">
+ <Uri>https://github.com/nuget/nuget.client</Uri>
+ <Sha>1f85d874ef0bc82affad2c2175fdd47c5b4bb387</Sha>
+ </Dependency>
+ <Dependency Name="NuGet.DependencyResolver.Core" Version="6.7.0-preview.3.57">
+ <Uri>https://github.com/nuget/nuget.client</Uri>
+ <Sha>1f85d874ef0bc82affad2c2175fdd47c5b4bb387</Sha>
+ </Dependency>
+ <Dependency Name="NuGet.Frameworks" Version="6.7.0-preview.3.57">
+ <Uri>https://github.com/nuget/nuget.client</Uri>
+ <Sha>1f85d874ef0bc82affad2c2175fdd47c5b4bb387</Sha>
+ </Dependency>
+ <Dependency Name="NuGet.LibraryModel" Version="6.7.0-preview.3.57">
+ <Uri>https://github.com/nuget/nuget.client</Uri>
+ <Sha>1f85d874ef0bc82affad2c2175fdd47c5b4bb387</Sha>
+ </Dependency>
+ <Dependency Name="NuGet.ProjectModel" Version="6.7.0-preview.3.57">
+ <Uri>https://github.com/nuget/nuget.client</Uri>
+ <Sha>1f85d874ef0bc82affad2c2175fdd47c5b4bb387</Sha>
+ </Dependency>
+ <Dependency Name="NuGet.Protocol" Version="6.7.0-preview.3.57">
+ <Uri>https://github.com/nuget/nuget.client</Uri>
+ <Sha>1f85d874ef0bc82affad2c2175fdd47c5b4bb387</Sha>
+ </Dependency>
+ <Dependency Name="NuGet.Packaging" Version="6.7.0-preview.3.57">
+ <Uri>https://github.com/nuget/nuget.client</Uri>
+ <Sha>1f85d874ef0bc82affad2c2175fdd47c5b4bb387</Sha>
+ </Dependency>
+ <Dependency Name="NuGet.Versioning" Version="6.7.0-preview.3.57">
+ <Uri>https://github.com/nuget/nuget.client</Uri>
+ <Sha>1f85d874ef0bc82affad2c2175fdd47c5b4bb387</Sha>
+ </Dependency>
<Dependency Name="Microsoft.NET.Test.Sdk" Version="17.7.0-preview.23307.1">
<Uri>https://github.com/microsoft/vstest</Uri>
<Sha>8381658bfb847e67b4f41a997411e8a804e1ecb4</Sha>
<SourceBuild RepoName="vstest" ManagedOnly="true" />
</Dependency>
+ <Dependency Name="Microsoft.TestPlatform.CLI" Version="17.7.0-preview.23307.1">
+ <Uri>https://github.com/microsoft/vstest</Uri>
+ <Sha>8381658bfb847e67b4f41a997411e8a804e1ecb4</Sha>
+ </Dependency>
+ <Dependency Name="Microsoft.TestPlatform.Build" Version="17.7.0-preview.23307.1">
+ <Uri>https://github.com/microsoft/vstest</Uri>
+ <Sha>8381658bfb847e67b4f41a997411e8a804e1ecb4</Sha>
+ </Dependency>
<Dependency Name="Microsoft.NET.ILLink.Tasks" Version="8.0.0-preview.6.23307.4">
<Uri>https://github.com/dotnet/runtime</Uri>
<Sha>54dab738de58291ebefc8ff0569a799efaff5d82</Sha>
diff --git a/eng/Versions.props b/eng/Versions.props
index dfa5c80636..ee10eec2d2 100644
--- a/eng/Versions.props
+++ b/eng/Versions.props
@@ -61,25 +61,25 @@
<PropertyGroup>
<!-- Dependencies from https://github.com/nuget/nuget.client -->
<NuGetBuildTasksPackageVersion>6.7.0-preview.3.57</NuGetBuildTasksPackageVersion>
- <NuGetBuildTasksConsolePackageVersion>$(NuGetBuildTasksPackageVersion)</NuGetBuildTasksConsolePackageVersion>
+ <NuGetBuildTasksConsolePackageVersion>6.7.0-preview.3.57</NuGetBuildTasksConsolePackageVersion>
<NuGetLocalizationPackageVersion>6.0.0-rc.278</NuGetLocalizationPackageVersion>
- <NuGetBuildTasksPackPackageVersion>$(NuGetBuildTasksPackageVersion)</NuGetBuildTasksPackPackageVersion>
- <NuGetCommandLineXPlatPackageVersion>$(NuGetBuildTasksPackageVersion)</NuGetCommandLineXPlatPackageVersion>
- <NuGetProjectModelPackageVersion>$(NuGetBuildTasksPackageVersion)</NuGetProjectModelPackageVersion>
- <MicrosoftBuildNuGetSdkResolverPackageVersion>$(NuGetBuildTasksPackageVersion)</MicrosoftBuildNuGetSdkResolverPackageVersion>
- <NuGetCommonPackageVersion>$(NuGetBuildTasksPackageVersion)</NuGetCommonPackageVersion>
- <NuGetConfigurationPackageVersion>$(NuGetBuildTasksPackageVersion)</NuGetConfigurationPackageVersion>
- <NuGetFrameworksPackageVersion>$(NuGetBuildTasksPackageVersion)</NuGetFrameworksPackageVersion>
- <NuGetPackagingPackageVersion>$(NuGetBuildTasksPackageVersion)</NuGetPackagingPackageVersion>
- <NuGetVersioningPackageVersion>$(NuGetBuildTasksPackageVersion)</NuGetVersioningPackageVersion>
- <NuGetPackagingVersion>$(NuGetPackagingPackageVersion)</NuGetPackagingVersion>
- <NuGetProjectModelVersion>$(NuGetProjectModelPackageVersion)</NuGetProjectModelVersion>
+ <NuGetBuildTasksPackPackageVersion>6.7.0-preview.3.57</NuGetBuildTasksPackPackageVersion>
+ <NuGetCommandLineXPlatPackageVersion>6.7.0-preview.3.57</NuGetCommandLineXPlatPackageVersion>
+ <NuGetProjectModelPackageVersion>6.7.0-preview.3.57</NuGetProjectModelPackageVersion>
+ <MicrosoftBuildNuGetSdkResolverPackageVersion>6.7.0-preview.3.57</MicrosoftBuildNuGetSdkResolverPackageVersion>
+ <NuGetCommonPackageVersion>6.7.0-preview.3.57</NuGetCommonPackageVersion>
+ <NuGetConfigurationPackageVersion>6.7.0-preview.3.57</NuGetConfigurationPackageVersion>
+ <NuGetFrameworksPackageVersion>6.7.0-preview.3.57</NuGetFrameworksPackageVersion>
+ <NuGetPackagingPackageVersion>6.7.0-preview.3.57</NuGetPackagingPackageVersion>
+ <NuGetVersioningPackageVersion>6.7.0-preview.3.57</NuGetVersioningPackageVersion>
+ <NuGetPackagingVersion>6.7.0-preview.3.57</NuGetPackagingVersion>
+ <NuGetProjectModelVersion>6.7.0-preview.3.57</NuGetProjectModelVersion>
</PropertyGroup>
<PropertyGroup>
<!-- Dependencies from https://github.com/Microsoft/vstest -->
<MicrosoftNETTestSdkPackageVersion>17.7.0-preview.23307.1</MicrosoftNETTestSdkPackageVersion>
- <MicrosoftTestPlatformCLIPackageVersion>$(MicrosoftNETTestSdkPackageVersion)</MicrosoftTestPlatformCLIPackageVersion>
- <MicrosoftTestPlatformBuildPackageVersion>$(MicrosoftNETTestSdkPackageVersion)</MicrosoftTestPlatformBuildPackageVersion>
+ <MicrosoftTestPlatformCLIPackageVersion>17.7.0-preview.23307.1</MicrosoftTestPlatformCLIPackageVersion>
+ <MicrosoftTestPlatformBuildPackageVersion>17.7.0-preview.23307.1</MicrosoftTestPlatformBuildPackageVersion>
</PropertyGroup>
<PropertyGroup>
<!-- Dependencies from https://github.com/dotnet/runtime -->
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Nikola Milosavljevic <nikolam@microsoft.com>
Date: Mon, 12 Jun 2023 16:08:48 +0000
Subject: [PATCH 2/2] Additional dependencies for PVP flow

Backport: https://github.com/dotnet/sdk/pull/33179
---
eng/Version.Details.xml | 15 +++++++++++++++
1 file changed, 15 insertions(+)

diff --git a/eng/Version.Details.xml b/eng/Version.Details.xml
index a242f463ee..645c3720c9 100644
--- a/eng/Version.Details.xml
+++ b/eng/Version.Details.xml
@@ -381,6 +381,21 @@
<Sha>27e584661980ee6d82c419a2a471ae505b7d122e</Sha>
<SourceBuild RepoName="symreader" ManagedOnly="true" />
</Dependency>
+ <!-- Dependency required for flowing correct package version in source-build, using PVP flow. -->
+ <Dependency Name="Microsoft.Extensions.Logging.Console" Version="6.0.0">
+ <Uri>https://github.com/dotnet/runtime</Uri>
+ <Sha>4822e3c3aa77eb82b2fb33c9321f923cf11ddde6</Sha>
+ </Dependency>
+ <!-- Dependency required for flowing correct package version in source-build, using PVP flow. -->
+ <Dependency Name="Microsoft.Extensions.FileSystemGlobbing" Version="6.0.0">
+ <Uri>https://github.com/dotnet/runtime</Uri>
+ <Sha>4822e3c3aa77eb82b2fb33c9321f923cf11ddde6</Sha>
+ </Dependency>
+ <!-- Dependency required for flowing correct package version in source-build, using PVP flow. -->
+ <Dependency Name="System.ServiceProcess.ServiceController" Version="7.0.0">
+ <Uri>https://github.com/dotnet/runtime</Uri>
+ <Sha>d099f075e45d2aa6007a22b71b45a08758559f80</Sha>
+ </Dependency>
</ProductDependencies>
<ToolsetDependencies>
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="8.0.0-beta.23302.3">