locked
Can the vsixmanifest version number be an expression? RRS feed

  • Question

  • I'm trying to populate my vsixmanifest files version number with the File Version of my assemblies, is there any way to add an expression to  <Version>1.0</Version>

    (the file version stuff updates with every release)


    http://learnerps-dotnet.blogspot.com
    Friday, July 16, 2010 11:06 AM

Answers

  • Hi,

    No, sorry, that is not supported.  The value of that field must be a valid .NET Version value.

    The only time that it is necessary to change the value of that field is if you are building a new consumable version of your VSIX.  Is there a reason you'd want it to update on every build?

    Thanks,
    Gearard

    • Proposed as answer by Chao Kuo Monday, July 19, 2010 8:20 AM
    • Marked as answer by Chao Kuo Friday, July 23, 2010 3:33 AM
    Friday, July 16, 2010 11:11 PM

All replies

  • Hi,

    No, sorry, that is not supported.  The value of that field must be a valid .NET Version value.

    The only time that it is necessary to change the value of that field is if you are building a new consumable version of your VSIX.  Is there a reason you'd want it to update on every build?

    Thanks,
    Gearard

    • Proposed as answer by Chao Kuo Monday, July 19, 2010 8:20 AM
    • Marked as answer by Chao Kuo Friday, July 23, 2010 3:33 AM
    Friday, July 16, 2010 11:11 PM
  • We'd like the user's to easily report the version number to us for debugging purposes, our version used to be updated with every release and appear in Visual Studio's Help About, we'd like to do the same in the Extension Manager.

    Is there an issue with updating this number with every release in the context of the Visual Studio Gallery?

     


    http://learnerps-dotnet.blogspot.com
    Tuesday, July 20, 2010 11:16 AM
  • You need to update that number every time you upload a new version to the Gallery.  However, that should be a one-time event each time you are about to release; it isn't something that needs to be done on every build of the extension (as your developing, debugging, etc).  This new number will then appear in the Extension Manager.

    The way it is designed to work is that when you are about to do your final build (or test builds) you would simply open the manifest and bump up the version number.  If you really wanted to, you could probably create a build task that preprocessed the manifest file for you if you really wanted to have a new version number in the manifest every time it was built but that isn't something we support directly, nor is it technically required for any reason (unlike changes build numbers in your .NET Assembly, etc)..

    Thanks,
    Gearard

    Friday, July 23, 2010 5:54 PM