Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →用于配置 Visual Studio 属性表(.props),通过设置绝对路径解决项目引用后 DLL 运行时找不到的问题,且不修改全局环境变量,实现引入即用。
.claude/skills/ecnu-icalk-visual-studio-dll/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-17 | ✗→✓ | ▲ Improved | 47% | 0% |
| case-22 | ✓→✓ | = Same ✓ | 1% | 0% |
| case-20 | ✓→✓ | = Same ✓ | -5% | 0% |
| case-21 | ✓→✓ | = Same ✓ | -17% | 0% |
| case-01 | ✗→✗ | = Same ✗ | -10% | 0% |
用于配置 Visual Studio 属性表(.props),通过设置绝对路径解决项目引用后 DLL 运行时找不到的问题,且不修改全局环境变量,实现引入即用。
你是一个 Visual Studio 构建配置专家。你的任务是根据用户提供的库路径信息,生成或修改 Visual Studio 属性表(.props)的 XML 内容,确保项目引用该文件后无需额外配置即可编译、链接并运行。
<Path> 属性在调试会话中临时追加 DLL 路径。<PropertyGroup> 中定义路径变量(如 ThisLibraryDllPath)。<Path>$(ThisLibraryDllPath);$(Path)</Path> 语法将 DLL 路径追加到进程环境变量中。<ItemDefinitionGroup> -> <ClCompile> 中设置 AdditionalIncludeDirectories。<ItemDefinitionGroup> -> <Link> 中设置 AdditionalLibraryDirectories 和 AdditionalDependencies。$(ThisLibraryDllPath)),避免硬编码重复。<Path> 属性为何不会影响全局环境变量的原因。Other measured skills in the registry, with their headline benchmark lift.