·dotnet-source-gen-regex
</>

dotnet-source-gen-regex

im5tu/dotnet-skills

转换 Regex 实例以使用编译时源生成器。当用户想要优化正则表达式性能或启用 AOT 兼容性时使用。

2安装·0热度·@im5tu

安装

$npx skills add https://github.com/im5tu/dotnet-skills --skill dotnet-source-gen-regex

SKILL.md

The regex source generator creates compile-time generated regex implementations that are:

| RegexOptions.Compiled | Ignored by source gen - remove it | | .NET Version | Requires .NET 7+ | | Caching | Generated method caches singleton internally | | Timeout | Use [GeneratedRegex("pattern", RegexOptions.None, 1000)] for timeout (milliseconds) |

转换 Regex 实例以使用编译时源生成器。当用户想要优化正则表达式性能或启用 AOT 兼容性时使用。 来源:im5tu/dotnet-skills。

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/im5tu/dotnet-skills --skill dotnet-source-gen-regex 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

查看原文

可引用信息

为搜索与 AI 引用准备的稳定字段与命令。

安装命令
npx skills add https://github.com/im5tu/dotnet-skills --skill dotnet-source-gen-regex
分类
</>开发工具
认证
收录时间
2026-02-05
更新时间
2026-02-18

快速解答

什么是 dotnet-source-gen-regex?

转换 Regex 实例以使用编译时源生成器。当用户想要优化正则表达式性能或启用 AOT 兼容性时使用。 来源:im5tu/dotnet-skills。

如何安装 dotnet-source-gen-regex?

打开你的终端或命令行工具(如 Terminal、iTerm、Windows Terminal 等) 复制并运行以下命令:npx skills add https://github.com/im5tu/dotnet-skills --skill dotnet-source-gen-regex 安装完成后,技能将自动配置到你的 AI 编程环境中,可以在 Claude Code 或 Cursor 中使用

这个 Skill 的源码在哪?

https://github.com/im5tu/dotnet-skills