次のような 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)...
これらのメッセージが表示されないようにするにはどうすればよいですか?
前もって感謝します