.net NuGet pack:无法加载文件或程序集';System.Runtime,版本=4.0.10.0';

.net NuGet pack:无法加载文件或程序集';System.Runtime,版本=4.0.10.0';,.net,nuget,.net,Nuget,NuGet似乎存在一个问题,阻止我为针对Windows 8.1和Windows Phone 8.1(Profile32)的可移植类库(PCL)生成包 NuGet版本:2.8.60318.667 我的目录包含一个.csproj文件和一个提供元数据的配套.nuspec文件 $id$ $version$ $title$ $author$ $author$ https://raw.githubusercontent.com/StevenLiekens/HTTPortable/master/LICENS

NuGet似乎存在一个问题,阻止我为针对Windows 8.1和Windows Phone 8.1(Profile32)的可移植类库(PCL)生成包

NuGet版本:2.8.60318.667

我的目录包含一个.csproj文件和一个提供元数据的配套.nuspec文件


$id$
$version$
$title$
$author$
$author$
https://raw.githubusercontent.com/StevenLiekens/HTTPortable/master/LICENSE
https://github.com/StevenLiekens/HTTPortable
假的
$description$
麻省理工学院许可证(MIT)
当我在该目录下运行
nuget.exe pack
时,程序会因错误而崩溃

>裸体包

正在尝试从“HTTPortable.Tcp.WinRT.csproj”生成包。
正在打包来自“D:\src\HTTPortable\src\HTTPortable.Tcp.WinRT\src\bin\Debug”的文件。
警告:无法从“HTTPortable.Tcp.WinRT.dll”提取元数据。
对元数据使用“HTTPortable.Tcp.WinRT.nuspec”。
替换标记“title”没有值。
详细日志记录显示nuget.exe正在尝试加载不存在的程序集

>nuget pack/详细的详细信息

警告:无法从“HTTPortable.Tcp.WinRT.dll”提取元数据。
警告:System.IO.FileNotFoundException:无法加载文件或程序集'System.Runtime,版本=4.0.10.0,区域性=neutral,PublicKeyToken=b03f5f7f11d50a3a'或其依赖项之一。系统找不到指定的文件。
文件名:“System.Runtime,Version=4.0.10.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a”-->System.IO.FileNotFoundException:无法加载文件或程序集“System.Runtime,Version=4.0.10.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a”或其依赖项之一。系统找不到指定的文件。
文件名:“System.Runtime,Version=4.0.10.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a”
在System.Reflection.RuntimeAssembly.\n加载(AssemblyName文件名、字符串代码基、证据assemblySecurity、RuntimeAssembly位置提示、StackScrawMark和stackMark、IntPtr pPrivHostBinder、Boolean throwOnFileNotFound、Boolean for Inspection、Boolean suppressSecurityChecks)
位于System.Reflection.RuntimeAssembly.nLoad(AssemblyName文件名、字符串代码基、证据assemblySecurity、RuntimeAssemblyLocationHint、StackScrawlMark和stackMark、IntPtr pPrivHostBinder、Boolean throwOnFileNotFound、Boolean For Inspection、Boolean suppressSecurityChecks)
位于System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef,证据assemblySecurity,RuntimeAssembly reqAssembly,StackScrawMark&stackMark,IntPtr pPrivHostBinder,Boolean throwOnFileNotFound,Boolean For Inspection,Boolean suppressSecurityChecks)
在System.Reflection.RuntimeAssembly.InternalLoad(字符串assemblyString、证据assemblySecurity、StackScrawMark和stackMark、IntPtr pPrivHostBinder、用于内省的布尔值)
在System.Reflection.RuntimeAssembly.InternalLoad(字符串assemblyString、证据assemblySecurity、StackScrawMark和stackMark,布尔值用于内省)
位于System.Reflection.Assembly.ReflectionOnlyLoad(字符串assemblyString)
在NuGet.AssemblyMetadataExtractor.MetadataExtractor.AssemblyResolver.ReflectionOnlyAssemblyResolve(对象发送方,ResolveEventArgs args args)
位于System.AppDomain.OnReflectionOnlyAsemblyResolveEvent(运行时程序集,字符串程序集全名)
警告:程序集绑定日志记录已关闭。
要启用程序集绑定失败日志记录,请将注册表值[HKLM\Software\Microsoft\Fusion!EnableLog](DWORD)设置为1。
注意:程序集绑定失败日志记录会带来一些性能损失。
要关闭此功能,请删除注册表值[HKLM\Software\Microsoft\Fusion!EnableLog]。
在System.ModuleHandle.ResolveMethod(运行时模块模块、Int32 methodToken、IntPtr*typeInstArgs、Int32 typeInstCount、IntPtr*methodInstArgs、Int32 methodInstCount)
位于System.ModuleHandle.ResolveMethodHandleInternalCore(RuntimeModule模块、Int32 methodToken、IntPtr[]TypeInstanceContext、Int32 typeInstCount、IntPtr[]MethodInstanceContext、Int32 methodInstCount)
位于System.ModuleHandle.ResolveMethodHandleInternal(RuntimeModule模块、Int32 methodToken、RuntimeTypeHandle[]TypeInstanceContext、RuntimeTypeHandle[]MethodInstanceContext)
在System.Reflection.CustomAttributeData..ctor(运行时模块作用域,CustomAttributeRecord caRecord)
位于System.Reflection.CustomAttributeData.GetCustomAttributes(RuntimeModule模块,Int32 tkTarget)
位于System.Reflection.CustomAttributeData.GetCustomAttributesInternal(运行时程序集目标)
位于System.Reflection.RuntimeAssembly.GetCustomAttributesData()处
位于System.Reflection.CustomAttributeData.GetCustomAttributes(程序集目标)
位于NuGet.AssemblyMetadataExtractor.MetadataExtractor.GetMetadata(字符串路径)
位于NuGet.AssemblyMetadataExtractor.MetadataExtractor.GetMetadata(字符串路径)
在NuGet.AssemblyMetadataExtractor.GetMetadata(字符串assemblyPath)处
在NuGet.AssemblyMetadataExtractor.ExtractMetadata(PackageBuilder生成器,字符串assemblyPath)
在NuGet.Commands.ProjectFactory.CreateBuilder(String basePath)中

这对任何人来说都很熟悉吗?

这是NuGet中的一个bug。看这个问题-苏。。。我猜解决方案是等待nuget 3.0.0?或者您可以将修复程序应用于nuget并在本地构建它。修复是两行代码-PS:nuget 3已退出,但仍然存在相同的错误@StevenLiekens自10月15日以来有没有任何解决方案?