hazzik / DelegateDecompiler

A library which is able to decompile a delegate or a method body to its lambda representation
MIT License
522 stars 62 forks source link

Multi-target DelegateDecompiler.EntityFramework to netstandard 2.1 #158

Closed onionhammer closed 4 years ago

onionhammer commented 4 years ago

Currently any new project (built w/ netcore 3.0) referencing this project will receive a warning indicating the assembly was built to target .net framework 4.5

This change allows them to target netstandard 2.1

hazzik commented 4 years ago

Hi @onionhammer thanks for the PR, unfortunately this is not solving the problem. It just shifts it from your shoulders to mine. Now I have this issue in the log:

C:\projects\delegatedecompiler\src\DelegateDecompiler.EntityFramework\DelegateDecompiler.EntityFramework.csproj : warning NU1701: Package 'EntityFramework 6.1.3' was restored using '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' instead of the project target framework '.NETStandard,Version=v2.1'. This package may not be fully compatible with your project. [C:\projects\delegatedecompiler\DelegateDecompiler.sln]