Sarath Subramanian
Sarath Subramanian

Reputation: 21271

Create DLL without building project

I have two applications

WORKING STRUCTURE

When I build the child application, its showing the error : Could not Find namespace MyDll. Are you missing an assembly reference?

CODE

1. Parent Application

using MyDll;
namesapace MyNamespace
{
   class ParentApplication
   {

   }
}

2. Child Application

using MyDll;
namesapace ChildNamespace
{
   class ChildApplication
   {

   }
}

How do I generate a DLL of child application without building project of child application?

Upvotes: 0

Views: 134

Answers (1)

James Loyd
James Loyd

Reputation: 46

You need to build the child application because until the code is compiled into a dll then well, its just code on a screen. Since, C# is compiled into Microsoft Intermediate Language MISL which is then compiled against the common language run time (CLR) and then that is made to native code like machine code. Where you can read more about here. So in short, you have to build the child application, no other way around it.

It also seems like you aren't using the right location for the MyDll.dll, where exactly is it located?

Upvotes: 3

Related Questions