question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Strange build error when calling "pack" target

See original GitHub issue

Reported by @AdamYoblick by e-mail:

We’re seeing a strange error in the winforms internal build. The errors don’t seem to cause the step to fail.

Sample build: https://dev.azure.com/dnceng/public/_build/results?buildId=424221&view=logs

.dotnet\sdk\5.0.100-alpha1-014915\Sdks\NuGet.Build.Tasks.Pack\build\NuGet.Build.Tasks.Pack.targets(198,5): error NU5128: Some target frameworks declared in the dependencies group of the nuspec and the lib/ref folder do not have exact matches in the other location. Consult the list of actions below:
- Add lib or ref assemblies for the netcoreapp5.0 target framework
.dotnet\sdk\5.0.100-alpha1-014915\Sdks\NuGet.Build.Tasks.Pack\build\NuGet.Build.Tasks.Pack.targets(198,5): error NU5131: References were found in the nuspec, but some reference assemblies were not found in both the nuspec and ref folder. Add the following reference assemblies:
- Add System.Drawing.dll to the netcoreapp5.0 reference group in the nuspec
- Add System.Design.dll to the netcoreapp5.0 reference group in the nuspec
- Add System.Drawing.Design.dll to the netcoreapp5.0 reference group in the nuspec
- Add System.Windows.Forms.dll to the netcoreapp5.0 reference group in the nuspec
- Add System.Windows.Forms.xml to the netcoreapp5.0 reference group in the nuspec
- Add System.Windows.Forms.Design.dll to the netcoreapp5.0 reference group in the nuspec
- Add System.Windows.Forms.Design.xml to the netcoreapp5.0 reference group in the nuspec
- Add System.Windows.Forms.Design.Editors.dll to the netcoreapp5.0 reference group in the nuspec
- Add System.Windows.Forms.Design.Editors.xml to the netcoreapp5.0 reference group in the nuspec
- Add Microsoft.VisualBasic.dll to the netcoreapp5.0 reference group in the nuspec
- Add Accessibility.dll to the netcoreapp5.0 reference group in the nuspec
- Add Accessibility.xml to the netcoreapp5.0 reference group in the nuspec

I don’t think we’ve made any changes to the package in over a month. Are you aware of anyone else seeing this?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:18 (18 by maintainers)

github_iconTop GitHub Comments

2reactions
nkolev92commented, Nov 13, 2019

Those are warnings that are getting elevated to errors in the build likely.

https://docs.microsoft.com/en-us/nuget/reference/errors-and-warnings/nu5128 https://docs.microsoft.com/en-us/nuget/reference/errors-and-warnings/nu5131

The warnings are something that was added in 3.0.100, and ideally should be addressed. They communicate authoring in packages that might not work in the exact way the author intended them to work.

I’d recommend you analyze the warnings, I’d be happy to chat through any issues if necessary.

fyi @zivkan

0reactions
markwilkiecommented, Nov 14, 2019

Thanks @AdamYoblick - closing for @JohnTortugo as he’s OOF.

Read more comments on GitHub >

github_iconTop Results From Across the Web

project dotnet build error after adding target framework
This error is typically a linq exception when a collection has no items but is attempted to be used. Was surprised that it...
Read more >
Why the target “Package” does not exist in the project
Net 3.5 solution is build up with one web application, rest is not. When I build I still got the same error. Here...
Read more >
Feature Request: Give me the option to not build a target - ...
This is a problem because there are sensible situations, for example any application-shaped WebASM embed, where some targets (executable, ...
Read more >
colcon build error: Target "<my_lib>" links to ...
I am trying to convert the inertial_sense_ros package to ROS2 and am getting a strange error when I try to build.
Read more >
[patch] - Impossible to add target MSI
I am experiencing a strange error while creating a simple test patch. ... delete the cache used by the target package project
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found