编译 .tt 文件时,是否可以在指令中指定任何位置以防止将自动生成的代码文件放入 My.Templates 命名空间?
基本指令:
<#@ template language="VB" #>
文件后面自动生成的代码:
'------------------------------------------------------------------------------
'<auto-generated>
' This code was generated by a tool.
' Runtime Version: 10.0.0.0
'
' Changes to this file may cause incorrect behavior and will be lost if
' the code is regenerated.
'</auto-generated>
'------------------------------------------------------------------------------
Namespace My.Templates
<System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.TextTemplating", "10.0.0.0")> _
Partial Public Class DriverApplicationToLicensing