Skip to content

Version EditorConfig VS components independently - #85250

Merged
JoeRobich merged 4 commits into
mainfrom
copilot/update-versioning-editorconfig
Sep 10, 2026
Merged

Version EditorConfig VS components independently#85250
JoeRobich merged 4 commits into
mainfrom
copilot/update-versioning-editorconfig

Conversation

Copilot AI commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

EditorConfig VS components (Command, Setup, Templates, Wizard, WizardSetup) currently inherit Roslyn's main assembly version instead of being versioned against the VS train, unlike Razor tooling which already has its own scoped version.

Common VS train properties

  • Added VsMajorVersion / VsMinorVersion to eng/Versions.props as the single source of truth for the current VS train.
  • VsMajorVersion is calculated as Roslyn MajorVersion + 13; VsMinorVersion is calculated from Roslyn MinorVersion.
  • Roslyn 5.12 therefore produces VS train 18.12.

Razor tooling refactor

  • RazorVsixVersionPrefix and RazorAddinMajorVersion now derive from VsMajorVersion/VsMinorVersion plus RazorVsixPatchVersion (1), instead of hard-coding 18.12.
  • Resulting values (18.12.1 for VSIX, 18.12 for addin, and the existing official/non-official RazorAddinVersion logic) are unchanged.

EditorConfig versioning

  • Added EditorConfigPatchVersion (0), EditorConfigVersionPrefix (18.12.0), and EditorConfigAssemblyVersion (18.12.0.0) to eng/Versions.props.
  • Added src/VisualStudio/EditorConfig/Directory.Build.props, scoping all projects under that directory to the EditorConfig version instead of Roslyn's.

Snap workflow

  • Updated the Snap skill to bump the Roslyn source version and rely on the derived VS train for Razor tooling and EditorConfig versions.
  • Snap guidance now leaves VsMajorVersion, VsMinorVersion, RazorVsixVersionPrefix, RazorAddinMajorVersion, and EditorConfig version properties unchanged while continuing to update Razor SDK versions when channel mapping requires it.

EditorConfig components version as 18.12.0 while Razor tooling remains 18.12.1, with both driven automatically by Roslyn's version.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
2 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.

Co-authored-by: JoeRobich <611219+JoeRobich@users.noreply.github.com>
Copilot AI changed the title [WIP] Update versioning for Visual Studio EditorConfig components Version EditorConfig VS components independently, following Razor's scoped-versioning pattern Sep 10, 2026
Copilot AI requested a review from JoeRobich September 10, 2026 20:01
@JoeRobich
JoeRobich marked this pull request as ready for review September 10, 2026 20:05
@JoeRobich
JoeRobich requested review from a team as code owners September 10, 2026 20:05
Copilot AI lite review requested due to automatic review settings September 10, 2026 20:05
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 2 pipeline(s).
There may be pipelines that require an authorized user to comment /azp run to run.

@JoeRobich JoeRobich changed the title Version EditorConfig VS components independently, following Razor's scoped-versioning pattern Version EditorConfig VS components independently Sep 10, 2026

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.

🟡 Changes recommended

Update the snap procedure to use the shared VS train properties.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

This pull request gives EditorConfig VS components independent versioning while centralizing the shared Visual Studio train values used by EditorConfig and Razor tooling.

Changes:

  • Adds shared VS train and EditorConfig version properties.
  • Applies scoped 18.12.0 versioning to EditorConfig projects.
  • Derives Razor versions from the shared VS train while preserving current values.
File summaries
File Description
src/VisualStudio/EditorConfig/Directory.Build.props Applies EditorConfig-specific versioning to child projects.
eng/Versions.props Defines shared VS, Razor, and EditorConfig version properties. Nit: Snap guidance should update the shared VsMajorVersion/VsMinorVersion properties rather than derived Razor properties.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Lite

Comment thread eng/Versions.props Outdated
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings September 10, 2026 21:04

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.

🟢 Approval recommended

No unresolved review comments were identified.

Review details
  • Files reviewed: 3/3 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

Copilot AI review requested due to automatic review settings September 10, 2026 21:42

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.

🟢 Approval recommended

Only a minor documentation nit was identified, and it does not block approval.

Review details

Suppressed comments (1)

.github/skills/snap/SKILL.md:724

  • This updated follow-up instruction refers to <Razor.RazorMajorVersion>, but the property defined in eng/Versions.props is <RazorMajorVersion>. Please correct the placeholder so the snap workflow unambiguously identifies the Razor SDK major to match.
**Deferred Razor SDK version bump** (roslyn only): If the Razor SDK version bump (Phase 2 step 5) was deferred during the initial snap because no matching `.NET <Razor.RazorMajorVersion>.0.<Band>xx SDK` channel existed on `main` at the time, re-check now:
  • Files reviewed: 3/3 changed files
  • Comments generated: 0 new
  • Review effort level: Lite

@JoeRobich
JoeRobich enabled auto-merge (squash) September 10, 2026 22:24
@JoeRobich
JoeRobich merged commit 50568b7 into main Sep 10, 2026
25 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants