Skip to content

Recognizes version variables and updates the version accordingly#478

Open
IT-VBFK wants to merge 3 commits into
Fallout-build:mainfrom
IT-VBFK:fix/csproj-convert-version-var
Open

Recognizes version variables and updates the version accordingly#478
IT-VBFK wants to merge 3 commits into
Fallout-build:mainfrom
IT-VBFK:fix/csproj-convert-version-var

Conversation

@IT-VBFK

@IT-VBFK IT-VBFK commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Closes #477

@IT-VBFK IT-VBFK requested a review from a team as a code owner July 11, 2026 18:53
@ITaluone ITaluone force-pushed the fix/csproj-convert-version-var branch from 2e73450 to 1391641 Compare July 11, 2026 18:53
@ITaluone ITaluone requested a review from ChrisonSimtian July 11, 2026 18:54
@ITaluone ITaluone added enhancement New feature or request target/vCurrent Targets the current version labels Jul 11, 2026
@IT-VBFK IT-VBFK force-pushed the fix/csproj-convert-version-var branch from f157a46 to 40c5ed9 Compare July 12, 2026 05:32
@ChrisonSimtian ChrisonSimtian requested a review from Copilot July 12, 2026 08:58

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Updates Fallout.Migrate’s .csproj rewrite logic to handle projects that pin Fallout/Nuke package versions via MSBuild properties (e.g., Version="$(NukeVersion)"), aligning with issue #477’s migration expectations.

Changes:

  • Refines the “inline literal version” rewrite to avoid consuming Version="$(...)" so variable-based versions can be handled separately.
  • Adds a new pass that discovers version variables used by PackageReferences and bumps the corresponding property values to the target Fallout version.
  • Extends specs to cover NukeVersionFalloutVersion renaming and arbitrary version-variable bumping behavior.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
src/Fallout.Migrate/CsprojRewriter.cs Adds variable-aware version handling and bumps property-based versions to the target Fallout version.
tests/Fallout.Migrate.Specs/CsprojRewriterSpecs.cs Adds/adjusts specs to validate migration behavior for version variables.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/Fallout.Migrate/CsprojRewriter.cs Outdated
Comment thread src/Fallout.Migrate/CsprojRewriter.cs
Comment thread tests/Fallout.Migrate.Specs/CsprojRewriterSpecs.cs
@IT-VBFK IT-VBFK requested a review from ChrisonSimtian July 12, 2026 11:51
@IT-VBFK IT-VBFK force-pushed the fix/csproj-convert-version-var branch from da9ece9 to d3fc9b9 Compare July 12, 2026 11:56
@ITaluone ITaluone force-pushed the fix/csproj-convert-version-var branch from d3fc9b9 to f3ff5e1 Compare July 12, 2026 11:57
@ITaluone

Copy link
Copy Markdown
Collaborator

@copilot review

@ITaluone ITaluone force-pushed the fix/csproj-convert-version-var branch from f3ff5e1 to 2fb66d4 Compare July 12, 2026 13:41
@IT-VBFK IT-VBFK changed the title Recogizes version variables and updates the version accordingly Recognizes version variables and updates the version accordingly Jul 12, 2026
@IT-VBFK IT-VBFK force-pushed the fix/csproj-convert-version-var branch from 2fb66d4 to 51c3c6b Compare July 12, 2026 18:05
@ITaluone ITaluone force-pushed the fix/csproj-convert-version-var branch from 51c3c6b to 0550dd3 Compare July 14, 2026 05:45
@ITaluone ITaluone force-pushed the fix/csproj-convert-version-var branch from 0550dd3 to 8e438a1 Compare July 14, 2026 06:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request target/vCurrent Targets the current version

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fallout.Migrate: Also recognize csproj variables

4 participants