2015-07-01 133 views
3

有沒有辦法使Visual Studio項目模板參數大寫?

例如將$safeprojectname$更改爲大寫。

回答

0

你可以寫一個template wizard extension.RunStarted方法

你得到它應更換爲

Dictionary<string, string> replacementsDictionary 

你現在可以走了字典標準參數列表中選擇一個字典,做ToUpper的或其他任何東西:

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