Open 0x53A opened 7 years ago
I think I need a nuget expert here (HELP @enricosada pretty please?):
Are runtimes (e.g. debian/linux/osx/win) ever relevant w.r.t. importing of targets / props files?
My understanding would be no.
Here I calculate all relevant profiles with regard to the current framework restrictions (e.g. autodetect, or manual):
Then I partition the targets files by whether their supported targets list is set equal to the one above:
Now in this case, the Fody.targets
file supports only the DotNetFrameworks(3.5/4.5/4.6.1), not the runtimes, and so the sets are inequal.
But I think the runtimes are irrelevant to this, and should be ignored in this comparison.
Then it would also generate a nice import for this file.
ref https://github.com/fsprojects/Paket/pull/2234
Description
This is not a bug, just a potential for further simplification.
Repro steps
With
paket now generates the following import:
Expected behavior
It should detect that the condition applies to all target frameworks, and just directly import the targets file without this property redirection.
Known workarounds
Not neccessary, it does work, it could just be nicer.