Windows 8 metro style HTML5 development - windows

I want to know can i develop metro style windows 8 HTML5 application without windows8 OS installed ?
I understand working on VS2012 , but Since it is web application i think it doesn't make sense to have the windows 8 OS installed.
Please confirm if it is required, if not tell me how to make it work on windows7 and VS 2012

Visual Studio 2012 requirements doc says that you can use it on Windows 7 SP1. However, you will not be able to develop/debug HTML5 apps developed with it as Windows 8 HTML5 applications are not simple web applications, they run on top of the WinRT runtime which is not available on Windows 7.
So bottom line, to develop/debug HTML5 applications for Windows 8, you need to have VS2012 installed on a Windows 8 machine.
If you are thinking about developing regular HTML5 web application (that will be used from a browser and not as a Windows 8 application, then you should be able to do so using Windows 7 SP1 as the host.

See lets know more about your application.
In W8 Metro Style Apps with HTML5/JavaScript and CSS3 , you can make great apps as you can take an example of Cut The Rope .
Making a website with HTML 5 /JS/CSS3 doesnt need you to select the Windows Store App option as it is only used to create an app that would you later upload to windows store whereas a website would be uploaded on a server

Related

Accessing Windows 8 libraries in VS2012 on Windows 7

Running VS2012 Pro on Windows 7 Pro, I need to develop a desktop application for a Windows 8 environment (this is NOT a metro-style interface). What I can't figure out is how to reference the Windows 8-specific libraries (for instance, Windows.Media.Capture). I've downloaded and installed the Windows 8 SDK, but when I try to add a reference to a Windows 8 library, nothing is available in either the Framework or Extensions list.
Any ideas? or am I stuck with having to move to Windows 8 on my development system?
Thanks.
You can develop a .NET 3.x or 4.x app on Windows 7 and run it on Windows 8 in desktop mode just fine. You can also create a C++ app that targets Win32 and run it on the Windows 8 desktop just fine. However, you cannot reference any assemblies on Windows 7 that have runtime dependencies on WinRT APIs. Windows.Media.Capture and the classes contained within (such as CameraCaptureUI) are WinRT APIs and cannot be used on Windows 7. Even if you had Windows 8, very very few WinRT APIs can be called from desktop applications. The Windows.Media.Capture APIs can only be used from a Windows Store (formerly Metro) app.
Dev support, design support and more awesome goodness on the way: http://bit.ly/winappsupport

How do I write apps for Windows 8 without running the official Windows 8 Operating System on my computer?

I don't have Windows 8 on my computer. However, I have the Consumer Preview version of Windows 8 installed. Is there any way to create apps for Windows 8 on the Consumer Preview version? Visual Studio for Windows 8 doesn't install as it gives numerous errors.
To use the final release of Visual Studio 2012 to build Windows Store apps, you will need to use the Windows 8 RTM build.
You wouldn't want to use the Windows 8 Consumer Preview to develop Windows Store apps anyway--there have been substantial changes to the platform, frameworks, and tools between the Consumer Preview and the RTM build.
The short answer is you cannot develop Windows Store apps without Windows 8 RTM or greater.
If you don't wish to install/partition your hard disk following is a neat idea to get windows 8 installation going without having to partition your drive.
How to Create Windows 8 VHD for Boot to VHD using simple, easy to follow steps
Developer downloads for programming Windows Store apps
See, Windows 8 Apps use Windows 8 APIs such as Directories and all .
So to make any any Modern UI app , you need to have Windows 8 Installed with VS 2012

Porting Windows Phone7 application to Windows 8

I ported my windows phone7 application to windows 8(just copy paste the xaml and c# code in visual studio 2012->new->project->WPFApplication) and made changes in UI sizes.The problem is the .exe file(after building wpf application) runs only in the system with .NET framework installed.I want to run my application in all system running windows(7(32/64),xp,vista).I am newbie to windows application basically wp7 developer.Thank u.
If you really want to port a windos phone 7 app to windows 8, You should go through the following resources. They provide most of the information.
http://msdn.microsoft.com/en-us/library/windows/apps/hh465136.aspx
http://leventoz.wordpress.com/2012/03/07/moving-a-windows-phone-app-to-windows-8-a-case-study-part-1/
http://leventoz.wordpress.com/2012/03/11/moving-a-windows-phone-app-to-windows-8-a-case-study-part-2/
WPF is a part of the .NET framework, so you can't write a WPF application that can run without the framework on the machine.
If you want to create a binary that run on the classic windows runtime you can't use WPF/C#/VB etc.
Best thing if you want to port your Windows Phone app to Windows 8 is to create a Microsoft Store app, File > New Project > Blank App in VS2012. The app won't run on anything except Windows 8 but the Microsoft Store for Windows 8 is probably the best place to have your app if it's ported from Windows Phone.
Migrating application to WP7 is not that easy as it sounds. There is lot of different APIs and also limited async/await in WP7 when using this extension.
I would probably recommend starting with this MSDN article. It describes basic problems and challenges and also contains useful namespace and API mapping:
Migrate/port a Windows Phone 7 app to a Windows Store app

Can applications written for windows 8 run on windows phone 8?

As Microsoft said that windows 8 and windows phone 8 share the same code base. If I use visual studio 2012 RC write an application for windows 8. I want to know whether I can install and run the same application on windows phone 8?
If the answer is yes we can prepare ourselves for windows phone 8 SDK by learning Visual Studio 2012 RC for windows 8 today!
Right now they haven't announced everything, so this is just my speculation.
I guess that you will not be able deploy the same app (xap file) to WP8 and Windows 8. This by design. Why? Because they are very different systems. Your beautiful, fast and awesome Windows Phone app will suck on Windows 8. There is no silver bullet. It's the same for HTML. You have to create separate mobile version of the web app, otherwise nobody will use it.
They share the same kernel and probably plenty of APIs. But that doesn't mean the runtime environment in which your applications run is the same. E.g. very different form factors make it necessary to adapt the app anyway. Since they never said that Windows Phone 8 has the same application programming model as Windows 8 you can at the moment safely expect not to be able to deploy the same app to both Windows 8 and Windows Phone 8.
That being said, you probably can expect to share a lot of code between both systems, especially if you're using either C# or C++ (with native apps coming to WP8 too).
Application compiled for WP8 won't just run on Windows 8, but you can share lot of code into common libraries.
There is a chapter in Windows Phone 8 SDK about targeting both Windows 8 and Windows Phone 8 development. Mostly is possible either by Portable Class Libraries, referencing common files both in W8 and WP8 projects or using Windows Runtime Components.
http://www.microsoft.com/en-us/download/details.aspx?id=35471
Many Application designed for wp8 work on windows8 also as The developer have also to decide whether it will work in both of then,usually windows8 has not enough graphic and motion control so some WP games do not run on windows8,, You can always see any app permission notice to understand whether it work on wp8 or not on other hand there were also some windows game that has as much graphics that WP could not run,,
Like if you want game like assassins creed it will run on both operating system(WP,window) but in different manner
So it's chooses by game properties that define cap package to run or not

Development of Metro UI (Windows 8) from Windows 7

How do I develop for Windows 8 on my Windows 7 machine. I dont want to install a VM. I checked Visual Studio 11 Developer Preview, but I am not sure if it allows me Metro UI development.
You cannot do Metro style development from Windows 7. If you cannot install Windows 8 either directly or via a VM or dual-boot, you will not be able to develop Metro style apps on that machine.
The simplest thing to do is set up your Windows 7 machine to dual boot into Windows 8. With a dual boot you can still access files on the Windows 7 machine when you're booted to Win 8. There are plenty of how-to's available; here's one: http://www.intowindows.com/how-to-dual-boot-windows-8-with-windows-7/ .
You can also install the dev preview of VS11 on a Windows 7 box to build DLLs the Metro app will use, to experiment with C++ AMP, or just to get a head start on familiarity with the VS UI. Any app you build with that (or VS2010, or VS2008, or whatever) will happily run on the Desktop side of Win8, the same as it did on Win7.
What you can't do is build (never mind test) Win8 Metro apps using a Win7 box only. Yet.
It seems that the Windows 8 Virtual Labs (http://msdn.microsoft.com/en-us/jj206431.aspx) don't need Windows 8 to be installed. Try it out on Windows 7.

Resources