6

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?

Cœur
  • 37,241
  • 25
  • 195
  • 267

2 Answers2

16

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.

Jon Skeet
  • 1,421,763
  • 867
  • 9,128
  • 9,194
1

csc.exe is available with the base installation of the framework.