I have a custom visual studio 2010 mvc3 project that we use in our shop for new projects. When replacing namespaces with the actual project name, everything works great until I get to my .cshtml pages. Is there a way to force the template engine to pass the variables in to the page?
I have something like the following:
<title>@$safeprojectname$.Constants.applicationName</title>
Is there a way I can set this up such that someone starting a new project doesn’t have to replace any text?
Go into your project template’s vstemplate file and make sure that every
ProjectItementry that uses parameters has theReplaceParameters="true"attribute set.