Visual Studio Templates - custom parameters
<p>I am using VS 2015 templates to create a project for me, within my  C# classes I have substitutions like <code>$projectname$</code> and they work great if I name my project like this - <code>MyTemplatedProject</code>.  I use <code>$projectname$</code> for the part of class names and namespaces. </p>

<p>If I create generate a class like <code>$projectname$Context</code>, it becomes <code>MyTemplatedProjectContext</code> and all is well.</p>

<p><strong>But</strong> if I name my project <code>MyTemplatedProject.FrontEnd</code> I have problems with the classes that are generated because they have the <code>.</code> in their name.</p>

<p>The substitution <code>$projectname$Context</code> becomes <code>MyTemplatedProject.FrontEndContext</code> and that does not work for a class name. </p>

<p>How do I create custom parameters based <code>$projectname$</code>, ideally I would have a parameter like <code>$projectnameUpToFirstDot$</code> which only returns <code>MyTemplatedProject</code> when the project name is <code>MyTemplatedProject.FrontEndContext</code>?</p>