Important Notice from AspDotNetStorefront
It is with dismay that we report that we have been forced, through the action of hackers, to shut off write-access to this forum. We are keen to leave the wealth of material available to you for research. We have opened a new forum from which our community of users can seek help, support and advice from us and from each other. To post a new question to our community, please visit: http://forums.vortx.com
Results 1 to 4 of 4

Thread: Beyond V9 - Planning Ahead

  1. #1
    RBrun is offline Member
    Join Date
    Nov 2008
    Posts
    45

    Default Beyond V9 - Planning Ahead

    I haven't done a very good job of keeping my mods organized in the past and am taking the opportunity to move things around and cleanup to make upgrades easier.

    Going forward, which directories are going to be relatively safe during an upgrade? In other words, what will be the new "delete everything but.." list?

    Also, what would be considered "Best Practice" for locating addition jscripts etc? I am guessing App_Templates?

    Thanks!
    Rob

  2. #2
    DanV's Avatar
    DanV is offline Ursus arctos horribilis
    Join Date
    Apr 2006
    Posts
    1,568

    Default

    Keep all of your stuff in distinct folders. We always recommend deleting the contents of your site during an upgrade and then only restoring what is necessary. This prevents duplicate code in the event that we change an assembly name or move code around. Best practices for doing custom development:

    • Whenever possible, use portable code such as AddIns or XML Packages
    • Place all compiled in a separate class, or better, a separate project/class library
    • Comment all of your mods with a unique string that is easy to search for, such as // MOD START so you can find any mod you make using CTRL + F
    • With custom scripts and things like that, put them in your own folder


    That is really about it..

  3. #3
    RBrun is offline Member
    Join Date
    Nov 2008
    Posts
    45

    Default

    Perfect - Thanks!

  4. #4
    Rob is offline Senior Member
    Join Date
    Aug 2004
    Posts
    3,037

    Default

    Yeah, normally we don't make breaking releases, but we had to on v9 for Master Page Skins, AJAX, Add-Ins, etc...so, if you do keep your code in separate class files, dll's, and just comment them, it is pretty simple to re-merge them (in nearly all cases), and you may have to fixup a few interfaces if we changed any (like we did in v9)...db is usually safe and just upgrade script. Any fields you added to it usually just stay unaffected.
    AspDotNetStorefront
    Shopping Cart