Note that there are some explanatory texts on larger screens.

plurals
  1. POUnable to add Rhino Mocks 3.5 to a .NET 2.0 project in Visual Studio 2010
    text
    copied!<p>We're upgrading from Dev Studio 2005 to Dev Studio 2010. I opened my 2005 solution in Visual Studio 2010 and went through the conversion process keeping all projects targeted at .NET 2.0. When I try to build the project, my references to Rhino.Mocks.dll are failing to be used. I see errors like this:</p> <blockquote> <p>DalDiscoveryTest.cs(7,7): error CS0246: The type or namespace name 'Rhino' could not be found (are you missing a using directive or an assembly reference?)</p> </blockquote> <p>I went into my project and removed the reference to Rhino.Mocks.dll and attempted to re-add it. Then I get a dialog that reads:</p> <blockquote> <p>'Rhino.Mocks.dll', or one of its dependencies, requires a later version of the .NET Framework than the one specified in the project. You can change the .NET Framework target by clicking Properties on the Project menu and then selecting a new target in the '.NET Framework' dropdown box. ...</p> </blockquote> <p>I'm using "Rhino Mocks 3.5 for .NET 2.0" available at <a href="http://www.ayende.com/projects/rhino-mocks/downloads.aspx" rel="nofollow noreferrer">http://www.ayende.com/projects/rhino-mocks/downloads.aspx</a>. This project builds fine in Dev Studio 2005 using .NET 2.0. The only was around the issue that I've found is to change the target of the test projects to .NET 3.5, but I'm wanting to minimize changes initially. </p> <p>Is there any way around this problem besides changing the target to a newer version of .NET? </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload