Sisyphus
Sisyphus

Reputation: 910

build .net class library into multiple files

i have a class library project that i dont want to split into more than one project, however i would like to compile and build it to multiple dll files instead of one big file. how could i do this?

Upvotes: 2

Views: 210

Answers (2)

Tevo D
Tevo D

Reputation: 3381

This is called a MultiModule Assembly. This involves writing a custom Makefile and performing the build using nmake.

The Multi-Module Assemblies article on eTutorials is very clear and straightforward with instructions on how to accomplish this.

Upvotes: 1

Derek
Derek

Reputation: 8763

Write your own compiler? I don't think this is possible... You could have a post-build step to copy and rename your dll so you would have two different dlls, but then they'd just be the same...

How would you specify which files got build into which dll?
That is kind of the whole point of having separate projects.

You can have the projects reference each other so they can use the code from the other dlls.

Upvotes: 0

Related Questions