良い一日!
NuGet (2.6.64 からアップグレード) の 2.6.65 の最新の T4MVC を使用しています。
// If true, use lower case tokens in routes for the area, controller and action names
static bool UseLowercaseRoutes = true;
そして、エラーが発生しました:
The expression being assigned to '....' must be constant ...\T4MVC.cs
エラーをトリガーする生成コードは次のとおりです。
[GeneratedCode("T4MVC", "2.0"), DebuggerNonUserCode]
public class ActionNameConstants {
public const string Calc = ("Calc").ToLowerInvariant();
}
これはバグですか?