hi i want create multi target nuget package. Everything seems to work well Except that whene i create wpf NetCore3 app and install my package The .NET Framework dll is used and The NetCore3 library is not used
<files>
<file src="lib\netcore\Control.dll" target="lib\netcore" />
<file src="lib\net48\Control.dll" target="lib\net48" />
<file src="lib\net40\Control.dll" target="lib\net40" />
<file src="lib\net40\Microsoft.Windows.Shell.dll" target="lib\net40" />
</files>
Is this lib\netcore correct?
netcore
is a Microsoft Store TFM.
For your .NET Core 3 (netcoreapp3.0
) WPF app, you'd need to multi-target with netstandard
or netcoreapp
in your NuGet package.
For example:
<TargetFrameworks>netstandard2.0;net461</TargetFrameworks>