Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

Should I modify my nuget package with a WinForms control for use in a .NET Core 3 application?

$
0
0

I have a nuget package targeting net462 and I want to use it in netcoreapp3.0. It works fine if the package has no dependencies (or has netstandard/netcoreapp dependencies), otherwise dependencies are not resolved at all.

Let's say we have package A targeting net462, which depends on package B, which also targeting net462. I want to use package A in project C, which is netcoreapp3.0. If project C uses package A only, everything works fine. But if it uses something from package B, FileNotFoundException is thrown.

If I understand correctly, I need to add an additional netcoreapp3.0 target to the 'dependencies' and 'files' nodes in both packages A and B. But if I wrong, is there a more appropriate way to make this work?

Anyway what assemblies do I need to add to the 'files' node when targeting netcoreapp3.0?

Same as for net462? Or should I add netcoreapp3.0 to TargetFrameworks in projects A and B and use the resulting ones?


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>