Building Windows 8 Metro App on Windows 7 with Vis

2020-08-09 10:18发布

问题:

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).

回答1:

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)).



回答2:

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.



回答3:

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 .