chevron-thin-right chevron-thin-left brand cancel-circle search youtube-icon google-plus-icon linkedin-icon facebook-icon twitter-icon toolbox download check linkedin phone twitter-old google-plus facebook profile-male chat calendar profile-male
0 votes
i'm trying to get started with Isolator and TypeMock and i've followed all of the directions on CodePlex, but i'm having trouble with referencing the Silverlight project. as soon as i select it for a reference, i get a warning that says,

"A problem occurred while trying to set the "References" parameter for the IDE's in-process compiler. Reference to project '<project>' cannot be added because it targets a different version of the .NET framework."

i've tried this with different projects in differnt solutions and i always get the same error when trying to reference the Silverlight project.

i've check the [Advanced Compile Opitons...] on both the Silverlight and test projects. both are targeted for .NET 3.5.

is there someplace other than the [Advanced Compile Opitons...] that i should be looking for the framework? i can't even get started writing tests...

thanks! tom
asked by tjwalton (720 points)

6 Answers

0 votes
IF you are talking about SilverUnit, note that it currently works with silverlight 2, not 3.
could that be the issue?
answered by royo (2k points)
0 votes
No, i'm using Silverlight 2.0, which targets the .NET 3.5 framework. when i look at the framework in the Silverlight project, it won't let me change it (greyed out dropdown).

i haven't downloaded Silverlight 3.
answered by tjwalton (720 points)
0 votes
do you have the silverlight tools for visual studio installed?

also, I don't think you can just "change" the target platform of a project to a silverlight one if it started out as a regular project. you have to start a new "silverlight" project from scratch.
answered by royo (2k points)
0 votes
i have removed the silverlight tools and re-installed and i'm still getting the same error when i make a reference to the silverlight project. the error is, "A problem occurred while trying to set the "References" parameter for the IDE's in-process compiler. Reference to project 'Meetability' cannot be added because it targets a different version of the .NET Framework."

I am NOT trying to change the framework versions and i have not changed them, just trying to figure out why it's not working and it says the frameworks don't match.

if i delete the reference to the silverlight project (Meetability), the error goes away.
answered by tjwalton (720 points)
0 votes
what other addins do you have installed in the IDE?
Can you also provide details of the system?
do you have any code-generation related things running? (T4 templates and such)
answered by royo (2k points)
0 votes
it seems this problem is not related to silverunit.
for example:
http://social.msdn.microsoft.com/Forums ... d5f2432ba4

just to make sure:
you can download the .vsi package from the silverunit website on codeplex, and run it.
then you will get a new project template under silvelight "Silverunit project".

that should have good references that you can move on with (but you will need to change the references to isolator).
answered by royo (2k points)
...