The following error came up when running the CRUD ScaffoldingGeneratorCommand included in the latest version of (S#arp) Sharp Architecture (SharpArchitecture_18.104.22.1680_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)atMicrosoft.VisualStudio.TextTemplating47271788CEFB3F553507539EE54B112B.GeneratedTextTransformation.ScaffoldingGenerator.GenerateDomainObjectAndTests()in ...
The problem was that I had installed the latest version of T4 Toolbox (v.22.214.171.124) released Mar 26 2009.
Once I replaced the version with an older one (126.96.36.199) 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.