Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

You must add a reference to assembly 'WindowsBase, Version=3.0.0.0

I'm currently writing up an upload system that takes XML from the document and will display it on a web page.

The issue I'm facing, is that whenever I'm adding the XML extraction part of the website, the compiler will return the error as mentioned in the title. I have already added WindowsBase, both from manually and from the drop down menu.

like image 513
Alex Avatar asked Dec 19 '13 10:12

Alex


People also ask

How do I add references to WindowsBase?

You must add a reference to assembly 'WindowsBase, Version=3.0. 0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The solution to this problem is to add reference of WindowsBase library by right clicking the project in Solution Explorer window and then clicking Add Reference option from the context menu.

Where is WindowsBase DLL?

C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework. NETFramework\v4. 0\ is used by Visual Studio to reference shared libraries.


1 Answers

Check properties of the referenced assembly (select reference and click F4) - try to use "Copy Local: true"

like image 162
nZeus Avatar answered Sep 23 '22 18:09

nZeus