locked
Visual Studio Add-in application settings RRS feed

  • Question

  • I'm developing an add-in for visual studio and I need to store user settings from session to session.  I've read that the standard .net application settings does not work with unmanaged applications like visual studio addins (http://msdn.microsoft.com/en-us/library/k4s6c3a0.aspx).  Is this true? If so is there a good way to store user settings from session to session in a Visual Studio Addin?
    Friday, April 27, 2012 5:47 PM

Answers

  • If we want to persist changes to user settings between application sessions , we can call theSettings.Save method. But if we use the Settings.Save method, the changed settings are saved in the User.config file . which located in

    C:\Users\ (your user name) \AppData\Local\Microsoft_Corporation\LandingPage.exe_StrongName_ryspccglaxmt4nhllj5z3thycltsvyyx\10.0.0.0

    or  

    C:\Users\(your user name) \AppData\Local\Microsoft_Corporation\Microsoft.VisualStudio.Sd_StrongName_xmcaorubfhmecwzepoasgrhczbtohvkz\9.0.0.0

    Reference:

    http://msdn.microsoft.com/en-us/library/aa730869(v=vs.80).aspx

    • Marked as answer by lucy-liu Friday, May 4, 2012 6:56 AM
    Tuesday, May 1, 2012 6:25 AM

All replies

  • If we want to persist changes to user settings between application sessions , we can call theSettings.Save method. But if we use the Settings.Save method, the changed settings are saved in the User.config file . which located in

    C:\Users\ (your user name) \AppData\Local\Microsoft_Corporation\LandingPage.exe_StrongName_ryspccglaxmt4nhllj5z3thycltsvyyx\10.0.0.0

    or  

    C:\Users\(your user name) \AppData\Local\Microsoft_Corporation\Microsoft.VisualStudio.Sd_StrongName_xmcaorubfhmecwzepoasgrhczbtohvkz\9.0.0.0

    Reference:

    http://msdn.microsoft.com/en-us/library/aa730869(v=vs.80).aspx

    • Marked as answer by lucy-liu Friday, May 4, 2012 6:56 AM
    Tuesday, May 1, 2012 6:25 AM
  • Hi rmcglaughlin,

    I temporary make breathfish's reply as answer. You can unmark it if they provide no help.

    Thank you for your understanding!


    Lucy Liu [MSFT]
    MSDN Community Support | Feedback to us

    Friday, May 4, 2012 6:56 AM