Developing in a directory

Hello,

I read that you can develop a gadget from a xxx.gadget directory instead of rezipping on every change. How does this work I can't get the directory recognized as anything but a directory.

Thanks,
Ty



Answer this question

Developing in a directory

  • alwayslearning

    Perfect. That is what I was looking.

    Point also taken on the risk of that directory.

    Thanks,
    Ty

  • AlucardHellSing

    I find it a bit scary to develop directly in the "C:\Users\<username>\AppData\Local\Microsoft\Windows Sidebar\Gadgets\" folder. An inadvertent right-click on the gadget in the gallery and selecting Uninstall will wipe out all of your source code. I develop in the "Documents\Visual Studio 2005\WebSites\<ProjectName>" folder and have a make.bat file that processes my JavaScript source, builds a "C:\Users\<username>\AppData\Local\Microsoft\Windows Sidebar\Gadgets\<ProjectName>" folder and and copies selected files (i.e. xcopy with an exclude file that skips PhotoShop files, etc).

    It also runs "cabarc -r -p n <ProjectName>.gadget *" so I have a file ready to distribute if need be.



  • Eslam Afifi

    Install a 3rd party Gadget and look in "C:\Users\<username>\AppData\Local\Microsoft\Windows Sidebar\Gadgets\"

    You'll see there's a directory "<Gadgetname>.gadget". Simply create your own folder in this area and develop directly in it.

    If the Gadget doesn't show up in the Add Gadget dialogue, there's a problem in the gadget.xml file.

  • Developing in a directory