-
Notifications
You must be signed in to change notification settings - Fork 255
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
[Feature]: Support overriding centrally managed version on a package reference #9465
Comments
Three options were discussed. Added them below.
Behavior changes
Behavior changes
<Project>
<ItemGroup name="Test">
<PackageVersion Include="Newtonsoft.Json" Version="12.0.2" />
</ItemGroup>
<ItemGroup>
<PackageVersion Include="Newtonsoft.Json" Version="12.0.3" />
<PackageVersion Include="EntityFramework" Version="6.2.0" />
<PackageVersion Include="ParentLibTestCM1" Version="3.0.0" />
<PackageVersion Include="LibTestCM1" Version="3.0.0" />
<PackageVersion Include="NUnit" Version="3.12.0" />
<PackageVersion Include="Microsoft.Azure.Storage.Common" Version="11.1.2" />
</ItemGroup>
</Project>
.csproj <Project>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Group=”Test” />
</ItemGroup>
</Project> |
Cleaned the milestone as more customer insights are needed to decide the right workflow. |
Hi there,
Behavior changes Pros: Cons: Thanks |
Hello @kzu, thank you very much for the feedback! Would the proposed solution be similar with #9465 (comment) ? |
Heya, yes, count me in if it's not too late. It was confusing that the options were not all laid out it in the main description, and rather just a comment, but yes, the comment includes what I mentioned. |
Closing in favor of #11516 which has final design |
Details about Problem
Feature request
CPVM support version overrides.
Version overrides are supported as a product of MsBuild flexibility.
Option 1: use the Import MsBuild element but there is not a build in experience for the version overrides.
Option 2 : use the MsBuild Update as :
<PackageVersion Update="Foo" Version="1.2.3"/>
Option 3: use the MsBuild Conditions as :
Directory.Packages.Props
Directory.Build.props (for the project that needs Newtonsoft 12.0.2)
The text was updated successfully, but these errors were encountered: