在VM下进行WPF开发是否可行? [英] Is WPF development feasible under VM?

查看:109
本文介绍了在VM下进行WPF开发是否可行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

阅读如何保留您的开发人员

但是,我正在开发WPF,这让我想起了一年前为开发机器构建VM的良好意图。

和Vista x64上的SilverLight GUI。我可以在VM下运行x64版本的操作系统,但我担心WPF的图形性能,尤其是运行Expression Blend。我希望需要GPU!



我目前有用于XP 32位测试的Virtual PC VM。那是VMWare或VMWare的一个版本可能更适合WPF,如果是的话,版本之间是否有差异?我已经可以使用OS / X上的VMWare Fusion创建VM,因此仅使用免费的VMWare Player很好-我无法找到有关Player和Workstation之间GPU支持差异的任何注释。



我的主要Windows开发机只是一台具有4GB RAM的Dell笔记本电脑(Latitude 830),但是我必须使用笔记本电脑进行客户访问,因此我不愿意为其他台式机投入使用。

解决方案

我自己尝试过,所以建议不要使用VM进行WPF开发。
WPF引擎依靠DirectX加速来呈现内容,并且对VMWare的DirectX支持不完整(尽管比MS Virtual PC不存在的DirectX支持要好得多)。



您将要面对的问题是,Visual Studio和Expression在处理XAML时都会不断重新渲染XAML,这需要大量显着的GPU带宽。在VM中运行并不会削减它,并且根据您的设置,您将在VS 2008中遇到黑屏或空白或无响应的设计器窗口。



如果尽可能坚持在本地桌面上进行开发。


After reading how to keep your dev machine from slowing down, I was reminded of my good intention a year ago to build a VM for my development machine.

However, I'm developing WPF and SilverLight GUIs on Vista x64. I can run x64 versions of the OS under a VM but I'm concerned about graphic performance for WPF and especially running Expression Blend. I expect to need the GPU!

I currently have Virtual PC VM for XP 32-bit testing. Is that or a version of VMWare likely to be better for WPF, and if so, are there any version differences? I can already create VMs with my VMWare Fusion on OS/X so just using the free VMWare Player is fine - I haven't been able to find any comments about differences in GPU support between Player and Workstation.

My main Windows dev machine is only a Dell laptop (Latitude 830) with 4GB RAM but I have to work on a laptop for client visits so I'm not inclined to shell out for an additional desktop.

解决方案

Having tried it myself, I'd reocmmend avoiding using a VM for WPF development. The WPF engine relies on DirectX accelaration in order to render content, and DirectX support is incomplete on VMWare (albeit miles better than MS Virtual PC's non-existent DirectX support).

The problem you're going to face is that Visual Studio and Expression both constantly re-render your XAML while you're working on it, which requires heavy significant GPU bandwidth. Working inside a VM simply doesn't cut it and, depending on your set up, you'll either experience black/blank or unresponsive designer windows in VS 2008.

If at all possible, stick with developing on your local desktop.

这篇关于在VM下进行WPF开发是否可行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆