MahanGM
MahanGM

Reputation: 2382

Compile multiple sources using CSharpCodeProvider

Is it possible to compile several external files using CSharpCodeProvider? I'm now just compile a string. I want to create a hierarchy of .cs files and then compile them.

Thanks.

Upvotes: 2

Views: 607

Answers (1)

Hans Passant
Hans Passant

Reputation: 941377

Use the FromFileBatch method, it accepts an array of files.

Upvotes: 1

Related Questions