The following error came up when running the CRUD ScaffoldingGeneratorCommand included in the latest version of (S#arp) Sharp Architecture (SharpArchitecture_1.0.48.410_RC2.zip with ASP.NET MVC RC 2 and NHibernate 2.0.1):
Error 1 Running transformation: System.IO.FileNotFoundException:
Could not find file 'C:\MyFolder\MyDevelopmentEnvironment\
MyWebApplication\tools\CrudScaffolding\WorkerTests.cs'.
File name: 'C:\MyFolder\MyDevelopmentEnvironment\MyWebApplication
\tools\CrudScaffolding\WorkerTests.cs'
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.Move(String sourceFileName, String destFileName)
at
Microsoft.VisualStudio.TextTemplating47271788CEFB3F553507539EE54B112B.
GeneratedTextTransformation.ScaffoldingGenerator.
GenerateDomainObjectAndTests()
in ...
The problem was that I had installed the latest version of T4 Toolbox (v.9.3.21.2) released Mar 26 2009.
Once I replaced the version with an older one (9.1.20.1) released Jan 20 2009, the errors went away.
It is worth to mention that I haven’t try the latest patch by martik, but I will do that next. Here is the link to the Issue 87: Latest T4 Toolbox is incompatible with CRUD scaffolding that includes a description of the issue and a couple of patches. If anyone else experience the same or had tried the patches please comment.
LnddMiles
The best information i have found exactly here. Keep going Thank you
DaCoder
Thanks. I am glad this information is helping someone.
kempozone
I‘m sure many of you are like me and one of the first things you do in the morning is head here and check out the new post. Along with seeing the new posts, I’m also always checking out the blog roll rss feed and watching them grow, or shrink sometimes. In one of my past …but all in all excellent site. Keep it up!
Donnieboy
Just wanted to drop you a line to say, I enjoy reading your site. I thought about starting a blog myself but don’t have the time.
Oh well maybe one day…. 🙂