Microsoft.TeamTest.targets(14,5): error : Could not load file or assembly

Answered Microsoft.TeamTest.targets(14,5): error : Could not load file or assembly

  • Thursday, February 09, 2012 12:49 PM
     
     

    Hi All!

    We convert our project from vs 2008 to vs 2010 and convert to framework 4. And we have an error when compile unit test project:

    C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\TeamTest\Microsoft.TeamTest.targets(14,5): error : Could not load file or assembly 'FILE, Version=2.7.0.3, Culture=neutral, PublicKeyToken=null' or one of its dependencies.

    If on project we set framework 3.5 all unit tests works fine.

    That it can be?



All Replies

  • Thursday, February 09, 2012 3:17 PM
     
     

    Aleksander,

    Did you also install the VS 2010 SP1? If you have a RTM version of it, you will not be able to retarget the Unit Test project to .NET 3.5.
    Check the following post over the retargeting the unit tests with VS 2010 SP1: How to re-target unit-tests to .Net Framework 3.5 in VS 2010 SP1


    Success, Damir

    Please remember to mark the replies as answers if they help.


    • Edited by Damir Varga Thursday, February 09, 2012 3:17 PM
    •  
  • Friday, February 10, 2012 7:17 AM
     
     

    Hi, Damir!

    We want to work with framework 4.

  • Monday, February 13, 2012 9:41 PM
     
     

    Aleksander,

    Maybe this post can solve your problem:
    Private Accessor for method is not found?


    Please remember to mark the replies as answers if they help. --- Success, Damir


    • Edited by Damir Varga Monday, February 13, 2012 9:41 PM
    •  
  • Tuesday, February 14, 2012 6:26 AM
    Moderator
     
     

    Hello Aleksander,

    Does Damir's link help you?

    And in my opinion as you can work perfectly with the test project with the .NET Framework 3.5 you should have no issues with the .NET Framework 4.0. Could you please provided me more detailed error stacks? I would like to know which file or its referenced assembly cause the compile failed. Or it is better if you can provided us one simple solution which can reproduce that issue.

    Thanks.


    Vicky Song [MSFT]
    MSDN Community Support | Feedback to us

  • Sunday, February 19, 2012 2:40 PM
     
     Answered

    Hi, all.

    We using accessors in our test. This method has been deprecated : http://msdn.microsoft.com/en-us/library/dd569957.aspx

    Now we use PrivateObject.


  • Monday, February 20, 2012 2:38 AM
    Moderator
     
     

    Hello Aleksander,

    Do you mean you have had your issue resolved?

    Thanks,


    Vicky Song [MSFT]
    MSDN Community Support | Feedback to us