McGarnagle McGarnagle - 1 year ago 287
ASP.NET (C#) Question

(ASP.NET) Project file must include 'WindowsBase, PresentationCore, PresentationFramework'

I'm seeing an inscrutable compile error in my ASP.NET application.

Project file must include the .NET Framework assembly 'WindowsBase, PresentationCore, PresentationFramework' in the reference list

That's the WPF assembly. My project is ASP.NET. Has anyone ever encountered this before?

Even stranger, the project was compiling before I started messing around with my .resx files due to a different issue. Then suddenly this nonsensical error appeared.

Answer Source

This happens if you have a file in your project with its Build Action set to Resource. (which is used for WPF embedding)

Find the offending file and change its Build Action.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download