Click here to Skip to main content
13,254,366 members (57,933 online)
Click here to Skip to main content
Add your own
alternative version

Stats

7.4K views
9 bookmarked
Posted 4 Oct 2016

Releasing a Visual Studio Extension

, 23 Oct 2016
Rate this:
Please Sign up or sign in to vote.
How I avoid embarrassing releases (now)

Introduction

In the past, I've uploaded a VSIX file without installing it on my own machine only for people to complain that it won't install due to versioning issues. Now I have a script that checks things without myself having to remember where to look.

Running the Script

Running the script produces the following tail of output:

.\GUI\Properties\AssemblyInfo.cs
[assembly: AssemblyVersion("1.6.0.0")]
[assembly: AssemblyFileVersion("1.6.0.0")]
.\VBasic\Properties\AssemblyInfo.cs
[assembly: AssemblyVersion("1.6.0.0")]
[assembly: AssemblyFileVersion("1.6.0.0")]
GUI\RelNotes.txt
DeepEnds version 1.6
GUI\License.txt
DeepEnds version 1.6
GUI\Usage.txt
DeepEnds version 1.6
GUI\source.extension.vsixmanifest
    <Identity Id="DeepEnds.Zebedee Mason.2cdf4910-bf53-4266-baa4-95d2960e902a" Version="1.6" ...
GUI\DeepEndsPackage.cs
    [InstalledProductRegistration("#110", "#112", "1.6", IconResourceID = 400)] // Info on this package

The script does the following operations:

  1. Traverses the solution directory looking for AssemblyInfo.cs files and prints the lines starting with [ and containing Version
  2. Prints the first line of the release notes file
  3. Prints the first line of the license file
  4. Prints the first line of the usage file
  5. Prints the fourth line of the vsixmanifest file - this is used by the installer to check it is a different version
  6. Prints a line of the Package file - this is shown in Help -> About Microsoft Visual Studio

This allows for easy checking that I've remembered to roll forward the version numbers. Note I now install the release as well.

History

  • 2016/10/04: First release
  • 2016/10/12: Added the sixth check, described the fifth
  • 2016/10/23: Added the fourth check

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Zebedee Mason
United Kingdom United Kingdom
Mathematician turned freelance Software Engineer with over 20 years experience, mainly in the development of CAD/CAM/CAE software. Generally worked for smaller businesses - although have been at Lloyd's Register, Siemens and Rolls-Royce. Enjoy living on the edge of the Peak District where I go cycling and hiking.

You may also be interested in...

Pro

Comments and Discussions

 
-- There are no messages in this forum --
Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.171114.1 | Last Updated 23 Oct 2016
Article Copyright 2016 by Zebedee Mason
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid