Geeks With Blogs
Łukasz Kuryło's blog

I just wanted to add a log4net library to log all the sql commands generated by NHibernate, but there was one problem.

After I downloaded this library using NuGet, I could add a code from this assembly to configure the library, intellisense worked as usual, but when I wanted to compile the project, I ended with error

The name 'log4net' does not exists in the current context

This was new experience to me, because I have never had that strange situation.

In every other solution that I created, this error existed.


Solution to this was to change in the project preferences the target framework from client to full version.


I think log4net have some dependencies to the stuff not available in the client version, like e.g.

But I'm curious, why the compiler didn't show some more useful error message? WHY?

Posted on Tuesday, July 12, 2011 9:24 PM other | Back to top

Comments on this post: problem with target framework set to client version

Comments are closed.
Comments have been closed on this topic.
Copyright © Łukasz Kuryło | Powered by: