Agent skill · github

resx-source-generator-migration

Migrates a project that uses checked-in .designer.cs files behind .resx to using a source-generator instead

What it needs

About 5k tokens when loaded.

What this skill does

Your goal is to migrate the project to use a source-generator for .resx files instead of checked-in .designer.cs files. User Input Amend the instructions below with the following user input. The user input is likely to be an absolute or repo-relative path to an msbuild project file or a directory containing an msbuild project to be migrated. Migration Complete each of the following sub-sections. Opt into the source generator Inspect the target's package-management setup and configured NuGet sources before adding the package: 1. If the repository centrally manages package versions and already has a PackageVersion for Microsoft.CodeAnalysis.ResxSourceGenerator, add this versionless reference to an ItemGroup in the project file: 2. If no central version exists, select a package version compatible with the target SDK/compiler and follow the repository's established version-management pattern. Specify the version on the PackageReference or add the corresponding central PackageVersion. 3. Verify that the configured NuGet sources can resolve the selected package. If they cannot, ask the user before changing feed configuration. Remove traces of .resx code-behind files Search for any msbuild items related to resx files. They typically come in pairs, as shown below: Note that you might also find <Generator>PublicResXFileCodeGenerator</Generator> (or <CustomTool> instead of <Generator>) as .resx item metadata. For each strongly typed .resx file being migrated, identify its generated designer file using all of these signals: LastGenOutput metadata on the EmbeddedResource item; a Compile item whose DependentUpon metadata names the .resx file; and a matching .Designer.cs file on disk, even when the SDK includes it implicitly and no Compile item exists. Before deleting a candidate, inspect its contents and confirm it is a generated resource accessor, such as a class containing ResourceManager, Culture, and properties that retrieve resource values. …

How to use it

Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:

@skills github/resx-source-generator-migration

View the source on GitHub

Browse the @skills marketplace