Showing posts with label deploy. Show all posts
Showing posts with label deploy. Show all posts

Wednesday, July 4, 2018

UWP: Is there a way to find the device to which you are deploying a UWP Project?

You can find this information using the Windows.System as shown here:

Device_000

We can find the device to which the UWP is deployed using the above information.

Here is a Blank UWP Project's MainPage.xaml.

Device_0
I have a button and a text box. Button's click event finds the device information and writes to the text box using the click event shown here:

Device_00

When deployed to the machine (Windows 10 Pro Desktop), the response is as shown.

Device4.jpg

When deployed to an emulator:

The display shows the device info:


You can get the DeviceFamilyVersion as well. The code is inside the image.

On the emulator this is displayed.







Tuesday, January 9, 2018

What is required to deploy a Universal Windows Project to Lumia 950?

One of the requirements is that your phone should be configured so that UWP can be deployed. 
The configuration needs to be modified on the phone using SETTINGS as described here. If you are a registered then you can use the developer mode.

I deploy my UWP apps to Microsoft Lumia 950. One of the first things you need to do is to set it for Developers.

There are three options and you should choose Developer mode as shown here:


Lumia950_0

You should turm on option to make your phone visible to USB connections to your local network as shown here:


Lumia950_1

Also turn on remote diagnostics over USB and authentication as shown above.


Lumia950_2

Now you can connect the Windows 10 Mobile(=Lumia 950) to one of the USB connections on your laptop/computer where you are running Visual Studio 2017 used for creating Universal Windows Projects. You set up your project deploying it to the device.

Here are my phone details:
Microsoft Lumia 950
Version 1709
Windows 10 Mobile
OS Build:10.0.15254.124
Screen Res: 1440x2560

Here is HelloWorld deployed to Lumia950


Lumia950_3