TextTransformation With Vs Package

Category: visual studio extensibility


Kani_mozhi on Thu, 08 May 2014 10:14:33

I have used T4 Text Templating For my Vs Package.am using Customlinecommandhost for transformation.After Transformation the Output file contains Unnecessary lines.the output is as follows.
Namespace myt4
Using System
line :1 C:\Users\kanimozhikp\Documents\Visual Studio 2012\Projects\samp
Public override string TextTransform()
}...and so on.i dont need the above mentioned line in my output.Please any one give me the solution.and more over this problem arises when am using the OS in which vs12 alone installed.When Using OS With Vs10,vs12,vs 13 it produces the proper output.


Herro wong on Fri, 09 May 2014 02:29:31

Hi Hasinigopal,

I think this thread is specific to Visual Studio Integrate forum. So I am helping you to move this thread directly into that forum. Thank you for your understanding.


We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click HERE to participate the survey.

Anna Cc on Fri, 09 May 2014 07:41:10


I'm trying to involve some senior engineers into this issue and it will take some time. Your patience will be greatly appreciated.

We will let you know if any progress is made.

Sorry for any inconvenience.

Best regards,


Vicky Song on Mon, 12 May 2014 03:36:20


Can you show me the text template you'r using? By the way, if you just test the custom host on the Windows 8 machine, not invoke the Text Transformation in a VS Extension, will you get the same issue?


Kani_mozhi on Mon, 12 May 2014 06:26:23


My text template is as follows,

<#@ template language="C#" #>
<#@ output extension=".cshtml" #>

    ViewBag.Title = "Product1";
    Layout = "~/Views/Shared/_Layout.cshtml";

<<Source code here>>

And moreover i am getting this problem only with windows 8.1.


Vicky Song on Tue, 13 May 2014 01:26:18


Thanks for your response. Your issue seems very strange to me, I'm trying to involve other senior engineers.


Jacky Wu - MSFT on Mon, 19 May 2014 06:25:01


Do you have a minimal sample project for me to local repro and better understand your issues?


Kani_mozhi on Wed, 28 May 2014 05:46:19

Hi ,

I have attached screen shots of my sample.

You can find the Sample at the following link.


1.Highlighted is the VS menu of my sample.

And this is the output i get,which was unexpected.



Kani_mozhi on Tue, 17 Jun 2014 08:20:47


Some update on this issue: This problem arises when am using the OS in which vs12 alone installed.When Using OS With Vs10,vs12,vs 13 it produces the proper output.the problem arises when Referring the DLL,Please help me to Fix this issue.