简体   繁体   中英

How to share data between two projects under the same solution

I have two Windows phone projects under same solution one is of the type Background Audio Streaming Agent and the other one is Blank App (windows phone silverlight) I have a situation in which I need to share some data between these two projects

NB: The second project contains a reference to the first project

I have tried

Global variables (using static class) but found that the global variables are instantiated and are becoming null when used in the other project

IsolatedStorage , found that the two projects are using separate IsolatedStorageSettings hence the keys and values used in one project is not available in the other..

what else can i do ?

您可以将数据保存到中央数据库。

Create a third project that contains shared operations of the two. Make sure the methods that you need to use are public...

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