Question

When i try to specify an absolute path for the generated files using

someTemplate.RenderToFile("c:\\tmp\\filename.ext");

I'm getting the following error

Error 263 Running transformation: System.Runtime.InteropServices.COMException (0x80004005): There is already a file of the same name in this folder.

even though the folder is empty.

Was it helpful?

Solution

Vitor,

Are you using Template.RenderToFile method from T4Toolbox? If yes, this method currently doesn't support saving files to a different folder. This has been on my to-do list for a while. What are you generating, anyway?

OTHER TIPS

This functionality was implemented in version 9.3 of T4 Toolbox: http://t4toolbox.codeplex.com/Release/ProjectReleases.aspx?ReleaseId=25294

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top