简体   繁体   中英

Can't find namespace in Global

I have the job of getting a legacy project working again. This project was done many years ago using Silverlight and C# Class Library's .

The error I am getting is to do with a namespace inside the project file called Silverlight.Business :

Code

using Tcx = global::MapTools.Xml;

Error:

The type or namespace name "MapTools" could not be found in the global namespace (are you missing an assembly reference?)

MapTools is a C# Class Library and Silverlight.Business is a Silverlight Library . Due to this I can't add a reference to MapTools inside the Silverlight project file.

The silverlight project does have a WCF RIA Service's Link but that does not connect to anything.

I am now wondering how the person that wrote the code has managed to call that namespace? I have tried researching how to add the MapTools.dll to the Global namespace but have not found anything.

Anyone have any ideas?

To do that there should be an some tool been used . We had used in our projects a Portable library which allowed us to communicate through cross type of projects , below is the link :

https://msdn.microsoft.com/library/gg597391(v=vs.100).aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM