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

后端 未结 5 1437
盖世英雄少女心
盖世英雄少女心 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:07

    I have received a similar error after generating a project using dotnet new angular which created a project relying on netcoreapp2.0. Inspection of project properties revealed that version 2.0 was not properly recognized (did not appear in the installed framework list).

    Solution was to update Visual Studio 2017, as the minimum version required to support netcoreapp2.0 projects seems to be 15.3.1.

提交回复
热议问题