VB.NET Template

You should create a new Text Template file, name it the same name of your resx file (i.e. Resources.tt) and copy-and-paste the following code:

<#@ Template Debug="False" Hostspecific="True" Language="VB" #>
<#@ Output Extension=".txt" #>
<#@ Assembly Name="$(TargetDir)SmartStringResources.dll" #>
<#@ Import Namespace="SmartStringResources" #>
<#
Dim options As New GeneratorOptions With {
	.GenerateResources = True,
	.ResourcesAccessibilityLevel = AccessibilityLevel.Default,
	.GenerateResourceKeys = True,
	.ResourceKeysAccessibilityLevel = AccessibilityLevel.Default,
	.TargetResourcesNamespace = Nothing,
	.TargetResourcesClassName = Nothing,
	.TargetResourceKeysNamespace = Nothing,
	.TargetResourceKeysClassName = Nothing
}
#>
<#= SmartStringResourcesGenerator.Generate(Host, Host.TemplateFile, options) #>

Last edited Mar 19, 2013 at 11:18 PM by mrinaldi1, version 3

Comments

No comments yet.