运行NuGet pack命令时,我收到错误:’AutoMapper’已经为’NETSt
发布时间:2020-12-13 20:11:09 所属栏目:百科 来源:网络整理
导读:我有一个问题包装我自己的nuget包,其中包括AutoMapper 5.0.2.这只会在Visual Studio Team Services(VSTeam)构建服务器中产生错误. 我的项目使用的是.NET 4.6.1 有关如何修复的任何想法? 这是错误: 2016-07-08T23:46:44.5801667Z C:LRMMSServicesMmsTa
我有一个问题包装我自己的nuget包,其中包括AutoMapper 5.0.2.这只会在Visual Studio Team Services(VSTeam)构建服务器中产生错误.
我的项目使用的是.NET 4.6.1 有关如何修复的任何想法? 这是错误: 2016-07-08T23:46:44.5801667Z C:LRMMSServicesMmsTaskAgentProvisionerToolsagents1.102.0agentworkertoolsNuGet.exe pack "C:a1sProject.csproj" -OutputDirectory "C:a1sProjectbinrelease" -Properties Configuration=release -IncludeReferencedProjects 2016-07-08T23:46:45.0458195Z MSBuild auto-detection: using msbuild version '14.0' from 'C:Program Files (x86)MSBuild14.0bin'. 2016-07-08T23:46:45.0468395Z Attempting to build package from 'Project.csproj'. 2016-07-08T23:46:45.1942694Z Packing files from 'C:a1sProjectbinRelease'. 2016-07-08T23:46:45.3942642Z ##[error]**'AutoMapper' already has a dependency defined for 'NETStandard.Library'.** 2016-07-08T23:46:45.4142626Z ##[error]System.Exception: Unexpected exit code 1 returned from tool NuGet.exe 2016-07-08T23:46:45.4152639Z ##[error] at Microsoft.TeamFoundation.DistributedTask.Task.Internal.PowerShell.InvokeToolCmdlet.ProcessRecord() 2016-07-08T23:46:45.4152639Z ##[error] at System.Management.Automation.CommandProcessor.ProcessRecord() 我还在GitHub上打开了一个问题:https://github.com/AutoMapper/AutoMapper/issues/1499
您需要为Visual Studio版本安装新的Nuget版本.
从这里获取它 (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |