I got strange compile-time error:
Project file must include the .NET Framework assembly 'WindowsBase, PresentationCore, PresentationFramework' in the reference list.
This project is aspnet mvc web application and all was fine for a long time.
After I added them Build went fine, but what could be a reason for this error?
It was caused by addition of file with .xaml extension. By default, VS.NET try to complie it.
When I changed settings to BuildAction: none, copy to output: always I was able to remove those references.
i know that this error was solved, but in my situation, solution was different.
If you copied or moved an item from another project, its "Build Action" property might be set to "Page". This happened to me, and changing it to "Resource" or "Content" (because that's what the item was) fixed the problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With