I am trying to compile a single .Net C # project into multiple DLLs. But here is what.
This is my project structure.
Bin
Dir1
Dir2
File1.cs
File2.cs
myproject.csproj
I want to compile this project into File1.dll and File2.dll files. Both the File1.dll and File2.dll files use the code in the various .cs files that are in Dir1 and Dir2. Some of these classes in .cs files present in subdirectories require File1.cs, and the rest require File2.cs. There will be some that are used by both File1.cs and File2.cs.
I used the following:
csc /t:library /out:File1.dll /recurse:*.cs
csc /t:library /out:File2.dll /recurse:*.cs
DLL . , , dll , .cs Dir1 Dir2, File1.cs File1.dll File2.dll?
- Visual Studio.
...
. . , , , - DLL, File1.dll File2.dll. ..
, , , , File1.cs, File2.cs. , . , dll, File1.dll, File2.dll. . File1.dll File2.dll, . , ?
.
.