Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/joomla/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.Net标准项目的MsBuild失败,错误为“0”;未找到包System.Security.Cryptography.ProtectedData,版本x.x.x; 项目设置:混合框架解决方案 .Net Framework 4.6.2解决方案中的项目:15 解决方案-1中的.Net标准2.0项目 显影机 Visual Studio 2017(15.7.4):生成时没有任何错误 构建服务器 TeamCity 2017.1.3版 构建步骤 Nuget还原(3.4.4) 网络还原 MSBuild(构建工具2017),工具版本15.0_Msbuild_.net Standard 2.0_.net 4.6.2 - Fatal编程技术网

.Net标准项目的MsBuild失败,错误为“0”;未找到包System.Security.Cryptography.ProtectedData,版本x.x.x; 项目设置:混合框架解决方案 .Net Framework 4.6.2解决方案中的项目:15 解决方案-1中的.Net标准2.0项目 显影机 Visual Studio 2017(15.7.4):生成时没有任何错误 构建服务器 TeamCity 2017.1.3版 构建步骤 Nuget还原(3.4.4) 网络还原 MSBuild(构建工具2017),工具版本15.0

.Net标准项目的MsBuild失败,错误为“0”;未找到包System.Security.Cryptography.ProtectedData,版本x.x.x; 项目设置:混合框架解决方案 .Net Framework 4.6.2解决方案中的项目:15 解决方案-1中的.Net标准2.0项目 显影机 Visual Studio 2017(15.7.4):生成时没有任何错误 构建服务器 TeamCity 2017.1.3版 构建步骤 Nuget还原(3.4.4) 网络还原 MSBuild(构建工具2017),工具版本15.0,msbuild,.net-standard-2.0,.net-4.6.2,Msbuild,.net Standard 2.0,.net 4.6.2,生成失败,在.net标准2.0项目中出现以下错误:[ResolvePackageAssets]C:\Program Files\dotnet\sdk\2.1.301\sdk\Microsoft.net.sdk\targets\Microsoft.PackageDependencyResolution.targets(198,5):找不到软件包System.Security.Cryptography.ProtectedData,版本4.4.0。自NuGet restore之后,它可能已被删除。否则

生成失败,在.net标准2.0项目中出现以下错误:[ResolvePackageAssets]C:\Program Files\dotnet\sdk\2.1.301\sdk\Microsoft.net.sdk\targets\Microsoft.PackageDependencyResolution.targets(198,5):找不到软件包System.Security.Cryptography.ProtectedData,版本4.4.0。自NuGet restore之后,它可能已被删除。否则,NuGet还原可能仅部分完成,这可能是由于最大路径长度限制

有趣的是,我在项目的任何地方都找不到System.Security.Cryptography.ProtectedData的引用或使用。非常感谢您的帮助


注意-不能使用dotnet build,因为解决方案需要构建licenses.licx文件,并且构建它的组件(Microsoft.build.Tasks.LC)未移植到.Net Core。来自不同帖子的建议是使用MsBuild.exe

我假设软件包是由SDK拉入的。能否从服务器上的msbuild.exe命令获取生成日志?这或许可以解释为什么该包裹被认为丢失了。