I am trying to integrate NLog into our application which is C# based using several C++ libraries. So I am trying to use the NLogC DLL to log from the C++ libraries. When I run my application the first attempt to call a NLog_LogVA from my C++ code results in an exception that says the NLogC.dll was built with a newer version of the framework and cannot be loaded.
I am using VS2008 on Win 7 and have .NET 3.5 as my latest installed. However we have been trying to keep our application to only requiring .NET 2.0 since we OEM to multiple customers.
Is it possible to use NLogC with .NET 2.0?
Download the source and recompile it.
NLog2.source.zip
You could also download one of these:
NLog2.netfx20.zip
NLog2.netfx35.zip
Of course I would also assume that the msi download would install 2.0/3.5/4.0 versions of NLog and considering NLogC is just a wrapper I assume your doing something wrong.
The source has a seperate NLOGC solution just download and compile against the framework you want to support.