Unable to pack a Nuget Package on VSTS Unable to cast object of type 'System.String' to type 'NuGet.Frameworks.NuGetFramework'

后端 未结 5 1678
眼角桃花
眼角桃花 2021-01-17 09:58

On running \'pack\' I am getting the following error...

2017-07-05T10:37:09.7762333Z ##[section]Starting: NuGet pack
2017-07-05T10:37:09.7762333Z ===========         


        
5条回答
  •  天涯浪人
    2021-01-17 10:36

    In VSTS I used "dotnet pack" instead of "nuget pack". So this problem was resolved.

    To publish nuget lib on VSTS, I choiced the following plugins sequence:

    • Get sources
    • nuget restore
    • dotnet build
    • dotnet pack
    • nuget push

提交回复
热议问题