Options.ConfigurationExtensions使用的版本高于Configuration.Abstractions的引用版本

时间:2016-11-01 18:19:48

标签: asp.net-core visual-studio-code .net-core

这不是构建错误,而是警告:

  

汇编'Microsoft.Extensions.Options.ConfigurationExtensions',标识为'Microsoft.Extensions.Options.ConfigurationExtensions,Version = 1.0.0.0,Culture = neutral,PublicKeyToken = adb9793829ddae60'使用'Microsoft.Extensions.Configuration.Abstractions,Version = 1.0.0.0,Culture = neutral,PublicKeyToken = adb9793829ddae60',其版本高于引用的程序集'Microsoft.Extensions.Configuration.Abstractions',其标识为'Microsoft.Extensions.Configuration.Abstractions,Version = 0.0.0.0,Culture = neutral, PublicKeyToken = adb9793829ddae60'[netcoreapp1.0]

鉴于我的project.json看起来像这样,我不知道如何解决版本不匹配问题。

{
    "buildOptions": {
        "debugType": "portable",
        "emitEntryPoint": true
    },
    "dependencies": {
        "Microsoft.AspNetCore.Server.Kestrel": "1.0.0",
        "Microsoft.AspNetCore.Hosting": "1.0.0",
        "Microsoft.Extensions.Configuration.Json": "1.0.0",
        "Microsoft.Extensions.Options.ConfigurationExtensions": "1.0.0",
        "Microsoft.AspNetCore.Mvc": "1.0.0"
    },
    "frameworks": {
        "netcoreapp10": {
            "dependencies": {
                "Microsoft.NETCore.App": {
                    "type": "platform",
                    "version": "1.0.0"
                }
            }
        }
    }
}

我尝试添加以下依赖项。同样的警告仍然存在。

"Microsoft.Extensions.Configuration.Abstractions": "1.0.0"

我们如何解决在VS Code中导致这些红色波浪形的版本不匹配警告?

enter image description here

0 个答案:

没有答案