Is there a way to set two C#.Net projects to trust one another?

Posted by Eric on Stack Overflow See other posts from Stack Overflow or by Eric
Published on 2010-04-29T01:50:07Z Indexed on 2010/04/29 1:57 UTC
Read the original article Hit count: 256

Filed under:
|
|

I have two C#.NET projects in a single solution ModelProject and PluginProject. PlugInProject is a plug-in for another application, and consequently references its API. PlugInProject is used to extract data from the application it plugs into. ModelProject contains the data model of classes that are extracted by PlugInProject.

The extracted data can be used independent of the application or the plug-in, which is why I am keeping PlugInProject separate from ModelProject. I want ModelProject to remain independent of PlugInProject, and the Applications API. Or in other words I want someone to be able to access the extracted data without needing access to PlugInProject, the application, or the application's API.

The problem I'm running into though is PlugInProject needs to be able to create and modify classes in ModelProject. However, I'd prefer to not make these actions public to anyone using ModelProject. The extracted data should effectively be read-only, unless later modified by PlugInProject.

How can I keep these projects separate but give PlugInProject exclusive access to ModelProject? Is this possible?

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET