locked
How to change the solution title in the solution explorer RRS feed

  • Question

  • How to change the solution title in the solution explorer?
    For example the solution name is "TestAddIn". In the solution explorer the title of this solution is
    "Solution 'TestAddIn' (3 projects)"
    I would like add to the title the version number such as "Solution 'TestAddIn' (3 projects) - version 5.4"

    • Edited by IMDL Thursday, June 24, 2010 8:47 AM
    Thursday, June 24, 2010 8:40 AM

Answers

  • Hi,

    As far as I have invested, this is not possible. To change the caption of the solution node, the better approach is to use IVSHiearachy.SetProperty(rootItemID, VSHPROPID_Caption, “solution Node”). I have tried this, but failed.

    Thanks
    Chao

    • Marked as answer by Chao Kuo Thursday, July 1, 2010 5:20 AM
    Monday, June 28, 2010 6:30 AM

All replies

  • You just want to change the name of the solution? manually? programmatically?
    Thursday, June 24, 2010 8:46 AM
  • I want change only the title of the solution (programmatically),  does not rename it.
    Thursday, June 24, 2010 8:48 AM
  • are you using an addin or VSPackage?
    Thursday, June 24, 2010 8:49 AM
  • I'm using an add-in.
    Thursday, June 24, 2010 8:53 AM
  • Thursday, June 24, 2010 9:02 AM
  • How SaveAs function can helps me?
    I don't want rename the solution file, I want to show the solution name + version number.

    Thursday, June 24, 2010 9:09 AM
  • Hi,

    As far as I have invested, this is not possible. To change the caption of the solution node, the better approach is to use IVSHiearachy.SetProperty(rootItemID, VSHPROPID_Caption, “solution Node”). I have tried this, but failed.

    Thanks
    Chao

    • Marked as answer by Chao Kuo Thursday, July 1, 2010 5:20 AM
    Monday, June 28, 2010 6:30 AM