-
Notifications
You must be signed in to change notification settings - Fork 138
Closed
dotnet/source-build-reference-packages
#631Labels
area-prebuiltsReducing the number of prebuilt packages in the tarballReducing the number of prebuilt packages in the tarballuntriaged
Description
When attempting to generate an SBRP package for Newtonsoft.Json, or a package that has a dependency on it, it results in the following exception:
The "GetPackageItems" task failed unexpectedly.
System.ArgumentException: Found strong name key that doesn't map: Key=30ad4fe6b2a6aeed, Assembly=Newtonsoft.Json
at Microsoft.DotNet.SourceBuild.Tasks.GetPackageItems.TryGetStrongNameData(AssemblyName assemblyName, StrongNameData& strongNameData) in C:\repos\source - build - reference - packages\src\packageSourceGenerator\PackageSourceGeneratorTask\GetPackageItems.cs:line 241
at Microsoft.DotNet.SourceBuild.Tasks.GetPackageItems.SetCompileItems(PackageArchiveReader packageArchiveReader, TargetFrameworkRegexFilter targetFrameworkRegexFilter) in C:\repos\source - build - reference - packages\src\packageSourceGenerator\PackageSourceGeneratorTask\GetPackageItems.cs:line 153
at Microsoft.DotNet.SourceBuild.Tasks.GetPackageItems.Execute() in C:\repos\source - build - reference - packages\src\packageSourceGenerator\PackageSourceGeneratorTask\GetPackageItems.cs:line 84
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(ITaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask)
Repro:
.\generate.cmd -p NuGet.Packaging,6.5.0
or
.\generate.cmd -p Newtonsoft.Json,13.0.1
Metadata
Metadata
Assignees
Labels
area-prebuiltsReducing the number of prebuilt packages in the tarballReducing the number of prebuilt packages in the tarballuntriaged