In December I reported an issue on this forum (http://bit.ly/WRYbTL) where I
created a layout via EnvDTE.WindowConfigurations.Add, but when I restarted
Visual Studio the layout was no longer available. Ryan Molden replied that
this was a bug in VS 2010/2012 and that it could be worked around by calling
WindowConfiguration.Apply after creating the layout.
This works, however this also switches Visual Studio's active layout to the
newly created layout and will auto-save when the layout is switched. We want
this to behave such that we can save the layout but keep the active layout
what it was before, that way later we can restore the layout to exactly what
it was when it was explicitly saved.
To accomplish this, I tried getting the active layout name, creating (and
applying) the new layout, and then applying the previous active layout. The
problem with this though, is that now I'm back to the original problem; when I
restart Visual Studio the layout is no longer available.
Any other ideas?