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

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.