My purpose is to create a customized code generator tool that will create an ASP.NET solution that includes an ASP.NET MVC project with default directory structure, multiple class library projects, all the .csproj files, web.config and the .sln file. What is the way to achieve this?
-
Do you mean a guidance package, or a stand-alone tool?Gert Arnold– Gert Arnold2011-10-20 07:32:11 +00:00Commented Oct 20, 2011 at 7:32
-
I want to create a stand-alone tool that will help setup an MVC project with some pre-built library projects and assets like css, js and images.Kayes– Kayes2011-10-20 07:43:41 +00:00Commented Oct 20, 2011 at 7:43
-
Why go through all the trouble? Wouldn't it just be easier to keep a pre-configured solution in a read-only repository and just export it every time you need a fresh solution?Ragesh– Ragesh2011-10-20 07:57:18 +00:00Commented Oct 20, 2011 at 7:57
Add a comment
|
1 Answer
You could always use the Visual Studio extensibility tools to create a new project template (http://msdn.microsoft.com/en-za/vstudio/ff677564) This would allow you to customize the files that are added to the project.
For a standalone tool, I think you would just need to create the project you want to end up with and then write a C# program to write files in a similar way. Visual Studio project files and solution files are just plain text xml files which you can author yourself