MapsterMapper / Mapster

A fast, fun and stimulating object to object Mapper
MIT License
4.31k stars 328 forks source link

.NET 7 - preview support #475

Closed danfma closed 1 year ago

danfma commented 2 years ago

Hello,

Would be possible to release a version that is compatible with the new .NET 7? I know it's on preview yet but the generator tool fails to load the System.Runtime and other assemblies.

Or, maybe, there is a workaround for that... :P

andrerav commented 2 years ago

@danfma I think this should be a fairly simple change, and should fit well for the future 7.5 release which will come after the upcoming 7.4 release. Pull requests are extra welcome on this one, but make sure to fork the development branch.

timbze commented 2 years ago

I'm not sure about this project, but I had the issue with another library that uses code generation. It was a Roslyn issue, I fixed it by adding this to csproj: <LangVersion>10.0</LangVersion>

danfma commented 1 year ago

Hello! Ok, I will give it a look later today! 👍🏼

andrerav commented 1 year ago

Prerelease packages are now available on NuGet targeting both net7.0 and net6.0. Thank you!