migrating-razorengine-to-razorlight Skill
Migrates the deprecated RazorEngine to RazorLight for Razor template rendering outside of MVC. Use ONLY when RazorEngine has been flagged as deprecated or unmaintained and must be replaced — not for version-bump scenarios where RazorEngine is still supported. Published by microsoft in upgrade-agent-plugins.
What is migrating-razorengine-to-razorlight Skill?
Migrates the deprecated RazorEngine to RazorLight for Razor template rendering outside of MVC. Use ONLY when RazorEngine has been flagged as deprecated or unmaintained and must be replaced — not for version-bump scenarios where RazorEngine is still supported. Published by microsoft in upgrade-agent-plugins. This profile combines repository metadata with install, compatibility, and usage signals so developers can quickly decide whether it fits their agent workflow before opening the source repository.
Automated repository signals based on public metadata such as recency, license, installation evidence, and adoption. These are not a security audit or endorsement.
Key capabilities
- Includes SKILL.md support
- Reusable instructions support
- Developers using upgrade-agent-plugins
Technical details
- Install or run with Copy skill directory
When to use migrating-razorengine-to-razorlight Skill
- Use it for developers using upgrade-agent-plugins.
Built with
Editorial notes
Source
- Creator: microsoft
- Repository: microsoft/upgrade-agent-plugins
- Skill file: plugins/upgrade-agent/extenders/upgrade-dotnet/upgrade/skills/lazy/libraries/migrating-razorengine-to-razorlight/SKILL.md
What it does
Migrates the deprecated RazorEngine to RazorLight for Razor template rendering outside of MVC. Use ONLY when RazorEngine has been flagged as deprecated or unmaintained and must be replaced — not for version-bump scenarios where RazorEngine is still supported.
Skill instructions
RazorEngine to RazorLight Migration Overview Migrate Razor-based template rendering from RazorEngine to RazorLight. RazorEngine relies on a global static Engine.Razor singleton and synchronous compilation, which is incompatible with modern .NET. RazorLight provides an async-first API, built-in dependency injection support, and runs on .NET 6+. The core change is replacing Engine.Razor.RunCompile() with RazorLightEngine.CompileRenderAsync(). Package Reference Changes Old References (Remove) xml <PackageReference Include="RazorEngine" Version="" / <!-- Also remove if present -- <PackageReference Include="RazorEngine.NetCore" Version="" / New Reference (Add) xml <PackageReference Include="RazorLight" Version="{latest-stable}" / Workflow Migration Progress: - [ ] Step 1: Detect RazorEngine usage - [ ] Step 2: Update package references - [ ] Step 3: Replace engine initialization - [ ] Step 4: Migrate template rendering calls - [ ] Step 5: Migrate custom template sources - [ ] Step 6: Update
Explore related resources
Frequently asked questions
What is migrating-razorengine-to-razorlight?
migrating-razorengine-to-razorlight is a open-source AI agent skill with Copy skill directory. Migrates the deprecated RazorEngine to RazorLight for Razor template rendering outside of MVC.
Who is migrating-razorengine-to-razorlight best for?
migrating-razorengine-to-razorlight is best for reusing agent instructions, scripts, and references.
How do I install migrating-razorengine-to-razorlight?
Install or run migrating-razorengine-to-razorlight using Copy skill directory. Check migrating-razorengine-to-razorlight for the latest setup command.
Is migrating-razorengine-to-razorlight actively maintained?
migrating-razorengine-to-razorlight may need a closer maintenance check before production use.
Auto-fetched from GitHub.