Cannot find System.Drawing.dll in reference

2019-01-12 11:55发布

问题:

I'm having a weird problem. I'm using Visual Studio 2010 Express for Windows Phone and want to refer System.Drawing.dll. I right-clicked "reference" in the project and clicked "Add reference...", however, I cannot find System.Drawing.dll under .NET tab. Any ideas why? Thanks!

Fei

回答1:

That's a Winforms assembly, it requires the host OS to support GDI+, which is not available for wp7.

Have a look at System.Windows.Media instead