Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

VSIX Transform T4 Templates Throws System.UriFormatException

$
0
0

I wrote a Visual Studio extension that transforms T4 templates but am getting the following error for each included template file even though they are located in the same project & folder as the main template file.

There was an error loading the include file 'TemplateFileManagerV2.1.ttinclude'. The transformation will not be run. The following Exception was thrown:
System.UriFormatException: Invalid URI: The format of the URI could not be determined.
   at System.Uri.CreateThis(String uri, Boolean dontEscape, UriKind uriKind)
   at System.Uri..ctor(String uriString)
   at Microsoft.VisualStudio.TextTemplating.VSHost.TextTemplatingService.CheckSecurityZone(String path)
   at Microsoft.VisualStudio.TextTemplating.VSHost.TextTemplatingService.LoadIncludeText(String requestFileName, String& content, String& location)
   at Microsoft.VisualStudio.TextTemplating.Engine.ProcessIncludeDirective(Directive directive, ITextTemplatingEngineHost host, VisitedFiles includedFiles)

This is the include directive

<#@ include file="TemplateFileManagerV2.1.ttinclude" #>

Joe


Viewing all articles
Browse latest Browse all 4410

Trending Articles