• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

webmatrix3.0_使用WebMatrix 2或Visual Studio 2012模拟用于ASP.NET Mobile Web开发的 ...

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

webmatrix3.0

I mentioned the Electric Plum Mobile Simulator as a nice way to check your site on an iPhone while using a Windows machine in my post called "Create a great mobile experience for your website today. Please."

我在题为“今天为您的网站创造出色的移动体验。请。 ”的文章中提到, Electric Plum Mobile Simulator在使用Windows计算机的同时在iPhone上检查您的网站的一种好方法

Microsoft WebMatrix 2 RC is out this week and has a nice feature included - support for the Electric Plum Mobile Simulator for iPhone and iPad built right in. WebMatrix is Microsoft's lightweight editor for ASP.NET, PHP and node.js, as well the best way to install open source applications. It's a bit of a playground for the team. Features can be tried out in WebMatrix, and if they pop, we can move them into Visual Studio. I've been singing about Electric Plum for months, so I'm happy to see it in WebMatrix.

Microsoft WebMatrix 2 RC将于本周发布,其中包括一个不错的功能-支持内置的iPhone和iPad的Electric Plum MobileSimulator。WebMatrix是Microsoft的ASP.NET,PHP和node.js的轻量级编辑器,也是最好的安装开源应用程序的方法。 对于团队来说这是一个操场。 可以在WebMatrix中试用功能,如果功能弹出,我们可以将其移入Visual Studio。 几个月来我一直在谈论Electric Plum,所以很高兴在WebMatrix中看到它。

Here's how to use the iPhone simulator there, and how to add an iPhone Simulator to Visual Studio 2012 RC's list of browsers manually.

这是在此处使用iPhone模拟器的方法,以及如何将iPhone模拟器手动添加到Visual Studio 2012 RC的浏览器列表中。

First, install WebMatrix 2 RC. You'll want this even if you're going to add Electric Plum to Visual Studio. From the Run menu, select Add new...

首先,安装WebMatrix 2 RC。 即使您要将Electric Plum添加到Visual Studio,也要使用它。 从运行菜单中,选择添加新...

From here, you'll go to the Browser Extension area where you can add not only iPhone and iPad but also the Windows Phone 7 emulator.

从这里,您将转到浏览器扩展区域,您不仅可以添加iPhone和iPad,还可以添加Windows Phone 7模拟器。

Now the Run button has more browsers as a choice. Here I've left the iPhone as the default choice.

现在,“运行”按钮具有更多浏览器可供选择。 在这里,我将iPhone保留为默认选择。

And when I run it, I get the nice Electric Plum iPhone simulation with my current site loaded automatically. (Did you notice that WebMatrix used NuGet to install this feature? All these extensions are buried in C:\Users\YOU\AppData\Local\Microsoft\WebMatrix\Extensions\20RC currently)

当我运行它时,我会得到很好的Electric Plum iPhone模拟,并自动加载当前站点。 (您是否注意到WebMatrix使用NuGet来安装此功能?所有这些扩展当前都埋在C:\ Users \ YOU \ AppData \ Local \ Microsoft \ WebMatrix \ Extensions \ 20RC中)

To add this browser to Visual Studio 2012 RC, go to the new browser button (integrated with the Debug button) while in a web project and select Browse With... and add in C:\Users\YOU\AppData\Local\Microsoft\WebMatrix\Extensions\20RC\iPhoneSimulator\ElectricMobileSim\ElectricMobileSim.exe. For arguments put in 1 for the iPhone.

要将此浏览器添加到Visual Studio 2012 RC,请在Web项目中转到新的浏览器按钮(与“调试”按钮集成),然后选择“浏览方式...”,然后添加C:\ Users \ YOU \ AppData \ Local \ Microsoft \ WebMatrix \ Extensions \ 20RC \ iPhoneSimulator \ ElectricMobileSim \ ElectricMobileSim.exe。 对于在iPhone中放入1的参数。

Now, make another entry for IPad and use arguments "2" for iPad. Your VIsual Studio 2012 RC menu should now look like this.

现在,为iPad输入另一个条目,并为iPad使用参数“ 2”。 现在,您的VIsual Studio 2012 RC菜单应如下所示。

Now, this is just using the basic version of Electric Plum that you can download inside WebMatrix. You can get a MUCH more functional version for $29.99. It will give you a developer console, GPS support, accelerometer and some additional HTML5 support like local storage, etc. If you're seriously doing iPhone websites on a Windows machine, it's a bargain and you get both iPhone and iPad plus a load of features.

现在,这只是使用可在WebMatrix中下载的Electric Plum基本版本。 您可以花29.99美元获得功能更强大的版本。 它将为您提供开发者控制台,GPS支持,加速计以及一些其他HTML5支持(例如本地存储等)。如果您正在Windows机器上认真处理iPhone网站,这是很划算的,您可以同时购买iPhone和iPad以及大量的特征。

(NOTE: I am NOT affliated with Electric Plum nor do I sell their products. I just think they are cool folks.)

(注意:我不隶属于Electric Plum,也不出售他们的产品。我只是认为他们是很酷的人。)

Have fun! Do you want to see stuff like this in VS? Tell me in the comments and I'll make sure the right people see your voice!

玩得开心! 您是否想在VS中看到类似的内容? 在评论中告诉我,我将确保合适的人看到您的声音!

关于斯科特 (About Scott)

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

斯科特·汉塞尔曼(Scott Hanselman)是前教授,前金融首席架构师,现在是演讲者,顾问,父亲,糖尿病患者和Microsoft员工。 他是一位失败的单口相声漫画家,一个玉米种植者和一本书的作者。

About   关于 Newsletter 时事通讯
Hosting By 主持人

翻译自: https://www.hanselman.com/blog/simulating-an-iphone-or-ipad-browser-for-aspnet-mobile-web-development-with-webmatrix-2-or-visual-studio-2012

webmatrix3.0


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
ASP.NET缓存之没有为SQL缓存通知启用数据库“ReplaceShop”。发布时间:2022-07-10
下一篇:
asp.net core 在centos 7.x下创建服务发布时间:2022-07-10
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap