DTreth
DTreth

Reputation: 87

How can I deploy a Lightswitch application as both a web application and a desktop application?

I want to publish my LightSwitch application as both a 3-tier desktop app and a web app. Is there any way to do this in a synchronized manner? And are there any commands that would allow me to do checks before trying e.g. OOB actions in a web app? Basically, I can't find anything on the web about deployment in both Desktop(OOB) and web. I want to know if there is any knowledge on this.

Upvotes: 1

Views: 941

Answers (1)

RichardC
RichardC

Reputation: 794

You should be able to detect if your lightswitch app is in-browser or out-of-browser, using the AutomationFactory.IsAvailable property, which should return false for in-browser, and true for out-of-browser.

With regard to publishing to both Desktop and Web, I think you can just run the publish wizard for Desktop so that it produces the necessary files in the ../Publish directory, save them somewhere, then re-run the publish wizard for the Web. As long as you are publishing the data to the same location (provided you want shared data between both applications), then this should work (however I haven't tried it so no guarantees).

Upvotes: 3

Related Questions