How can I get Liquid Data Mapper to target .Net 8 not .Net Framework 4.6?
Question asked by Anon - 11/27/2025 at 11:45 AM
Answered
When I generate a data mapper library it always binds to .Net 4.6, but I need it to target .Net 8, your web site implies this is possible.
Liquid Support Replied
Employee Post Marked As Answer
Hi,

There are two ways to use the Data Mapper Runtime.
  1. If you generate a data mapping dll in Liquid Studio, it will copy LiquidTechnologies.DataMapper.Runtime.dll from the Install folder. This is a .Net Framework 4.6.2 dll.

  2. If you generate source code and compile your own data mapping dll, this will pull down the LiquidTechnologies.DataMapper.Runtime Nuget and use the appropriate LiquidTechnologies.DataMapper.Runtime.dll for the .Net version you are using (currently supports: .Net Framework 4.6.2, .Net 8.0, .Net 9.0 or .Net Standard 2.0). These targets are inline with the common Microsoft nugets.
You can easily see which you are using by looking in the Bin folder. If LiquidTechnologies.DataMapper.Runtime.dll is 5MB then it is the .Net Framework 4.6.2 version from the install folder. The Nuget version is only 500KB as all of the dependencies are pulled down in separate Nugets.

The following video shows you how to generate your own data mapping dll using c# in Microsoft Visual Studio:

Reply to Thread