Vishnu Babu
Vishnu Babu

Reputation: 1275

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 ?

Upvotes: 0

Views: 575

Answers (2)

Tyress
Tyress

Reputation: 3653

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

Upvotes: 0

Vivek Verma
Vivek Verma

Reputation: 333

You can save the data to a central database.

Upvotes: 1

Related Questions