VSTS build: Packages failed to restore - Unable to resolve 'NETStandard.Library (>= 1.6.1)' for '.NETStandard,Version=v2.0'

后端 未结 5 1436
盖世英雄少女心
盖世英雄少女心 2020-12-25 13:33

I\'m getting

Unable to resolve \'NETStandard.Library (>= 1.6.1)\' for \'.NETStandard,Version=v2.0\'.

in VSTS build using Hosted

5条回答
  •  抹茶落季
    2020-12-25 14:03

    What worked for me was installing .NET Core SDK 2.0 and making the following changes:

    in .csproj:

    change

    netcoreapp1.1.0
    

    to

    netcoreapp2.0
    

    and in global.json:

    "sdk": { "version": "1.1.0" }
    

    to

    "sdk": { "version": "2.0.0" }
    

    I didn't know how to use Chris Paton' solution

提交回复
热议问题