Unanswered SDK Package: auto generated unit test fails

  • Wednesday, November 09, 2011 6:20 PM
     
      Has Code

    I am trying to fix the auto-generated unit tests for a package project that inherits from ProjectPackage.  The SetSite() test fails on this line:

    Assert.AreEqual(0, package.SetSite(serviceProvider), "SetSite did not return S_OK");
    

    with the message "Could not get the IVsSolution object from the services exposed by this project"

    Is there an easy fix for this?

All Replies

  • Thursday, November 10, 2011 5:50 AM
    Moderator
     
     

    Hello,

    Thank you for your question.

    I am trying to involve someone familiar with this topic to further look at this issue. There might be some time delay. Appreciate your patience.

    Thank you for your understanding and support.

    Yi


    Yi Feng Li [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Saturday, March 31, 2012 9:15 AM
     
     

    Hi,

    Can you paste more code for the context?

    Thanks!


    Sophia Lu [MSFT]