gpt4 book ai didi

visual-studio-2013 - 大写 Visual Studio 2013 项目模板 $itemname$

转载 作者:行者123 更新时间:2023-12-01 14:12:23 25 4
gpt4 key购买 nike

有没有办法将 Visual Studio 项目模板参数大写?

例如,将 $safeprojectname$ 更改为大写。

最佳答案

你可以写一个template wizard extension.RunStarted方法

你得到一个包含标准参数列表的字典,应该替换为

Dictionary<string, string> replacementsDictionary

您现在可以自己翻查字典并执行 ToUpper 或其他任何操作:

foreach (var key in replacementsDictionary.Keys)
{
replacementsDictionary[key] = replacementsDictionary[key].ToUpper();
}

关于visual-studio-2013 - 大写 Visual Studio 2013 项目模板 $itemname$,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31171992/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com