MSBuild and SmartDevices

We are generating smartdevices projects and we need to compile, deploy and run the application in the emulator.

Is it possible to do this using msbuild tasks

I know that I can build the project but I could not find the tasks for deploy and run the application.




Answer this question

MSBuild and SmartDevices

  • DWalker

    I mean start a process in the device. ie: I start a create database process on the device and I need to know if the process was executed ok.



  • KimI129598

    The tool Jason mentions can be run from the command line to copy applications over to an emulator or device, as well as start them (among many, many other things!).

    More information is available on our team blog at http://blogs.msdn.com/vsdteam/archive/2005/03/20/399507.aspx.

    Neil

  • JFox

    Cool, this project is really useful, the only thing that I could not figure out is how to start a process and wait until the program finish.
    Is it possible



  • Mats Johansson

    Gaston, do you mean just start any process from an MSBuild project and wait for it to finish If that's all you need to do try something like this

    <Target Name="...">
       ..

       <Exec Command="command here.."/>

    ...
    </Target>

    If that doesn't answer your question post back with more details.

    Dan

  • IIMA

    MSBuild is a great piece of technology and could be used to perform the deploy and, perhaps less suitably so, run tasks that you identified. Unfortunately, these tasks did not fall within the body of work that we chose to deliver for Visual Studio 2005.

    If you are interested in writing such tasks yourself, one option is to write these tasks to use ActiveSync. Overall, an ActiveSync-based suite of tasks is an interesting idea.

    There is also a sample/unsupported tool that has been developed that has gotten a lot of positive response...it's not entirely clear that this tool will work outside the context of the IDE, so I'll forward your request on to someone (Neil Enns) with additional context who can tell you if it will meet your needs.

    One point to consider is how will you debug this app while you are working on it...deploy and run by itself doesn't have much value during the development process. Although you can configure your device to do attach the managed debugger, you do pay a performance penalty for enabling it.

  • MSBuild and SmartDevices