Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Am about to start coding using microsoft .Net technologies, am just worried about the license, so if I compile my code using the .Net compiler "not visual studio" can I distribute, sell or use my product freely or I should have some sort of "microsoft license", same thing for sql server express installed(depolye) with my application

share|improve this question
Visual Studio uses csc.exe behind the scenes, so compiling using the command line and compiling using Visual Studio are exactly the same. – Robert Harvey Aug 29 '12 at 16:27
yes but the csc.exe comes with .Net's not the visual studio – Séddik Laraba Aug 29 '12 at 16:29
up vote 10 down vote accepted

You don't need Visual Studio to create distributable applications. It's perfectly legal to get the SDK, use Notepad to create your application, compile it with the command line compiler (csc.exe for C#), and sell or distribute the resulting program to anyone.

You pay for Visual Studio to get the additional features that Visual Studio provides.

share|improve this answer
even for commerce ! – Séddik Laraba Aug 29 '12 at 16:35
commerce?....... – Robert Harvey Aug 29 '12 at 16:35
sell it with no restrictions @Robert Harvey – Séddik Laraba Aug 29 '12 at 16:36
No restrictions. – Robert Harvey Aug 29 '12 at 16:37
Read the license. – Robert Harvey Aug 29 '12 at 16:40

You can even distribute commercial applications with their FREE Visual Studio Express products. There are no commercial restrictions in regards to the .NET framework. The only thing you cannot do is publish performance metrics of the .NET framework itself without Microsoft's permission.

Microsoft wants you to use their products to produce commercial software. They don't want their to be anything in the way of that. IF you like Visual Studio download the Express version.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.