Please help with output

May 29, 2015 at 11:25 AM
Edited May 29, 2015 at 11:28 AM
Hey
I am new with T4 and your tool. - What I try to achieve is to generate the code within a different path & with a different Name.
There I have read your post. - But, what I see there is a simple Class file, which is created and then created as file. - But I have a complex .tt file (which is working) - But I am not able to transform it.
So, I hope someone can help me.
I attach my .tt file. The result of this .tt file should be generated somewhere else.
THX a lot - Have a nice day
<#@ template debug="true" hostspecific="true" language="VB" #>
<#@ include file="T4Toolbox.tt" #>
<#@ output extension=".vb" #>
<#@ assembly name="System.Windows.Forms" #>

<#@ import namespace="System.Resources" #>
<#@ import namespace="System.Collections" #>
<#@ import namespace="System.IO" #>
<#@ import namespace="System.ComponentModel.Design" #>

<#
       
    Dim myNameSpace As String = "UI"
    Dim myClassName As String = "GetCustomerUI"
    Dim myTypeOfResourceManager As String = "TypeOfResourceManager.UICustomer"
    Dim myResourcePath As String = "Resources\de-AT\Customer"

    Dim myFileName As String = "Customer.de-AT.resx"
    Dim myFilePath As String = Path.Combine(Path.GetDirectoryName(Me.Host.ResolvePath("")), myResourcePath, myFileName)
    Dim myReader= New ResXResourceReader(myFilePath)
    
    myreader.UseResXDataNodes = true
#>

namespace <#=myNameSpace #>
  Public Class <#=myClassName #>
        Inherits Localize.Localization
        Public Sub New()
            MyBase.New(<#= myTypeOfResourceManager #>)
        End Sub
<#   For each item As DictionaryEntry In myReader 
        Dim name = item.Key
        Dim node = DirectCast(item.Value, ResXDataNode)
        Dim comment = node.Comment
        Dim summary As String = String.Empty
        If Not [String].IsNullOrEmpty(comment) Then
            summary += " - " + comment
        End If
#>

        ''' <summary>
        ''' <#= summary #>
        ''' </summary>
        ''' <remarks></remarks>

        Public ReadOnly Property Get<#= name #> As String
            Get
                Return MyBase.GetLocalizedString("<#= name #>")
            End Get
        End Property

<#
    Next
#>
    End Class
End NameSpace