1
Vote

T4RIA: System.ArgumentException: Cannot convert '\ProjectService.MyTableName.metadata.g.cs' to a path relative to the location of 'C:\MyWorkingFolder\MySolution\MyProject.RIAServices.Web\T4RIA.tt'.

description

Hi.
 
Thank you for T4RIA v1.1.0 + changeset 63359.
 
When I try to run T4RIA.tt, I get the following exception:
An Exception was thrown while running the transformation code. The process cannot continue. The following Exception was thrown:
System.ArgumentException: Cannot convert '\ProjectService.MyTableName.metadata.g.cs' to a path relative to the location of 'C:\MyWorkingFolder\MySolution\MyProject.RIAServices.Web\T4RIA.tt'.
at T4Toolbox.DteProcessor.GetRelativePath(String fromFile, String toFile)
at T4Toolbox.DteProcessor.CreateLogIfNecessary(ICollection1 outputFiles, ProjectItem template)
at T4Toolbox.DteProcessor.UpdateFiles(ICollection
1 outputFiles)
at T4Toolbox.OutputManager.UpdateFiles()
at System.AppDomain.DoCallBack(CrossAppDomainDelegate callBackDelegate)
at System.AppDomain.DoCallBack(CrossAppDomainDelegate callBackDelegate)
at T4Toolbox.TransformationContext.OnTransformationEnded(TextTransformation transformation)
at Microsoft.VisualStudio.TextTemplatingA7433E5C72D05D9BC77CE6C94A288AD1.GeneratedTextTransformation.Dispose(Boolean disposing) in C:\MyWorkingFolder\MySolution\MyProject.RIAServices.Web\T4RIA.tt:line 18
at Microsoft.VisualStudio.TextTemplating.TextTransformation.Dispose()
at Microsoft.VisualStudio.TextTemplating.TransformationRunner.RunTransformation(TemplateProcessingSession session, String source, ITextTemplatingEngineHost host, String& result)
 
The edmx is in the root of the project folder and so in T4RIA.settings.t4, I have set:
const string ModelsFolder = "";
 
Any ideas?
Thank you.

comments