Closed GoogleCodeExporter closed 9 years ago
I modified ScaffoldingGenerator.tt to work with the latest version of T4
Toolbox
(9.3.21.2 from March 26). A patch file with the changes and the complete
changed file
are attached to this comment. Thanks to the latest changes by Oleg Sych,
opening and
closing the solution doesn't seem to be necessary any more.
I have not tested my changes thoroughly, but the generator creates everything
fine
for me (domain object + tests, controller + tests, views). Any feedback
appreciated.
Original comment by mar...@gmail.com
on 6 Apr 2009 at 1:40
Attachments:
I think you should change the line 45 to:
string targetPathRoot = applicationRootPath + solutionName + ".Web\\Views\\";
Otherwise the files will also be created in the main solution directory.
Original comment by fzaw...@gmail.com
on 29 Apr 2009 at 1:38
I don't know whether it's a problem with my setup but I now notice that the
core and
test files are generated in the root of their respective projects and not in
the
namespace subfolders that should be created. The views are created in their
subfolders correctly however.
Original comment by mtnog...@gmail.com
on 16 May 2009 at 9:44
Should we also look at
http://tangibleengineering.blogspot.com/2009/05/tangible-t4-
editor-14-support-for-mvc.html as a recommended editor?
Original comment by wmccaffe...@gmail.com
on 29 May 2009 at 4:22
There is some problems with the namespacing, it doesn't create the folder
hierarchy
in some project. Line 91 should be something like:
RenderFileToProject(domainObjectTemplate,
CreateDirectoriesAndAppendNamespacePathTo("") + fileName, outputProject);
Original comment by bondeha...@gmail.com
on 16 Jun 2009 at 7:52
martik, your patch has been an IMMENSE time saver...thank you! I'm currently
testing
it out with the 9.5 build of T4 Toolbox and am making a few tweaks to handle
namespaces and such. Thank you very much for the assistance!
Original comment by wmccaffe...@gmail.com
on 1 Jul 2009 at 4:04
I've fixed this locally to support namespaces and will have it included in the
next
check-in (which should be 1.0 RTM).
Original comment by wmccaffe...@gmail.com
on 15 Jul 2009 at 5:04
Original issue reported on code.google.com by
wmccaffe...@gmail.com
on 31 Mar 2009 at 9:11