update-roslyn-version

Update Roslyn dependency versions in the razor repository and refresh commit SHAs.

710|241|Updated Nov 28, 2018
One-click install
npx skills add https://github.com/dotnet/razor --skill update-roslyn-version
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: update-roslyn-version
Source: https://github.com/dotnet/razor/tree/main/.github/skills/update-roslyn-version
Command: npx skills add https://github.com/dotnet/razor --skill update-roslyn-version

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill automates the process of updating Roslyn dependency versions within the razor repository, ensuring consistency and leveraging the latest Roslyn features.

Core Features & Use Cases

  • Version Synchronization: Updates Version.Details.props and Version.Details.xml to reflect new Roslyn versions.
  • Dependency Management: Ensures correct package restoration and commit SHA updates for Roslyn packages.
  • Use Case: When a new Roslyn version is released, use this Skill to seamlessly update all related dependencies in the razor project.

Quick Start

Use the update-roslyn-version skill to update the Roslyn version to 5.5.0-2.26118.1.

Frequently Asked Questions about update-roslyn-version

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I update Roslyn dependency versions in the razor repository?

To update Roslyn dependency versions in the razor repository, modify the `eng/Version.Details.props` and `eng/Version.Details.xml` files with the new version, then run `restore.cmd` to download packages and extract the commit SHA from the `.nuspec` file to update the `<Sha>` value.

What files need to be modified to change the Roslyn version in a razor project?

Changing the Roslyn version in a razor project requires modifying `eng/Version.Details.props` and `eng/Version.Details.xml` to update version numbers and the corresponding commit SHA for the Roslyn dependencies.

How does the restore process work when updating Roslyn packages?

The restore process works by running `restore.cmd` after updating `eng/Version.Details.props` to download the new Roslyn packages, extracting the commit SHA from the downloaded `.nuspec` file, and updating the `<Sha>` value in `eng/Version.Details.xml`.

Can I use this Skill to update dependencies other than Roslyn in the razor repository?

No, this Skill specifically updates Roslyn dependency versions in the razor repository by targeting only Roslyn entries in `eng/Version.Details.xml` and `eng/Version.Details.props`.

What is the best way to ensure the correct commit SHA is updated for Roslyn dependencies?

The best way to ensure the correct commit SHA is updated for Roslyn dependencies is to run `restore.cmd` to download the new packages, extract the commit SHA from the `.nuspec` file, and update the `<Sha>` value in `eng/Version.Details.xml`.