大写的 Visual Studio 2013 项目模板 $itemname$ [英] Uppercase Visual Studio 2013 project template $itemname$
本文介绍了大写的 Visual Studio 2013 项目模板 $itemname$的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有办法将 Visual Studio 项目模板参数大写?
Is there a way to uppercase Visual Studio project template parameters?
例如将 $safeprojectname$
更改为大写.
For example change $safeprojectname$
to UPPERCASE.
推荐答案
您可以编写一个 模板向导扩展. 在 RunStarted 方法
You can write a template wizard extension. In the RunStarted method
你得到一个包含标准参数列表的字典,应该替换为
you get a dictionary with the list of standard parameters which should be replaced as
Dictionary<string, string> replacementsDictionary
您现在可以翻阅字典并自己做 ToUpper 或其他任何事情:
You can now go over the dictionary and do the ToUpper or anything else by yourself:
foreach (var key in replacementsDictionary.Keys)
{
replacementsDictionary[key] = replacementsDictionary[key].ToUpper();
}
这篇关于大写的 Visual Studio 2013 项目模板 $itemname$的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文