user581027
user581027

Reputation:

How to generate .net modules using Visual Studio 2008

I am writing a c# class library, where each class need to be compiled into different .net modules instead of as a single assembly. Is there any settings to get this done from VS.NET enviornment?

Upvotes: 1

Views: 570

Answers (1)

AbrahamJP
AbrahamJP

Reputation: 3440

You could use the "Build events" in VS.NET project properties to generate .net assemblies. Under "Post build" event specify a batch file containing the following code.

csc /target:module YourClassName1.cs
csc /target:module YourClassName2.cs

Upvotes: 2

Related Questions