Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Moq and Moq Contrib Versions

Tags:

moq

moqcontrib

I can't find versions of moq and moq contrib that are alligned. I'm probably just having a google-fail.

Details:

Is there a version of moq.contrib that works with moq version 4.0.10827, the most recent from http://code.google.com/p/moq-contrib/downloads/list gives me an error:

CA0058 : The referenced assembly 'Moq, Version=4.0.812.4, Culture=neutral, PublicKeyToken=69f491c39445e920' could not be found. This assembly is required for analysis and was referenced by: ...

Or is there a resource to download Moq 4.0.812.4 as http://code.google.com/p/moq/downloads/list only has 4.0.10827

Even installing both from nuget hasn't helped.

Thanks.

like image 833
NikolaiDante Avatar asked Mar 20 '12 11:03

NikolaiDante


1 Answers

It seems Moq Contrib has a new home: http://moqcontrib.codeplex.com/. There are no donwloads and not too much information about the current status of the project.

At least they know about this incompatibility issue: http://moqcontrib.codeplex.com/discussions/255319 but it seems since last April there is no fix for it nor a new relase of the lib.

You can try to fix yourself the dependecy and built the library from source.

Or

I've found this nuget package Moq.Contrib.Indy

An independent implementation of the Moq.Contrib project, with up-to-date references to Moq and Autofac

I haven't tried it but maybe it worth a try...

like image 168
nemesv Avatar answered Oct 27 '22 16:10

nemesv