dannyhaak / TagDataTranslation

TagDataTranslation according to the GS1 EPC TDT 1.11 standard (for RAIN RFID)
https://www.mimasu.nl/tdt
20 stars 20 forks source link

NetStandard 1.6 and full framework #4

Open yvdh opened 4 years ago

yvdh commented 4 years ago

Hello,

I am confused about the nuget package including a whole slew of netstandard libraries which should not be needed anymore if the solution target already implements netstandard.

Indeed, I recently updated my project using TDT to .net 4.7.2 full framework, hoping to get rid of all the extra netstandard libraries (as well as the mess of issues this creates in Visual Studio). As you know, .net 4.7.2 is fully netstandard 2.0 compliant and should not require any extra libraries/packages anymore. However, as soon as I include TDT in a .net 4.7.2 project the packages manager want to include these ... This leads me to conclude that maybe the TDT nuget targets are not completely correct. Also, Rick Strahl seems to suggest that multitageting libraries would be the best practise to avoid such issues (https://weblog.west-wind.com/posts/2019/Feb/19/Using-NET-Standard-with-Full-Framework-NET) .

Currently I add them without their dependencies , and then copy the dll somewhere where i link it directly ... Seems to work.

Yves

dannyhaak commented 4 years ago

Yves, thanks for your feedback. I tried to make it work to run on very old versions of .NET Framework (somebody asked for that), which resulted indeed in a bit of a mess. I will soon to try to find some time to revert it back to net standard 2.0, which should solve it, and creates probably enough compatibility.