VS Debug to a windows phone device? - windows-8

My understanding is in visual studio, if i change my debug to 'Remote Machine' I should be able to build and deploy to my phone, and still be debugging it in visual studio.
However, I can't seem to find a guide on how to do this. Can anyone point me in the right direction?
I specifically have a windows 8 lumia 920 if it matters.
I have VS 2012 on Windows 8 Pro with the WP 8.0 SDK installed.

What project type are you using? It sounds like you may have been using one of the templates for Windows 8 (a Windows Store app), which have the Run dropdown options Simulator, Local Machine, and Remote Machine.
If you are developing for Windows Phone using one of the WP8 templates, the options that you should see in the Run dropdown are Device, Emulator WVGA 512MB, Emulator WVGA, Emulator WXGA, and Emulator 720P. To debug to your phone in Visual Studio, you need to select "Device" from that dropdown. Here is an article with a screenshot.
If you have a solution that contains both a Windows Store and a Windows Phone project in it, make sure that you right-click on the Windows Phone project and select "Set as Startup Project".

Related

Unable to use Windows Phone 10 Emulator

I have Visual Studio 2015 Enterprise installed on my Window 10 development machine. I can create a new Universal Windows Platform app and run it both in the simulator as well as on the local machine.
However, when I select any of the 5 pre-installed Mobile Emulators and start debugging, I see the emulator app (XDE.exe) being launched, but then I immediately get an error dialog with the following message:
The emulator is unable to set some properties on the virtual machine: Couldn't change Display controller settings of the virtual machine: .... The configuration version of the Mobile Emulator 10.0.10240.0 WVGA 4 inch ... virtual machine does not support setting resolution type, horizontal resolution or vertical resolution.
When I open the Hyper-V manager, I can see 3 virtual machines installed. I can even start them and they will eventually show the Windows Phone 10 home screen in the expected resolution and orientation.
This happens when running Visual Studio 2015 either as a regular user or as an administrator.
Make sure your computer has an internet connection, and
If the Tools for Universal Windows Apps Development are still installed:
Go to Programs and Features, select Visual Studio 2015, click Change.
In Visual Studio setup, click Modify.
Deselect the feature Tools for Universal Windows App Development.
Select Tools for Universal Windows App Development again, and click
Update.
If you have already uninstalled the Tools for Universal Windows Apps Development: Reinstall Tools for Universal Windows App Development.
Or, take the following steps to reinstall the JavaScript project system and language service:
Download the installer for your edition of Visual Studio, such as, vs_community.exe.
Open a command window, and run the following command:
vs_community.exe /modify /installselectableitems JavaScript_Hidden
/passive
Change directories to C:\Program Files (x86)\Microsoft Visual Studio
14.0\Common7\IDE
Run the following commands:
devenv /updateconfiguration
devenv /clearcache

Develop Windows 8.0/8.1 app from already existing IBM Worklight Project

I need to create a Windows Phone 8.0 as well as Windows Phone 8.1 app from already developed IBM Worklight(6.1) Project. Is there any document that elucidates end to end solution to do that? Also could you please elucidate tools/plugins required?
To your existing MFP/Worklight project, you can add the Windows Phone environment. This will generate the Visual Studio project for Windows Phone. The same app can be run on Windows Phone 8.0 and 8.1.
The following getting started modules give you an overview of whats needed to develop a Windows Phone app.
http://public.dhe.ibm.com/software/mobile-solutions/worklight/docs/v610/01_07_Setting_up_your_Windows_Phone_8_development_environment.pdf
http://public.dhe.ibm.com/software/mobile-solutions/worklight/docs/v610/03_11_General_information_when_developing_for_Windows_Phone_8.pdf

Is Internet Explorer 11 supported by Worklight?

I am working on application for Windows 8 tablet and would like to leverage some features introduced in IE 11.
I am using laptop with Windows 8.1 and IE 11. I was really surprised to see when I was debugging in VS 2013 that my app is running on IE 10 but not IE 11.
I tried to build project in Eclipse setting it up that it should use external browser as it adviced in this article: http://www-01.ibm.com/support/docview.wss?uid=swg21600697 but no luck :-( it still use IE10.
Is there is a way to debug a Windows 8 tablet app in VS 2013 using default browser on laptop? Like IE 11 on Windows 8.1 laptop.
Thank you in advance for help!
The option you tried is not related as it is about Worklight Console's MBS, whereas you are talking about Visual Studio which is an external IDE for Windows Store and Windows Phone 8 app development...
What you want to do is set Internet Explorer 11 as your default browser in your Windows 8 Desktop machine (running Visual Studio). However, that seems to be not so straight forward with Visual Studio in the mix.
Here are some possible solutions:
Where does Visual Studio stores the default browser to use in debug?
Visual Studio opens the default browser instead of Internet Explorer
http://www.c-sharpcorner.com/Blogs/2131/set-default-browser-in-visual-studio.aspx
Perhaps this as well:
http://developer.telerik.com/featured/5-ways-to-build-mobile-apps-with-visual-studio/
http://blog.credera.com/technology-insights/microsoft-solutions/5-things-you-need-to-know-about-debugging-in-visual-studio-2012/

Developing Windows 8 Metro-Style apps requires Windows 8 rc preview, right?

There's no emulator for Windows 8, so in order to develop metro apps I must install the release candidate on a device and run Visual Studio there, right? That's what this page seems to suggest, but I just wanted to double check.
Yes, Windows8 is required.
However, VM can be used. For example, I'm running Win8RP/64 and VS2012RC in Oracle VirtualBox on Win7/64.
NOTE: For developing Metro Style App, you should NOT install VirtualBox Extension Pack.
Yes, you need Windows 8 to develop Windows 8 Metro style apps.
Metro Style apps rely on a new set of APIs which are implemented only in Windows 8 through the the Windows Runtime (WinRT).
There is no emulator for Windows 7 and not even for Windows 8... Windows 8 has a simulator which in practice is just a Remote Desktop session to the same machine. It is not an emulator.
While Windows 8 is not in its final version, what I recommend is to install Windows 8 in a VHD (virtual hard disk) and boot your PC directly to the VHD. It is faster than running virtual machines (because only the disk is virtual, all the rest is real hardware) and you can keep your Windows 7 intact.
This is what I've been using since Developer Preview. I have a dual-boot configuration being one for the Windows 7 that is booting from the regular disk partition, and one Windows 8 that is booting directly from the VHD on disk.
Metro UI style is just a design approach and some guidelines. You are free to implement such interface using Visual Studio 2010 as well as 2008. Using C# and WPF everything is possible. But, indeed, new Visual Studio has a set of Metro style components (WPF) with which your development process will be much more quicker.
The only thing you can't use at OS other than Windows 8 - is WinRT subsystem.
Almost all of the development tools needed to build Metro style applications can be run on OS's other than Windows 8 (Visual Studio and the package creation tools require Windows 8). So it should be possible to set up a build environment using msbuild.exe (or even make/nmake) that will compile and link metro-style applications on an OS other than Windows 8.
However some parts of development MUST be done on Windows 8 - the tools for some of the steps of development will only run on Windows 8.

Building Windows 8 Metro App on Windows 7 with Visual Studio 2010

My Visual Studio can't seem to build any of the Metro Sample applications. As I've never really used this IDE before, I've pretty much given up.
Can anyone direct me to a sample application that is already built and preferably some source code along with it for reference?
Note:
I have a copy of Windows 7 AND 8. However I can't seem to build Microsoft's File Access Sample in my copy of Visual Studio 2010 Ultimate. I'm trying to test one of my Win7 applications in Metro mode of Win8 (the application may be called for use during a user's session in a given Metro app).
Metro Apps (that is, applicatons based on WinRT in Windows 8) will not run in Visual Studio 2010. You need Visual Studio 11 express (that comes on the Windows 8 Developer Preview with developer tools English, 64-bit (x64) or Visual Studio 11 developer preview (available for MSDN subscribers)).
According to Getting started with Windows Metro style app development, "To begin building Metro style apps for Windows, you must first download and install the Windows Developer Preview, which includes Microsoft Visual Studio 11 Express for Windows Developer Preview and the Windows SDK for Metro style Apps."
So I think you'll have to do metro-style development from the Windows 8 Preview for now. That website also has some hello world type stuff and general direction on getting started.
You probably can build Metro Style Apps in Visual Studio 2010. Basically Metro is a special type of design where focus is more on texts than pictures. Metro means " Text before Chrome".
If you can build such metro controls ( or you can copy some from any windows 8 copy) you probably will be able to build very basic Metro style apps , but if u wish to build something advanced then i would suggest better switch to Windows 8 with Visual Studio 2012 Ultimate .