How do I start a UWP Emulator? - c#

I have created a cross platform app (Xamarin), which is targeted by UWP. It just uses the default template and that is it. I am now trying to debug it using an emulator, however the only debugging option I have is: "Device", which means I have to plugin a Windows phone.
I have also gone here and installed an emulator ( Windows 10 Fall Creators Update (version 1709 - this is what my app targets): https://developer.microsoft.com/en-us/windows/downloads/sdk-archive. After installing; I ran: C:\Users\MyUserAccount\Downloads\Windows Kits\10\Emulator\EmulatorSetup.exe and I see the message: The features installed on this computer are now up to date.
However, I still see no Emulator to start in the debugging menu.
Basically I am trying to do the UWP equivalent of Androids: Tools/Android/Android Device Menu/Start (start is an option for each emulator).
How do I start a UWP Emulator? The Tools menu in Visual Studio 2017 has an Android Device Manager and a IOS Device Manager, but no UWP Device Manager.

How do I start a UWP Emulator?
After installed emulator(10.0.15254.1), you need modify the app's min version to 15063. this lowest support version.
And your system need to support Hardware-assisted virtualization and
Enable Hyper-v for emulator
Then switch the Solution Platforms to X86 or x64.
For more info please refer Test with the Microsoft Emulator for Windows 10 Mobile

Related

Android emulator not responding problem on the AMD process for Xamarin

When I update my windows to windows 11, I notice about when I run the android emulator for my Xamarin project, it freeze and said not responding.
I try these items below but won’t fix my problem :
reduce ram size of emulator device
reduce the resolution of emulator device
reinstall Android SDK
reinstall visual studio
My Virtual Machine Platform and Hyper-V are enabled in my windows features.
My emulator detail is :
OS: Android 12
Ram: 4GB
Resolution : 1080x2340 pixels
Google Services: true
For the AMD process, we need to make clear to the visual studio that we use the AMD process and it should change the emulator behavior to our process.
First of all like I said we need to make sure the Virtual Machine Platform and Hyper-V are enabled because it’s necessary to run an android emulator in a visual studio.
Second, We need to make sure that Android Emulator Hypervisor Driver for AMD Processors is selected in the visual studio.
Android Emulator Hypervisor Driver for the AMD Processors:
Visual Studio > Tools > Android > Android SDK Manager > Tools > Extras > Android Emulator Hypervisor Driver for AMD Processors
Third, Restart your visual studio and you’re good to go and enjoy your android emulator on the AMD Processors.

Unable to connect to iOs simulator using Xamarin Forms

Im having a problem when debugging my Xamarin.Forms app using the iOs Simulator on my Windows 10 laptop...
On my windows machine I am running VS2017 latest version, on the mac I am running Visual Studio Community 2017 and installed the Alpha updates.
Then I downgraded the Xamarin.iOs to stable version (only downgraded xamarin.ios) to fix some compile errors...
In the end it compiles > It starts the simulator > It displays: "Updating(0%)"..
This is where I am stuck.. hope anyone knows a solution
Are you trying to use the iOS simulator on your Windows laptop?
if so, the iOS simulator requires VS/msdn Enterprise subscription.
Either way double check that the iOS version matches on your simulator and iOS project build settings,make sure your macOS and xcode is updated.
I've had problems in the past with debugging on my macbook/simulator from windows/vs, and updating the macbook/xcode usually works.
Also, try having the simulator already open before debugging.

Windows Phone emulator with Xamarin

I am creating a Xamarin project, and I made it working with Android and iOS, but I can't figure out how to start the Windows Phone 8.1 emulator.
Windows Phone 8.1 is created as a project just like the other platforms.
I am running Visual Studio 2015 Community and Xamarin Business.
EDIT
I made it running by setting it as startup project, but are there others way by e.g. changing the project (where you choose if it is debug or release)?
I also want to know, how I can create the application to Windows store
To create app package go to
Project->Store->Create App Package - It will open wizard for creating app package that You are able to send to store (reference: https://msdn.microsoft.com/en-us/library/hh975357.aspx)
As for the other ways:
In Visual Studio 2015 You can choose in taskbar: debug/release, CPU architecture, startup project and where to deploy an app - eg. emulator or device

installed windows phone sdk 8.0 on 32 bit oerating system but not works?

I have installed Windows Phone sdk 8.0 on 32 bit operating system with already installed visual studio 2012 ultimate sdk successfully installed from command prompt c://wpexpress_2full.exe/layout
now I have tried running from visual studio but I found no option to select win phone project option I used this link to install sdk
http://www.microsoft.com/en-us/download/details.aspx?id=35471
They make clear on downloadpage about the installation requirement.
Windows Phone emulator uses Hyper-V, which also requires Hyper-V requires a 64-bit system that has Second Level Address Translation (SLAT).

how to deploy windows phone 10 application to a device?

I am using a Nokia lumia630 device, which uses latest windows 10 insider preview build available.
i created a sample windows UWP application and took a build of the same.The output of the build is an Appx.
How can i install this Appx to my device? Anyone having any idea?
Deploying apps to Win 10 Mobile is a bit difficult when using the command line tool. A great alternative is the Device Portal that is available under the “For Developer” settings.Its available with the latest build.
Now You can connect to the device using a web browser and manage apps via the Apps page with no pairing/pin required. This seems to be an easy way of deploying apps than using command line.
Microsoft developed a command line tool called WinAppDeployCmd so you can deploy an Universal Windows app from a Windows 10 machine to any Windows 10 Mobile device via USB or WiFi (since they're on the same subnet). That's a perfect solution if you doesn't have Visual Studio, the app source code or you're under a Hyper-V Virtual Machine.
Basically you will need:
Windows 10 SDK
Generate the .appx package (PC)
Enable the developer mode (Mobile)
Turn on the discovery mode (Mobile)
Get the code to pair devices (Mobile)
Get mobile IP address using WinAppDeployCmd tool (PC)
Run command (PC)
The command will look like this
WinAppDeployCmd install -file “<path>” -ip <ip> -pin <pin>
The tool can be found at C:\Arquivos de Programas (x86)\Windows Kits\10\bin\x86\WinAppDeployCmd.exe
You can find a detailed step-by-step tutorial here
Visual Studio allows you to directly deploy an app to a windows phone. You need to register your windows phone as a development phone with Microsoft. Once this is done, you could use visual studio to do this for you. Not sure if you can deploy windows 10 apps to your phone at the moment. Try this link and see:
https://msdn.microsoft.com/en-us/library/windows/apps/ff769508%28v=vs.105%29.aspx Remember to Upvote if this helps.
You can register your Windows Phone 10 in developer mode. Follow these steps and you can achieve your goal.
When you use device portal like mentioned in the answers above, some might get the following error
"Failed to start deployment. Failure text: Package failed updates, dependency or conflict validation. (0x80073cf3)"
To fix this:
Add the dependencies found under "Dependencies/ARM" folder.Add it here.
I had to add following dependencies to make it work:
Microsoft.NET.CoreRuntime.1.0.appx
Microsoft.VCLibs.ARM.Debug.14.00.appx

Categories

Resources