1

Resolved

The type or namespace name 'PerformanceInterceptor' could not be found (are you missing a using directive or an assembly reference?)

description

First of all, great work

Tried to fiddle with Performance Interceptors, following your post: http://geeks.ms/blogs/unai/archive/2013/12/27/ef-6-contrib-performance-interceptors.aspx

Just created a .NET 4.5 Console app, added the ef.contrib package. Created the Configuration like this:

public class Configuration
    : DbConfiguration
{
    public Configuration()
    {
        this.AddInterceptor(new PerformanceInterceptor(msg =>
        {
            Console.WriteLine("{0}-{1}", msg.Message, msg.Command);
        }));
    }
}
And compile. I receive the error "The type or namespace name 'PerformanceInterceptor' could not be found (are you missing a using directive or an assembly reference?)"

If I change the project to target the .NET framework 4.0, it builds.

comments

UnaiZorrilla wrote Dec 27, 2013 at 6:15 PM

Thanks,

The current nuget package contains versions for 4.0 and 4.5.1 and not for 4.5. I try to fix this a soon as posible.

Unai

UnaiZorrilla wrote Dec 27, 2013 at 6:42 PM

Resolved in updated nuget packages but I need to work more on msbuild projects.

Thanks

TioLuiso wrote Dec 27, 2013 at 7:28 PM

Awesome work, Unai

Thanks a lot