我已添加了一个名为template.tt的文件,其内容如下:
我收到了错误消息:
我应该怎样才能避免看到这些信息?提前感谢。
。
<#@ template language="C#" debug="true" #>
<#@ output extension=".cs" #>
<#@ import namespace="System" #>
<#@ import namespace="System.Collections.Generic" #>
using System;
using System.Collections.Generic;
namespace Test
{
public class <#= this.ClassName#>
{
}
}
<#+
public string ClassName { get; set; }
#>
我收到了错误消息:
An expression block evaluated as Null
at Microsoft.VisualStudio.TextTemplating.ToStringHelper.ToStringWithCulture(Object objectToConvert)...
我应该怎样才能避免看到这些信息?提前感谢。