We are upgrading from Dev Studio 2005 to Dev Studio 2010. I opened my 2005 solution in Visual Studio 2010 and went through the conversion process, supporting all projects oriented to .NET 2.0. When I try to build a project, my links to Rhino.Mocks.dll are not used. I see errors like this:
DalDiscoveryTest.cs (7,7): error CS0246: The type or namespace name "Rhino" could not be found (are you missing the using directive or assembly references?)
I entered my project and deleted the link to Rhino.Mocks.dll and tried to re-add it. Then I get a dialog that reads:
"Rhino.Mocks.dll" or one of its dependencies requires a later version of the .NET Framework than the version specified in the project. You can change the target of the .NET Framework by clicking Properties on the Project menu, and then selecting a new target from the .NET Framework drop-down list ....
I am using "Rhino Mocks 3.5 for .NET 2.0", available at http://www.ayende.com/projects/rhino-mocks/downloads.aspx . This project works great in Dev Studio 2005 using .NET 2.0. The only thing I found was to change the goal of test projects on .NET 3.5, but I want to minimize the changes first.
Is there any way around this problem other than changing the target to a newer version of .NET?
source share