This project has moved. For the latest updates, please go here.


Problem linking command before saving files


I'm using Visual Studio 2013. There seems to be a bug linking the 'Add License Header' command before a File.Save* command:
  1. I link the command before File.SaveSelection, as suggested in the documentation. I open a file with a recognized extension in my project, make a change, hit Ctrl-S to save the file. The file is saved, but no header is inserted.
  2. I link the command before File.SaveSelectedItems. This works as expected; the header is inserted in the current file and the file is saved. No other files are affected, whether they have changes or not. This is great, except when editing the .licenseheader file. If I edit this file, and try to save it, the Save File As command is triggered. In this case, the .licenseheader file can only be saved using 'Save All' or closing the changed file and clicking 'Yes' to save the changes.
Closed Aug 17, 2015 at 9:52 AM by MichaelKetting


MichaelKetting wrote Apr 20, 2015 at 10:18 AM

Hmm...I wonder if this broke since the documentation was created back when VS2010 was all the rave.

Thanks for reporting it :)

floriandecker wrote Aug 17, 2015 at 8:24 AM

Fixed in changeset 02d37e675a11

schiffm wrote Jan 15, 2016 at 6:49 PM

I just got a chance to install the new version. Item #2 in the Description is fixed (thanks!). However, item #1 still doesn't work for me. Perhaps the documentation on 'Settings' should be updated to recommend 'Before File.SaveSelectedItems' instead?