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.
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.
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.
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.
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 :(
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?
+1
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 =)
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!
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.
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.
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.
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 :(
is working on a reply...