I am serializing the state of my ribbon control on my ultraToolbarsManager. To do this, under Serialization I am checking Save Settings. Everything works fine until I make a change to the control at design time. When I run the project it loads the old serialized version of the ribbon. Okay, I can see that. It isn't even trying to load my new ribbon because it things I want it to load serialized version.
I uncheck the Save Settings box and run the reprot, everything works as expteed. I see my new ribbion. I check the box again. Run the project and we are back to the same old serialized ribbon. The only way I can get this to update it so change the Settings Key to a different name so it rebuilds the cache under the new key. I realize this is a cludge and very unclean, but it works until I can find the "Refrsh cache" type option.
Can anyone tell me how to reset my cached ribbion without creating a different key for every update?
Thanks.
Change your AssemblyInfo.cs file so that the version changes with each new build. The AssemblyVersion attribute should have "1.0.0.0" by default. Change this to "1.0.*". Now, when you make design changes and rebuild, the exe will have a new version number, which will cause it to look in a new location when loading settings. So with each build, it will not find the previously saved settings and therefore will not perform a load of those settings.
Thanks! I was hoping there was a "refresh cache" option somewhere. I even tried deleing the cache from app.config and it magically came back (not sure from where). I will just leave Save Settings turned off while developing until right before I compile.