0

How create and use your own ASP.NET MVC scaffolding template? In "add Controller" wizard there is an "template" option with Microsoft templates. I would like to add new ones. A customized one. is that possible?

enter image description here

edit

In Visual Studio 2015 there is no template option anymore.

enter image description here

1

1 Answer 1

2

You can modify the T4 templates used by Visual Studio. This is a good article on how to do it:

https://www.credera.com/blog/technology-insights/microsoft-solutions/create-custom-scaffold-templates-asp-net-mvc/

You copy the default templates into your project "CodeTemplates" folder. You can then alter the templates without affecting the defaults.

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

1 Comment

A link to a solution is welcome, but please ensure your answer is useful without it: add context around the link so your fellow users will have some idea what it is and why it’s there, then quote the most relevant part of the page you're linking to in case the target page is unavailable. Answers that are little more than a link may be deleted.

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.