Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Missing assemblies: WindowsBase, PresentationCore, PresentationFramework

Tags:

asp.net

build

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?

like image 637
st78 Avatar asked Oct 26 '10 12:10

st78


2 Answers

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.

like image 142
st78 Avatar answered Nov 14 '22 04:11

st78


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.

like image 29
Majid Hazari Avatar answered Nov 14 '22 05:11

Majid Hazari