tmsmith / Dapper-Extensions

Dapper Extensions is a small library that complements Dapper by adding basic CRUD operations (Get, Insert, Update, Delete) for your POCOs. For more advanced querying scenarios, Dapper Extensions provides a predicate system. The goal of this library is to keep your POCOs pure by not requiring any attributes or base class inheritance.
1.79k stars 586 forks source link

NET Standard 2.0 Warning #272

Closed axylophon closed 3 years ago

axylophon commented 3 years ago

Hi,

I am using the Dapper Extensions 1.7.0 in a NET Standard 2.0 class library. Unfortunately I get a warning because the Slapper.Automapper package is not targeting 2.0 but only 2.1 and Framework 4.7 instead. Is this a potential issue?

I assume the Slapper.Automapper must also be targeted for 2.0 to remove the warning?

image

Thank you in advance!

valfrid-ly commented 3 years ago

Hi, unfortunatelly Slapper doesn't provide netstandard 2.0 or net framework 4.6.1.

It's possible that in the next release the target frameworks have to be upgraded to 4.7 and netstandard 2.1.

For now, except for the warning, I didn't have any concerns with it.

Please, let me know if something didn't work for you.

axylophon commented 3 years ago

Thank you for yor response!

We have internal .NET 2.0 Libraries that need to be compatible with Framework 4.7 and .NET 5. So it would be cool to see a .NET Standard 2.0 target for the Dapper Extensions and Slapper.

.NET Standard 2.1 ist not compatible with Framework so we would also need to multi target our libraries instead. Which could introduce further issues on our side.