

You can use the –dp switch to register additional directive processors. Option 2 – Register the Directive Processor with TextTransform.exe The easiest way to resolve the issue is to follow the same steps listed under Option 1 in the previous section to remove the CleanupBehavior directive from the EF ttinclude files. System.IO.FileNotFoundException: Failed to load directive processor T4VSHost.Īt .CommandLineHost.ResolveDirectiveProcessor(String processorName)Īt .ProcessCustomDirectives(ITextTemplatingEngineHost host, TemplateProcessingSession session, IEnumerable`1 directivesToBeProcessed)Īgain, you have two options for resolving the issue. C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\Extensions\Microsoft\Entity Framework Tools\Templates\Includes\EF.Utility.CS.ttinclude(1,4) : error : A processor named 'T4VSHost' could not be found for the directive named 'CleanupBehavior'. However, when using TextTransform.exe it’s not and you will get the following message if you try to process your. When working in Visual Studio, the processor to handle the CleanupBehavior directive is automatically registered. TextTransform.exe is a tools that allows you to process T4 templates from the command line. Resolving the Issue for TextTransform.exe
#Visual studio for mac could not be loaded update#
(obviously you may need to update the CodeBase path depending on where you installed Visual Studio)

VS will hold onto a little more virtual memory… but I doubt you will notice the difference. The simplest way to resolve the issue is just to remove the CleanupBehavior directive from the EF ttinclude files. Option 1 – Remove the CleanupBehavior Directive If you are seeing the “processor named ‘T4VSHost’ could not be found for the directive named ‘CleanupBehavior’” error from within Visual Studio then you have two options: To enable this freeing of memory, we include a new CleanupBehavior directive in our T4 templates.
#Visual studio for mac could not be loaded code#
In Visual Studio 2012 Update 1 we introduced some changes to the T4 processor (and our T4 templates) to allow virtual memory used during code generation to be freed back up by Visual Studio once code generation was complete. When running EF code generation using TextTransform.exe – you need to let the T4 tool know about a new directive we added in Update 1.Inside Visual Studio when code is being generated from an EF model – this isn’t supposed to happen and something probably went wrong during install.

There are two scenarios in which you may see the ‘Processor named ‘T4VSHost’ could not be found for the directive named ‘CleanupBehavior’’ error after installing Visual Studio 2012 Update 1.
