You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support Variables like AspNetVersion, EntityFrameworkCoreVersion, etc. #597
Had a comment from someone noting that my commit nuked a bunch of variables and replaced them with fixed values. I hadn't even noticed, honestly, as I haven't been intentionally using those variables much to date. But they were right:
So, my question/request is, are you planning on supporting apps that use such variables, in which case you'd only update the variable and not all of the PackageDependency entries.
If there's appetite for this from the maintainers, I'd be interested in picking this up, I run into this fairly frequently, so it'd be a nice QoL feature for me.
Have in mind that we don't use MSBuild to do a proper evaluation, so we'll only ever support basic scenarios and not the full dynamicness of MSBuild.
Here's a related (and outdated) PR: #535
not quite the same, but a related scenario where folks would use the convention of a separate dedicated file to update dependency versions (pre-dates CPVM).
Just an update to say I've not forgotten about this, just trying to fit it around things and come up with a solution that isn't too terrible. 😅
For the moment, I'm thinking of an Xpath based solution that somewhat bookends the main flow, capturing variables and their related packages before we update packages, then re-applying the variable and updating the variable definition afterwards, just need to actually sit down and write the code to do that.
Activity
hwoodiwiss commentedon Mar 6, 2025
If there's appetite for this from the maintainers, I'd be interested in picking this up, I run into this fairly frequently, so it'd be a nice QoL feature for me.
slang25 commentedon Mar 6, 2025
That would be awesome @hwoodiwiss, please do 🙂
slang25 commentedon Mar 6, 2025
Have in mind that we don't use MSBuild to do a proper evaluation, so we'll only ever support basic scenarios and not the full dynamicness of MSBuild.
Here's a related (and outdated) PR: #535
not quite the same, but a related scenario where folks would use the convention of a separate dedicated file to update dependency versions (pre-dates CPVM).
hwoodiwiss commentedon May 7, 2025
Just an update to say I've not forgotten about this, just trying to fit it around things and come up with a solution that isn't too terrible. 😅
For the moment, I'm thinking of an Xpath based solution that somewhat bookends the main flow, capturing variables and their related packages before we update packages, then re-applying the variable and updating the variable definition afterwards, just need to actually sit down and write the code to do that.