System.IO.DirectoryNotFoundException: Could not find a part of the path 'build/webui\Views/Web.config'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite)
at Phantom.Core.WrappedFileInfo.CopyToDirectory(String path)
at build.$$Execute$closure$23$closure$25.Invoke(WrappedFileSystemInfo file) in D:\Projects\build.boo:line 82
at Phantom.Core.Builtins.UtilityFunctions.ForEach[T](IEnumerable`1 source, Action`1 action)
at build.$Execute$closure$23.Invoke() in D:\Projects\build.boo:line 85
at Phantom.Core.Target.Execute()
at Phantom.Core.ScriptModel.ExecuteTargets(String[] targetNames)
at Phantom.Program.Execute(String[] args)
Running the build with the debug symbols I get:
System.IO.DirectoryNotFoundException: Could not find a part of the path 'build/webui\Views/Web.config'.
at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
at System.IO.File.InternalCopy(String sourceFileName, String destFileName, Boolean overwrite)
at Phantom.Core.WrappedFileInfo.CopyToDirectory(String path) in d:\OpenSource\Build\Phantom2\Phantom\src\Phantom.Core\WrappedFileInfo.cs:line 75
at build.$$Execute$closure$23$closure$25.Invoke(WrappedFileSystemInfo file)
at Phantom.Core.Builtins.UtilityFunctions.ForEach[T](IEnumerable`1 source, Action`1 action) in d:\OpenSource\Build\Phantom2\Phantom\src\Phantom.Core\Builtins\UtilityFunctions.cs:line 34
at build.$Execute$closure$23.Invoke()
at Phantom.Core.Target.Execute() in d:\OpenSource\Build\Phantom2\Phantom\src\Phantom.Core\Target.cs:line 81
at Phantom.Core.ScriptModel.ExecuteTargets(String[] targetNames) in d:\OpenSource\Build\Phantom2\Phantom\src\Phantom.Core\ScriptModel.cs:line 73
at Phantom.Program.Execute(String[] args) in d:\OpenSource\Build\Phantom2\Phantom\src\Phantom\Program.cs:line 57
I am pretty sure this is one of those reason like why people use IIS to debug websites instead of visual studio. Either visual studio is covering up my mistakes or the cmd prompt / console causes problems. Either way I am not sure I can reproduce the problem. For some reason the console seems to think that web.config is a folder. I assume this is also the reason why your recursive delete refused to work for me from the console.
I'll give it another shot tomorrow.