tfs - TFS2015 NuGet Packager: [error] 'System.Collections' already has a dependency defined for 'Microsoft.NETCore.Platforms' -


this question nuget: 'x' has dependency defined 'y' has answer when nuget has issue in visual studio, how update nuget in tfs 2015?

i using nuget packager build task , giving me error

[error] 'system.collections' has dependency defined 'microsoft.netcore.platforms'.

if not bug doing wrong. project .net 4.5.2 can't see why have 'microsoft.netcore.platforms'.

it should noted build server has 15 or nuget packager builds working fine - broken one.

packages.config

<packages>   <package id="antlr" version="3.5.0.2" targetframework="net452" />   <package id="autofac" version="4.2.0" targetframework="net452" />   <package id="autofac.configuration" version="4.0.1" targetframework="net452" />   <package id="autofac.extras.commonservicelocator" version="4.0.0" targetframework="net452" />   <package id="autofac.mvc5" version="4.0.0" targetframework="net452" />   <package id="commonservicelocator" version="1.3" targetframework="net452" />   <package id="entityframework" version="6.1.3" targetframework="net452" />   <package id="linqkit" version="1.1.8.0" targetframework="net452" />   <package id="microsoft.aspnet.mvc" version="5.2.3" targetframework="net452" />   <package id="microsoft.aspnet.razor" version="3.2.3" targetframework="net452" />   <package id="microsoft.aspnet.web.optimization" version="1.1.3" targetframework="net452" />   <package id="microsoft.aspnet.webapi" version="5.2.3" targetframework="net452" />   <package id="microsoft.aspnet.webapi.client" version="5.2.3" targetframework="net452" />   <package id="microsoft.aspnet.webapi.core" version="5.2.3" targetframework="net452" />   <package id="microsoft.aspnet.webapi.webhost" version="5.2.3" targetframework="net452" />   <package id="microsoft.aspnet.webpages" version="3.2.3" targetframework="net452" />   <package id="microsoft.codedom.providers.dotnetcompilerplatform" version="1.0.2" targetframework="net452" />   <package id="microsoft.extensions.configuration" version="1.0.0" targetframework="net452" />   <package id="microsoft.extensions.configuration.abstractions" version="1.0.0" targetframework="net452" />   <package id="microsoft.extensions.primitives" version="1.0.0" targetframework="net452" />   <package id="microsoft.net.compilers" version="1.3.2" targetframework="net452" developmentdependency="true" />   <package id="microsoft.web.infrastructure" version="1.0.0.0" targetframework="net452" />   <package id="newtonsoft.json" version="9.0.1" targetframework="net452" />   <package id="nlog" version="4.3.11" targetframework="net452" />   <package id="system.collections" version="4.0.11" targetframework="net452" />   <package id="system.diagnostics.debug" version="4.0.11" targetframework="net452" />   <package id="system.io" version="4.1.0" targetframework="net452" />   <package id="system.linq" version="4.1.0" targetframework="net452" />   <package id="system.resources.resourcemanager" version="4.0.1" targetframework="net452" />   <package id="system.runtime" version="4.1.0" targetframework="net452" />   <package id="system.runtime.extensions" version="4.1.0" targetframework="net452" />   <package id="system.runtime.interopservices" version="4.1.0" targetframework="net452" />   <package id="system.threading" version="4.0.11" targetframework="net452" />   <package id="webgrease" version="1.6.0" targetframework="net452" /> </packages> 

nuget packager task debug output

2016-11-10t08:05:00.0196078z set workingfolder default: e:\vsoagents\agent2\tasks\nugetpackager\0.1.58 2016-11-10t08:05:00.0196078z executing powershell script: e:\vsoagents\agent2\tasks\nugetpackager\0.1.58\nugetpackager.ps1 2016-11-10t08:05:00.1758635z ##[debug]entering script system.management.automation.invocationinfo.mycommand.name 2016-11-10t08:05:00.1758635z ##[debug]parameter values 2016-11-10t08:05:00.1758635z ##[debug]searchpattern = e:\vsoagents\agent2\_work\17\s\my.project.name\my.project.name.csproj 2016-11-10t08:05:00.1758635z ##[debug]versionbybuild = false 2016-11-10t08:05:00.1758635z ##[debug]outputdir = e:\vsoagents\agent2\_work\17\a\nuget 2016-11-10t08:05:00.1758635z ##[debug]configurationtopack = release 2016-11-10t08:05:00.1758635z ##[debug]buildproperties =  2016-11-10t08:05:00.1758635z ##[debug]nugetadditionalargs =  2016-11-10t08:05:00.1758635z ##[debug]nugetpath =  2016-11-10t08:05:00.1758635z ##[debug]importing modules 2016-11-10t08:05:00.1914879z ##[debug]loading module path 'e:\vsoagents\agent2\agent\worker\modules\microsoft.teamfoundation.distributedtask.task.internal\microsoft.teamfoundation.distributedtask.task.internal.dll'. 2016-11-10t08:05:00.1914879z ##[debug]importing cmdlet 'add-buildattachment'. 2016-11-10t08:05:00.1914879z ##[debug]importing cmdlet 'convert-string'. 2016-11-10t08:05:00.1914879z ##[debug]importing cmdlet 'get-indexedsourcefilepaths'. 2016-11-10t08:05:00.1914879z ##[debug]importing cmdlet 'get-javadevelopmentkitpath'. 2016-11-10t08:05:00.1914879z ##[debug]importing cmdlet 'get-msbuildlocation'. 2016-11-10t08:05:00.1914879z ##[debug]importing cmdlet 'get-serviceendpoint'. 2016-11-10t08:05:00.1914879z ##[debug]importing cmdlet 'get-tfsclientcredentials'. 2016-11-10t08:05:00.1914879z ##[debug]importing cmdlet 'get-toolpath'. 2016-11-10t08:05:00.1914879z ##[debug]importing cmdlet 'get-taskvariable'. 2016-11-10t08:05:00.1914879z ##[debug]importing cmdlet 'get-visualstudiopath'. 2016-11-10t08:05:00.1914879z ##[debug]importing cmdlet 'get-vssconnection'. 2016-11-10t08:05:00.1914879z ##[debug]importing cmdlet 'invoke-ant'. 2016-11-10t08:05:00.1914879z ##[debug]importing cmdlet 'invoke-batchscript'. 2016-11-10t08:05:00.1914879z ##[debug]importing cmdlet 'invoke-maven'. 2016-11-10t08:05:00.1914879z ##[debug]importing cmdlet 'invoke-msbuild'. 2016-11-10t08:05:00.1914879z ##[debug]importing cmdlet 'invoke-publishsymbols'. 2016-11-10t08:05:00.1914879z ##[debug]importing cmdlet 'invoke-tool'. 2016-11-10t08:05:00.1914879z ##[debug]importing cmdlet 'invoke-vstest'. 2016-11-10t08:05:00.1914879z ##[debug]importing cmdlet 'publish-buildartifact'. 2016-11-10t08:05:00.1914879z ##[debug]importing cmdlet 'copy-buildartifact'. 2016-11-10t08:05:00.1914879z ##[debug]importing cmdlet 'add-buildartifactlink'. 2016-11-10t08:05:00.1914879z ##[debug]importing cmdlet 'register-xamarinlicense'. 2016-11-10t08:05:00.1914879z ##[debug]importing cmdlet 'unregister-xamarinlicense'. 2016-11-10t08:05:00.1914879z ##[debug]importing cmdlet 'get-x509certificate'. 2016-11-10t08:05:00.2071133z ##[debug]loading module path 'e:\vsoagents\agent2\agent\worker\modules\microsoft.teamfoundation.distributedtask.task.common\microsoft.teamfoundation.distributedtask.task.common.dll'. 2016-11-10t08:05:00.2071133z ##[debug]importing cmdlet 'complete-task'. 2016-11-10t08:05:00.2071133z ##[debug]importing cmdlet 'get-localizedstring'. 2016-11-10t08:05:00.2071133z ##[debug]importing cmdlet 'set-taskvariable'. 2016-11-10t08:05:00.2071133z ##[debug]importing cmdlet 'set-taskprogress'. 2016-11-10t08:05:00.2071133z ##[debug]importing cmdlet 'add-taskissue'. 2016-11-10t08:05:00.2071133z ##[debug]importing cmdlet 'write-taskdetail'. 2016-11-10t08:05:00.2071133z ##[debug]importing cmdlet 'find-files'. 2016-11-10t08:05:00.2227381z checking pattern specified 2016-11-10t08:05:00.2227381z output folder used doesn't exists, creating 2016-11-10t08:05:00.2539913z e:\vsoagents\agent2\_work\17\a\nuget 2016-11-10t08:05:00.2539913z no pattern found in solution parameter. 2016-11-10t08:05:00.2696176z found files: 1 2016-11-10t08:05:00.2696176z --file: "e:\vsoagents\agent2\_work\17\s\my.project.name\my.project.name.csproj" 2016-11-10t08:05:00.2696176z creating nuget arguments: 2016-11-10t08:05:00.2696176z --args: pack "e:\vsoagents\agent2\_work\17\s\my.project.name\my.project.name.csproj" -outputdirectory "e:\vsoagents\agent2\_work\17\a\nuget" -properties configuration=release 2016-11-10t08:05:00.2696176z invoking nuget pack "e:\vsoagents\agent2\_work\17\s\my.project.name\my.project.name.csproj" -outputdirectory "e:\vsoagents\agent2\_work\17\a\nuget" -properties configuration=release on e:\vsoagents\agent2\_work\17\s\my.project.name 2016-11-10t08:05:00.2852419z e:\vsoagents\agent2\agent\worker\tools\nuget.exe pack "e:\vsoagents\agent2\_work\17\s\my.project.name\my.project.name.csproj" -outputdirectory "e:\vsoagents\agent2\_work\17\a\nuget" -properties configuration=release 2016-11-10t08:05:02.1915495z msbuild auto-detection: using msbuild version '14.0' 'c:\program files (x86)\msbuild\14.0\bin'. 2016-11-10t08:05:02.1915495z attempting build package 'my.project.name.csproj'. 2016-11-10t08:05:03.1447051z packing files 'e:\vsoagents\agent2\_work\17\s\my.project.name\bin'. 2016-11-10t08:05:03.4103392z using 'my.project.name.nuspec' metadata. 2016-11-10t08:05:04.6604008z ##[error]'system.collections' has dependency defined 'microsoft.netcore.platforms'. 2016-11-10t08:05:04.7385325z ##[error]system.exception: unexpected exit code 1 returned tool nuget.exe 2016-11-10t08:05:04.7385325z ##[error]   @ microsoft.teamfoundation.distributedtask.task.internal.powershell.invoketoolcmdlet.processrecord() 2016-11-10t08:05:04.7385325z ##[error]   @ system.management.automation.commandprocessor.processrecord() 

nuspec file

<package >   <metadata>     <id>my.project.name</id>     <version>$version$</version>     <title>$title$</title>     <authors>$author$</authors>     <owners>$author$</owners>     <projecturl>http://www.example.com</projecturl>     <iconurl>http://www.example.com/logo.png</iconurl>     <requirelicenseacceptance>false</requirelicenseacceptance>     <description>$description$</description>     <copyright>copyright 2016</copyright>     </metadata> </package> 

the solution upgrade nuget. did opening admin command prompt @ c:\program files\microsoft team foundation server 14.0\build\agent\worker\tools , running nuget update -self, , running in .\agent\worker\tools in each vso agent folder.


Comments

Popular posts from this blog

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -