Adi Barda
Adi Barda

Reputation:

redistributing and using the CS.exe compiler (C#) for my application

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

Answers (2)

Lambadurgia
Lambadurgia

Reputation:

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

Upvotes: 1

Jon Skeet
Jon Skeet

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

Related Questions