Open source
Open source means that software is under a license that allows you to see the source code and to use, change, and pass it on. What counts is the Open Source Definition of the Open Source Initiative with its ten criteria.
Open source means that software is under a license that discloses the source code and allows you to use, change, and pass it on. What counts as open source is set by the Open Source Definition of the Open Source Initiative (OSI).
What the definition requires
The Open Source Definition consists of ten criteria. By their titles, they are: free redistribution, source code, derived works, integrity of the author's source code, no discrimination against persons or groups, no discrimination against fields of endeavor, distribution of license, license must not be specific to a product, license must not restrict other software, and license must be technology-neutral.
What decides is the license, not the visibility. A repository that anyone can read is not yet open source. Without a license, you lack the explicit permission to use the code. And "free of charge" is something other than "open source".
Open source in everyday .NET work
.NET itself is free, cross-platform, and open source, a project of the .NET Foundation that Microsoft and the community maintain on GitHub. The source code and the binaries are under the MIT license, although further licenses can apply on Windows. ASP.NET Core, the runtime, and the SDK live in public repositories.
For your work, this means two things:
- You can look up what a library does and follow errors into the source code in the debugger.
- You are responsible for dependencies. Every NuGet package brings its license and its maintenance along. Whoever uses a package should check its license, activity, and known security vulnerabilities; that is part of securing the supply chain.
Between Microsoft and open source, the line is fluid: some of the tools you use every day are open source, others are not. The license is always stated in the repository or package in question.
An example from the Kladde
The tests of the Kladde, the sample application of a small IT office, run tools that do not come from Microsoft and are published as open source under the MIT license, such as bUnit for Blazor components and Playwright for the browser test. Each lesson says where a tool comes from and which license it is under.
Common misconceptions
- Open source is not the same as public domain. The license sets conditions, such as shipping the license text along.
- Open source does not mean unmaintained. How well a project is maintained is a question of its own.
- One license does not apply to everything. A project can contain parts under other terms.
In the course
The academy has no module of its own on open source. But you meet the topic with the packages: in K2, module 2.7, in Component tests with bUnit and An end-to-end test with Playwright, and in K3, module 3.3, in Securing the supply chain.
Further reading on the blog
Sources
- Open Source Initiative, The Open Source Definition: https://opensource.org/osd
- Microsoft Learn, Introduction to .NET: https://learn.microsoft.com/dotnet/core/introduction