Reputation:
We are currently building an application which needs to compile C# code. Can we redistribute csc.exe
in our package. I thought that it comes with the .Net framework installation but from looking in Microsoft Web site I see that there is a difference between .Net framework and the .Net SDK
What are my options?
Upvotes: 6
Views: 1108
Reputation: 1502036
csc.exe is definitely part of the framework itself, not just the SDK.
However, you may not need to call out to csc.exe in the first place - there's CSharpCodeProvider which lets you compile code programmatically.
Upvotes: 16