McGarnagle McGarnagle - 2 months ago 13x
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.


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.