标签: asp.net-core
是否存在声明自定义变量并在project.json扩展它们的语法?
project.json
{ "AspNetversion": "1.0.0-beta4", // custom variable "dependencies": { "Microsoft.AspNet.TestHost": "$(AspNetversion)", // expansion }, "frameworks": { "dnx451": { } } }
答案 0 :(得分:0)
您无法在project.json中添加自定义数据,但可以使用配置系统添加应用设置https://github.com/aspnet/configuration