title: Moq.netcore failing for .Net Core RC2
body: <p>So I had a solution working on .Net RC1 with Moq, and I've upgraded to RC2 which I found that Moq.netcore was created to run on the new platform.</p>
  
  <p>I added aspnet-contrib to my NuGet.config</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;configuration&gt;
    &lt;packageSources&gt;
      &lt;add key="contrib" value="https://www.myget.org/F/aspnet-contrib/api/v3/index.json" /&gt;
      &lt;add key="NuGet" value="https://api.nuget.org/v3/index.json" /&gt;
    &lt;/packageSources&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>I've added moq.netcore to my project.json file.</p>
  
  <pre><code>"dependencies": {
    "Microsoft.NETCore.App": {
      "version": "1.0.0-rc2-*",
      "type": "platform"
    },
    "dotnet-test-xunit": "1.0.0-rc2-173361-36",
    "moq.netcore": "4.4.0-beta8",
    "xunit": "2.1.0"
  },
  
  "testRunner": "xunit",
  
  "frameworks": {
    "netcoreapp1.0": {
      "imports": [
        "dotnet5.6",
        "portable-net451+win8"
      ]
    }
  }
  </code></pre>
  
  <p>Basically I followed <a href="https://github.com/dotnet/cli/blob/c01331f2f988fbbd2f6b6746b9318e8e5bdf9e63/test/TestingAbstractions/Microsoft.Extensions.Testing.Abstractions.UnitTests/project.json">Cli Testing Abstractions UnitTests</a> and I get the following error when instantiatin a Mock object:</p>
  
  <pre><code>System.IO.FileNotFoundException : 
    Could not load file or assembly 'System.Diagnostics.TraceSource, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
  
    Stack Trace:
         at Castle.DynamicProxy.Generators.MethodWithInvocationGenerator.BuildProxiedMethodBody(MethodEmitter emitter, ClassEmitter class, ProxyGenerationOptions options, INamingScope namingScope)
         at Castle.DynamicProxy.Generators.MethodGenerator.Generate(ClassEmitter class, ProxyGenerationOptions options, INamingScope namingScope)
         at Castle.DynamicProxy.Contributors.CompositeTypeContributor.ImplementMethod(MetaMethod method, ClassEmitter class, ProxyGenerationOptions options, OverrideMethodDelegate overrideMethod)
         at Castle.DynamicProxy.Contributors.CompositeTypeContributor.Generate(ClassEmitter class, ProxyGenerationOptions options)
         at Castle.DynamicProxy.Generators.ClassProxyGenerator.GenerateType(String name, Type[] interfaces, INamingScope namingScope)
         at Castle.DynamicProxy.Generators.BaseProxyGenerator.ObtainProxyType(CacheKey cacheKey, Func`3 factory)
         at Castle.DynamicProxy.ProxyGenerator.CreateClassProxy(Type classToProxy, Type[] additionalInterfacesToProxy, ProxyGenerationOptions options, Object[] constructorArguments, IInterceptor[] interceptors)
         at Moq.Proxy.CastleProxyFactory.CreateProxy(Type mockType, ICallInterceptor interceptor, Type[] interfaces, Object[] arguments)
         at Moq.Mock`1.&lt;InitializeInstance&gt;b__19_0()
         at Moq.Mock`1.OnGetObject()
         at Moq.MockDefaultValueProvider.ProvideDefault(MethodInfo member)
         at Moq.QueryableMockExtensions.FluentMock[T,TResult](Mock`1 mock, Expression`1 setup)
         at lambda_method(Closure )
         at Moq.Mock.GetInterceptor(Expression fluentExpression, Mock mock)
         at Moq.Mock.&lt;&gt;c__DisplayClass57_0`2.&lt;SetupGet&gt;b__0()
  </code></pre>