Why does Visual Studio tell me that the AddJsonFile() method is not defined?

后端 未结 4 1602
天涯浪人
天涯浪人 2020-12-25 09:26

I\'m developing an ASP.NET 5 WebAPI project using VS Ultimate 2015 Preview. I\'m trying to configure the app in this way (line numbers are just guides):

1 us         


        
4条回答
  •  执念已碎
    2020-12-25 09:52

    Under project.json you will need to add it within dependencies

    dependencies {
    "Microsoft.Extensions.Configuration.Json": "1.0.0"
    }
    

提交回复
热议问题