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:

enter image description here

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

Popular posts from this blog

c++ - OpenCV Error: Assertion failed <scn == 3 ::scn == 4> in unknown function, -

php - render data via PDO::FETCH_FUNC vs loop -

The canvas has been tainted by cross-origin data in chrome only -