c# - Rename classes using Visual Studio Project Template -
i have created visual studio template using link: http://msdn.microsoft.com/en-us/library/ms185301.aspx.
i able create dialog user enters custom message , gets displayed:
namespace templateproject { class writemessage { static void main(string[] args) { console.writeline("$custommessage$"); } } }
what want allow user rename class names want like:
but see i'm getting errors of "unexpected character $"
how can this?
edit
i see link: http://msdn.microsoft.com/en-us/library/eehb4faa(v=vs.110).aspx
to enable parameter substitution in templates: in .vstemplate file of template, locate projectitem element corresponds item want enable parameter replacement. set replaceparameters attribute of projectitem element true.
but above have not yet generated template yet still defining classes. understnad above step needs done in order parameter substitution enabled file-->new project scenario.
it looks have template file cs
file, causing visual studio attempt build directly.
from can tell should create functioning project, export it, , modify resulting template add replacements need.
Comments
Post a Comment