Replies: 2 comments 3 replies
-
Mapperly supports the .NET Framework but requires C# language version 8. We'll improve the documentation on this. You should be able to use C# 8 in your project. See https://stackoverflow.com/questions/56651472/does-c-sharp-8-support-the-net-framework for more information |
Beta Was this translation helpful? Give feedback.
-
@latonz That's helpful thanks and I have seen that post. It does not however seem like a good practice to follow but I have gotten that to work by setting Source you undoubtedly know about then: https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/configure-language-version Even if the docs are updated for mapperly, I consider any library that advertises itself as .NET Standard v2.0 should be compatible with and generate code which is also within the scope of the C# v7.3 version and no higher. There are also certain aspects within mapperly that require use of the C# v9.0 language version. |
Beta Was this translation helpful? Give feedback.
-
The mapperly lib is advertising itself as .NET Standard v2.0 however I'm seeing the error
CS8370 - Feature 'nullable reference types' is not available in C# 7.3. Please use language version 8.0 or greater.
in a simple console app targeting .NET Framework v4.7.2.Am I just out of luck getting mapperly to work with older projects where C# v7.3 is the norm? Thanks for any guidance.
Beta Was this translation helpful? Give feedback.
All reactions