locked
Better ways to check for project upgrade rather than relying solely on UpgradeProject_CheckOnly RRS feed

  • Question

  • Am using VS 2010 SP SDK and VS2010 compilers to build a VSIP package. The implementation uses IVsProjectUpgradeViaFactory->UpgradeProject_CheckOnly method to confirm if a project needs an upgrade. This function  returns pUpgradeRequired as true for a solution containing a website and a C# project created in VS2010. Please see  http://social.msdn.microsoft.com/Forums/en-US/8f133c25-06c6-45d0-80c1-bb25d0f85e44/unexpected-pupgraderequired-value-returned-for-a-vs-2010-solution-with-website-project?forum=vsx.

    Would want to know if I can use any other output param or a function  in conjunction with pUpgradeRequired to determine if a project actually needs an upgrade. 

    Thanks,

    Vinita


    Vinita

    Monday, August 18, 2014 9:14 AM

Answers

  • The issue was due to incorrect project factory being retrieved owing to a bad path. With the fix in place, UpgradeProject_CheckOnly method is working as expected. 

    Vinita

    • Marked as answer by Vinita Sanghi Wednesday, August 27, 2014 9:07 AM
    Wednesday, August 27, 2014 9:07 AM

All replies

  • Hi Vinita,

    If you create a new VSPackage project instead, does the problem still exist?

    Could you please post your code in the VSPackage project? It would be better if you upload the whole sample project in OneDrive, so that I can easily reproduce your problem.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.



    • Edited by Caillen Friday, August 22, 2014 6:26 AM
    Wednesday, August 20, 2014 8:12 AM
  • The issue was due to incorrect project factory being retrieved owing to a bad path. With the fix in place, UpgradeProject_CheckOnly method is working as expected. 

    Vinita

    • Marked as answer by Vinita Sanghi Wednesday, August 27, 2014 9:07 AM
    Wednesday, August 27, 2014 9:07 AM