Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Eran Meir 401 posts 543 karma points
    Dec 14, 2010 @ 19:09
    Eran Meir
    1

    add usercontrols to sync script

    hey, how about adding a sync of usercontrols dir to the sync batch.i can do it myself, but i thought it would help having it by default there. :)

    what do u think?

  • Greg Berlin 818 posts 634 karma points
    Feb 08, 2011 @ 07:52
    Greg Berlin
    0

    +1

  • Malte Baden Hansen 61 posts 158 karma points
    Feb 08, 2011 @ 18:22
    Malte Baden Hansen
    0

    Please remember though, if the usercontrol uses a code behind file, the file is compiled, and the code will therefore not be synced together with the usercontrol.
    So im not sure how useful it would be.

    But i'l add it =)

  • Greg Berlin 818 posts 634 karma points
    Feb 09, 2011 @ 04:54
    Greg Berlin
    0

    That's correct, the code behind will compile into a binary in the bin folder, which should also be synched across (cant' remember if it is currently?)

    all you need on the website is the ascx files and the bin files... perfect :)

    i had pretty much the same setup before, but i love how you've made it super easy to create a new project.  love your work!

  • Malte Baden Hansen 61 posts 158 karma points
    Feb 09, 2011 @ 21:22
    Malte Baden Hansen
    0

    Thank you Greg =)

    It should sync everything including ascx, and compiled dll files, from visual studio to umbraco folder.
    What you are talking about is from umbraco to visual studio using the batch script right? because it doesn't really make sense to transfer the compiled dll files from umbraco back to visual studio.

  • Greg Berlin 818 posts 634 karma points
    Feb 10, 2011 @ 00:06
    Greg Berlin
    0

    Ah yeah sorry... the DLL's shouldn't be 'synched', just copied from VS to Umbraco... no need to bring them back.

    as for bringing user controls back... you're right that's a tricky one - if they use a code behind that is not synched, it'll break the build.  Maybe best not to synch those, and if you want them in your umbraco project you can just copy them manually, and they'll then cover over to Umbraco website on build.

  • Malte Baden Hansen 61 posts 158 karma points
    Feb 10, 2011 @ 00:16
    Malte Baden Hansen
    0

    Ah yeah, thats probably the best way to do it.

    I'm thinking of adding an option to automatically run the sync batch script to import umbraco files into the project on project creation.
    So that if you have already begun development, the files will be imported into the project to ease further development.

  • Greg Berlin 818 posts 634 karma points
    Feb 10, 2011 @ 00:31
    Greg Berlin
    0

    Which umbraco files would you import?  master pages, css, scripts?  i guess that kind of makes sense.

    I haven't looked deeply into your batch script, but was wondering how it does the sync?  does it do a date diff and copy the most recent version of each file in either direction?  

    for example, if i edit a css file from the ide in umbraco, then run the synch script, would it copy it from the web folder to the vs folder?  That's the one thing my setup is missing.. i know niels was working on a vs plugin for this ages ago, but i dont think he ever completed it :(

Please Sign in or register to post replies

Write your reply to:

Draft