msbuild-modernization

Convert legacy MSBuild .csproj files to SDK-style format.

Updated May 28, 2026
One-click install
npx skills add https://github.com/ojrojas/AgentsInstructions --skill msbuild-modernization-ojrojas
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: msbuild-modernization
Source: https://github.com/ojrojas/AgentsInstructions/tree/main/.claude/skills/dotnet-msbuild/skills/msbuild-modernization
Command: npx skills add https://github.com/ojrojas/AgentsInstructions --skill msbuild-modernization-ojrojas

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill helps you modernize and migrate your MSBuild project files to the SDK-style format, enhancing your .NET build process and compatibility.

Core Features & Use Cases

  • Legacy to SDK-style Conversion: Migrate legacy .csproj files to the new SDK-style format for better performance and compatibility.
  • Automated Upgrades: Simplifies the process of updating project files, replacing packages.config with PackageReference, and auto-generating assembly attributes.
  • Quick Check: Identifies legacy project files that are candidates for modernization.
  • Use Case: For a developer looking to update an existing .NET Framework project to .NET Core or .NET 5+ with modern build practices.

Quick Start

Run the msbuild-modernization skill in the context of an MSBuild project to begin converting your .csproj files to the new SDK-style format.

Frequently Asked Questions about msbuild-modernization

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

FAQPage Schema
How do I convert a legacy .csproj file to the SDK-style format?

To convert a legacy .csproj file to the SDK-style format, you run the msbuild-modernization skill in the context of your MSBuild project, which automatically updates the project structure for better .NET compatibility.

What is the best way to migrate from packages.config to PackageReference in .NET?

Migrating from packages.config to PackageReference is handled automatically during the MSBuild modernization process, replacing legacy package management with SDK-style PackageReference for streamlined dependency control.

Do I need MSBuild and .NET SDK installed to modernize my project files?

Yes, you need both MSBuild and the .NET SDK installed in your environment to use this modernization skill, as it relies on these tools to convert and validate the new SDK-style project files.

Can I use this MSBuild modernization for a .NET Framework to .NET Core migration?

Yes, this MSBuild modernization is specifically suitable for .NET Framework to .NET Core or .NET 5+ migrations, updating your build process to align with modern SDK-style practices.

How does automatic assembly attribute generation work in SDK-style projects?

Automatic assembly attribute generation in SDK-style projects is included during the modernization process, auto-generating the necessary assembly attributes to reduce manual configuration and streamline your build properties.