Visual Studio Team Services Build assembly package failed for project.json netstandard1.0

I recently updated my portable class libraries for the target .NET Core using project.json and the new netstandard1.0 proxy. I understand that this is supported now in Nuget 3.4. I have the following .json project for my project:

{ "supports": {}, "dependencies": { "Microsoft.NETCore.Portable.Compatibility": "1.0.1", "NETStandard.Library": "1.6.0" }, "frameworks": { "netstandard1.0": {} } } 

This works great with updating Visual Studio 2015 3.

However, when using the VSTS assembly (Visual Studio Online was created) it now gives me the following error during the package recovery phase:

 The project 'MyProject' does not specify any target frameworks in 'C:\a\1\s\MyProject\project.json'. 

The command that he shows performs the following:

 NuGet.exe restore "C:\a\1\s\Build.sln" -NonInteractive -configfile "C:\a\1\NuGet\newNuGet.config" 

Is it because of performing recovery versus solution? Or maybe the VSTS Build task is not using Nuget 3.4 yet?

+5
source share
3 answers

You can expand the Advanced section and select the latest version of Nuget. As of October 2016, Nuget 3.5 rc2

+4
source

I believe that it is already enabled, and you are using a valid version of NuGet, but you can also add the command line as a new build step right after the NuGet installer and call dotnet restore (Tool: dotnet , Arguments: restore ).

+1
source

There was the same problem. The source of this problem was the version of "Nuget.exe" on the build server. Installed 3.2.X, but you need version 3.4.4-rtm. Nuget can update itself.

To update Nuget.exe: open a command prompt and type "C: \ PathToNuget \ nuget.exe update -self"

0
source

All Articles