当我们使用 JavaScript 创建 Metro 应用程序时,Visual Studio 11 Ultimate 中的 JS 文件在哪里当我们、应用程序、文件、Metro

2023-09-06 06:12:34 作者:_℡↘幽默先生╮

I have Visual Studio 11 Ultimate and I am trying to develop sample application in Metro style using JavaScript.

My problem is in every example that I am getting in internet saying that I need to reference to a group of java script file to get winJS functionalities and metro style ( like binding.js,res.js,animations.js) .. And all those samples are made using VS 11 Express Edition .

无论编程新手还是工程师,希望他们都能用 JSBox 创造自己的工具丨幕后

I understood that express edition automatically add those references .. But I am using VS11 Ultimate. And it's only referencing two .js files (base.js and ui.js) .How do i get other js files from ultimate... or should i shift to express edition to get all functionalities?

解决方案

The samples you were looking at are obsoleted when they updated their WinJS library from Developer Preview to later version. They move all their javascript library into 2 files, base.js and ui.js, but the samples were still referring to the old WinJS library.

As it is now Consumer Preview, you should probably look at http://code.msdn.microsoft.com/windowsapps/Windows-8-Modern-Style-App-Samples