Visual Studio 2013大写项目模板$itemname$

3
有没有办法将Visual Studio项目模板参数大写?
例如将 $safeprojectname$ 更改为大写。
1个回答

0

你可以编写一个模板向导扩展。在RunStarted方法中,

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

Dictionary<string, string> replacementsDictionary

现在你可以自己遍历字典并进行 ToUpper 或其他操作:

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

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接