2

I have an issue with namespaces in views when I export my template. The cs files have a variable to replace namespace. But cshtml (strongly typed view) contains parent project namespace for model.

How to make visual studio export views with variables?

I have tried to change template cshtml files and replaced namespace for model this way

@model $safeprojectname$.Models.ContactUsModel

and it didn't helped.

Thanks

xwrs
  • 1,287
  • 3
  • 16
  • 29

1 Answers1

2

I found a resolution for my issue. Hope it will help someone. I've replaced namespace in view with $safeprojectname$. Then I changed vstemplate file in line, related to changed cshtml to set parameter to true.

xwrs
  • 1,287
  • 3
  • 16
  • 29