Creating desktop applications for Windows RT? - visual-studio

I've installed Windows Phone SDK 8.0 and there are no project types for desktop windows RT applications.
How can I develop this type of applications?

Windows RT is not associated with the Phone SDK - it comes from the main desktop development environment.
Microsoft does not allow desktop apps to be built for Windows RT. The RT desktop is limited to make the office applications work, but does not include the full windows functionality.
To develop windows 8 desktop apps, you use Visual Studio as you would have in the past for desktop apps.
To build a windows store app you would go under c# and select Windows Store. Tutorials located at Microsoft. There you will get a selection of templates you can build from to make your app. I expect these templates will also build apps that can run on a Windows RT device. (I haven't tested that though)

Creating desktop applications for Windows RT?
Technically, you cannot develop Desktop Applications for Windows RT. Its not officially supported by Microsoft. You can develop Store Applications for it, though. Store Apps used to be called Metro Apps, but Microsoft was exposed to legal risk with the name (see Microsoft to drop 'Metro' name for Windows 8).
For hacking around the restriction, see Can ARM desktop programs be built using visual studio 2012. However, your app will likely be rejected from Microsoft's Windows Store if you submit it.
...are no project types for desktop windows RT applications.
Windows RT is there - you want a Windows Store app:
The Windows Store App project will define WINAPI_FAMILY=WINAPI_FAMILY_APP. It will have three platforms: X86, X64 and ARM. Windows RT Pro is X64. Windows RT is ARM. I'm not sure what X86 is classified as. For developers and engineers, its all just WINAPI_FAMILY=WINAPI_FAMILY_APP with three platforms. There's no difference between Pro and non-Pro under Visual Studio (some hand waiving).
For some good reading on WINAPI_FAMILY and platform detection, see Chuck Walbourn's three part series Dual-use Coding Techniques for Games.
With some hand waiving, the backend difference between Windows Phone and Windows Store is:
Windows RT uses the compiler located at
%VSINSTALLDIR%\VC\bin\x86_ARM\CL.exe
Windows Phone uses the compiler located at
%VSINSTALLDIR%\VC\WPSDK\WP80\bin\x86_arm\link.exe
Obviously, the paths change when platforms change. But the linker (link.exe) and other tools (like lib.exe) are in the same directory as the compiler.
The environment for Windows RT (ARM) is labeled Visual Studio 2012 ARM Cross Tools Command Prompt. You can find it at Start (what's left of it) → Program Files → Visual Studio 2012 → Visual Studio Tools:
The environment for Windows Phone (ARM) is labeled Visual Studio 2012 ARM Phone Tools Command Prompt:
Similarly, the environment for Windows Phone (X86) is labeled Visual Studio 2012 X86 Phone Tools Command Prompt; and Windows RT Pro (X64) is labeled Visual Studio 2012 X64 Cross Tools Command Prompt.
All the command prompts set the environment so INCLUDE, LIBPATH, PATH etc are ready for command line development. To date, that's all I have used because I have been porting libraries. I have not use Visual Studio for a project yet.
You will also want to look over Can ARM desktop programs be built using visual studio 2012 for the _ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE=1 define.
Also see Jason Zander’s What you need to know about developing for Windows on ARM (WOA) on MSDN.
Finally, see Desktop apps ported to Windows RT on XDA Developers forum.

You can sort of hack Visual Studio 2012 and later to allow you to reference RT in windows desktop apps.
1.) Unload your project in Visual Studio
2.) Add a TargetPlatformVersion property to the project:
<PropertyGroup>
<TargetPlatformVersion>8.0</TargetPlatformVersion>
</PropertyGroup>
3.) Reload the project.
4.) Go to "Add Reference..."
5.) There should now be an additional Windows option on the left panel that allows you to add the Windows Core reference.
For more information see Using Windows 8* WinRT API from desktop applications

Windows Phone 8 and Windows 8 are two separate products and require 2 separate SDKs to develop for. Windows Phone 8 runs on mobile devices only, while Windows 8 runs on desktops, laptops and tablets.
All you need to do to build Windows 8 apps is a machine with Windows 8 and Visual Studio 2012 installed on it. You can use the 90 day evaluation for Windows 8 Enterprise with the Express (free) edition of Visual Studio to build such apps. If you are a student you get full version of Visual Studio for free via the Dreamspark program.

To develop Windows Store apps, you need Visual Studio 2012.
The Visual Studio Express that comes with the Windows Phone SDK does not have the templates for developing Windows Store apps.

Related

Develop Universal apps for windows 10 from windows 8.1

I have windows 8.1 and right now Visual Studio 2015 is installing on my machine. Can I develop universal windows apps UWA for windows 10 from my windows 8.1 ?
If worth mentioning, I have another machine with windows 10 at home, and I think I read somewhere before I can use the other machine remotely to test my apps but I have been looking without finding how to do so.
Actually, this is possible. We can develop Universal Windows apps with Visual Studio 2015 on Windows 8.1 and test them on a remote Windows 10 device.
For more info, please see Requirements in Develop apps for the Universal Windows Platform (UWP)
Windows 8.1 and Windows 7 support
If you choose to develop Universal Windows apps with Visual Studio 2015 on a platform other than Windows 10, these are the restrictions:
Windows 8.1: You can’t run the app locally (only on a remote Windows 10 device). You can use the emulators in Visual Studio, but not the simulator.
Windows 7: You can’t run the app locally (only on a remote Windows 10 device). You can’t use the emulators or the simulator in Visual Studio either.
And for test on remote devices, please see Specifying a remote device in Deploying and debugging Universal Windows Platform (UWP) apps.
However, when using OS earlier than Windows 10, some Visual Studio features for Windows Universal development may be degraded, such as you can't use the XAML designer on Windows 8.1:
For a better experience of developing Windows Universal Apps, Windows 10 is strongly recommended.
This is not possible. You need Windows 10 to develop Windows 10 UWP apps.
1. Get Windows 10
To develop UWP apps, you need the latest version of Windows.

Windows SDK installation Visual Studio Community 2015

When I try to install the Windows Phone Template Pack on Visual Studio Community 2015, the following error is obtained.
What is the reason? Where can I check the error log from?
Couple of issues:
The Windows SDK link you provided (http://www.microsoft.com/en-in/download/details.aspx?id=8442) is for Windows 7. It is not compatible with Visual Studio 2015 for Windows Phone development.
I think this error you're seeing with the Windows Phone Template Pack (HRESULT: 0x80070057) is because the Windows and Windows Phone 8.1 Tools are not installed on your computer along with Visual Studio Community 2015.
I am able to reproduce this only when the Windows and Windows Phone 8.1 Tools are not installed.
If I click skip, then I see the error dialog you included above.
To resolve this issue,
Go into the Control Panel
Open up Add/Remove Programs (or Programs & Features depending on your OS version)
Select Visual Studio Community 2015, then click Change
In VS setup, click Modify
Make sure that the "Tools and Windows SDKs" feature under "Windows 8.1 and Windows Phone 8.0/8.1 Tools" is checked.
If you're running Windows 8.0/8.1/10 x64 Professional or higher with a Hyper-V capable computer and then you should also be able to install the Windows Phone 8.1 emulators.
-Paul Chapman [MSFT]
Found this answer today, but it no longer works, or doesn't work if the host OS is Windows 7 Pro. I just installed Windows 7 Pro (plus all updates) and then VS2015 (plus all of ITS updates) on an otherwise CLEAN computer. NO SDK was installed. My options for modify look like this:
The Windows 8.1...Tools option is TOTALLY MISSING. The Windows 10.0 SDK is offered under the Universal Windows...Tools option, but that doesn't help me with Windows 7 targeted development.
Also, FWIW, the Windows 8.1 install tool that Microsoft is offering for download just gets an APPCRASH every time I try to use it (and yes, I've downloaded it several times, even to different machines, but always with the same result.)
So for me, I can either stick with Visual Studio 2010 or suffer the user interface abomination that is/was Visual Studio 2012 (not gonna happen). Sigh.

Developing Windows Phone 8.1 apps in Visual Studio Express

I want to dive in into developing windows store apps. I am using visual studio express 2013 for desktop and my OS is windows 8.1. But when I want to follow a simple hello world project and I want to create a new project I am already limited in some way. I have to go to Installed > (I want to use C#) Visual C# > Universal or Windows Apps or Windows Phone Apps. But none of these 3 points are available when I want to follow the tutorial. Do you have any suggestions why this might be the case ?
To develop Windows Phone 8.1 apps, you need Visual Studio 2013 Express for Windows. You're using the version for Desktop which is why you don't see the necessary templates.
You can use the tools in Visual Studio Express 2013 for Windows to
create innovative and compelling Windows Phone and Windows Store apps
on Windows 8.1.
You can find and download the Visual Studio 2013 Express for Windows here.

Create a Windows Mobile 6.5.3 project in Visual Studio 2008

What do I need to install so that I can develop applications for Windows Mobile 6.5.3 devices, using Visual Studio 2008?
Since it took me like 3 days of research to figure out how to actually do this I'm creating this article to hopefully ease some others pain.
Firstly, have Visual Studio 2008 installed. Secondly, install these add on pieces:
Windows Mobile 6 Professional and Standard Software Development Kits Refresh
http://www.microsoft.com/downloads/details.aspx?FamilyID=06111a3a-a651-4745-88ef-3d48091a390b&displaylang=en
Windows Mobile 6.1.4 Professional Images (USA)
http://www.microsoft.com/downloads/details.aspx?FamilyId=1A7A6B52-F89E-4354-84CE-5D19C204498A&displaylang=en
Windows Mobile 6.5 Professional Developer Tool Kit (USA)
http://www.microsoft.com/downloads/details.aspx?FamilyID=20686a1d-97a8-4f80-bc6a-ae010e085a6e&displaylang=en
Windows Mobile 6.5.3 Professional DTK
http://www.microsoft.com/downloads/details.aspx?FamilyID=c0213f68-2e01-4e5c-a8b2-35e081dcf1ca&displaylang=en
You may not need to install all of these but I did and it won't hurt anything most likely. nextly
Open Visual Studio 2008 and create a new project for Smart Device click ok
Select Device Application on the main window with the icons and change the target platform to Windows Mobile 6 Standard SDK. Click OK.
Right click on the the Project Name in the solution explorer and select Change Target Platform and choose Windows Mobile 6.5.3 Professional SDK. Click Ok.
The project will need to be closed and reopened.
That simple!
For Windows 10 (and probably some earlier versions) I think Andrew's answer is missing something important. It also includes some packages that shouldn't be needed for strictly 6.5.3 development. For reference, if you attempt to install the 6.5.3 DTK and missing anything, it should tell you.
At a minimum, you should only need the following:
VS 2008 Professional
Windows Mobile 6 Professional SDK Refresh https://www.microsoft.com/en-us/download/details.aspx?id=6135
Windows Mobile 6.5.3 Professional DTK https://www.microsoft.com/en-us/download/details.aspx?id=5389
Windows Mobile Device Center 6.1 Driver
https://www.microsoft.com/en-us/download/details.aspx?id=3182

Visual Studio 2013 - Windows 7 create app package

I'm using Windows 7 32x. It seems I'm not able to create an app package in Visual Studio 2013 Professional, the "Store" option doesn't appear. I've read somewhere that we couldn't package on Win7, is there any way around? I'd like to upload my app to Windows Store, thanks.
You won't be able to do that. On Windows Store development center web site it's stated quite explicitly:
To create an app, you must use Visual Studio 2013 on a computer running Windows 8.1.
You can't create an app by using Windows 7. In addition, developer licenses aren't available for Windows Server 2012, so you can't develop a Windows Store app on that operating system.
More on the topic: http://msdn.microsoft.com/en-GB/library/windows/apps/br211384.aspx
Check the section "Important"

Resources