sidewaffle - TemplateBuilder _preprocess - generate new guid as value -


i using sidewaffle templatebuilder create multi project solution. in 1 of projects have guid change during _preprocess generating new guid in place. like:

 add key="base(new  guid("{34bc9328-fc0d-4960-83b2-612b13de1514}"))"  value="base(new guid("mynewguidhere"))"/> 

how can done?

of course, after posting question, new angles , testing. found answer. easier 1 think.

there mechanisms doing built in template generation. more info on them check here template parameters.

but in short can use $guid1$ $guid10$ getting 10 unique guid's. in _preprocess file:

 <add key="base(new guid(&quot;{34bc9328-fc0d-4960-83b2-612b13de1514}&quot;))" value="base(new guid(&quot;$guid1$&quot;))"/> 

it simple :)


Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -