3
有沒有辦法使Visual Studio項目模板參數大寫?
例如將$safeprojectname$
更改爲大寫。
有沒有辦法使Visual Studio項目模板參數大寫?
例如將$safeprojectname$
更改爲大寫。
你可以寫一個template wizard extension.在RunStarted方法
你得到它應更換爲
Dictionary<string, string> replacementsDictionary
你現在可以走了字典標準參數列表中選擇一個字典,做ToUpper的或其他任何東西:
foreach (var key in replacementsDictionary.Keys)
{
replacementsDictionary[key] = replacementsDictionary[key].ToUpper();
}