再会!
我正在使用来自 NuGet 的 2.6.65 的最新 T4MVC(从 2.6.64 升级),我已经设置
// 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();
}
这是一个错误吗?