How to generate .net modules using Visual Studio 2008
I am writing a c# class library, where each class need to be compiled into differe开发者_StackOverflow中文版nt .net modules instead of as a single assembly. Is there any settings to get this done from VS.NET enviornment?
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
精彩评论