Mapster icon indicating copy to clipboard operation
Mapster copied to clipboard

Make the project compile and pass tests under net6.0

Open Philippe-Laval opened this issue 3 years ago • 1 comments

Hi all,

I managed to have the Maspter project compile under net6.0 and pass all the unit tests. I had to add some #if NET6_0_OR_GREATER in the source code.

I created also a project "TemplateTest" to show how to generate code (the T4 templates in the project "Benchmark" are not working, so I had to comment some unit tests for now and take the code of T4 template to the unit tests).

I guess, we could

Philippe-Laval avatar Dec 28 '21 10:12 Philippe-Laval

Hi @Philippe-Laval, I am trying to understand why the unit tests failed after you changed the framework to net6.0. Did they fail immediately, or after you upgraded the NuGet packages? I made the same changes as you, but I have not had any unit tests fail so far. I have however not done any NuGet package upgrades yet.

andrerav avatar Feb 19 '22 11:02 andrerav