Skip to content

Conversation

@NikolaMilosavljevic
Copy link
Member

Contributes to dotnet/source-build#3043

PVP flow is a method of flowing dependencies in source build that only overrides versions of packages that the repo has a declared dependency on in Version.Details.xml. This means that the package flow is closer to the Microsoft's way of building .NET.

To enable this for sdk, we've added nuget.client and vstest dependencies with #33039. However, 3 dependencies are needed to prevent introduction of reference assemblies and runtime issues. This PR adds these additional dependencies. Patch for this change is being added to existing PR in installer: dotnet/installer#16633

To fully enable PVP flow, the repo project in the VMR will need to set <PackageVersionPropsFlowType>DependenciesOnly</PackageVersionPropsFlowType> once these changes flow in.

@NikolaMilosavljevic NikolaMilosavljevic requested review from a team and mmitche June 12, 2023 15:49
@ghost ghost added Area-Infrastructure untriaged Request triage from a team member labels Jun 12, 2023
<Sha>27e584661980ee6d82c419a2a471ae505b7d122e</Sha>
<SourceBuild RepoName="symreader" ManagedOnly="true" />
</Dependency>
<!-- Dependencies required for flowing correct package versions in source-build, using PVP flow. -->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Consider applying this comment to every dependency you've added so that there isn't confusion about which packages this applies to.

For example, someone may insert an additional dependency at the end of the list here not knowing that this comment would be interpreted to be relevant to that new package even though that wasn't the intention.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will do - I considered listing dependencies in the comment, but your suggestion seems cleaner.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed with 87ddbaa

@NikolaMilosavljevic NikolaMilosavljevic merged commit 0aba953 into dotnet:main Jun 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-Infrastructure untriaged Request triage from a team member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants