Project

A project is the organised collection of files that make up a program. It gives a programming tool — like a compiler or an IDE — everything it needs to build and run your code.

What a Project Contains#

At minimum, a project contains your source code files — the files where you write instructions for the computer. Most projects also include a configuration file that describes the project: what language it uses, which version, and how it should be built.

Some tools also generate a solution file that groups one or more projects together. This is common in larger programs where different parts of the code are separated into distinct projects that work together.

Why Projects Exist#

You could technically write a single file of code and run it directly. For small experiments, that works fine. But as programs grow, you need a way to organise files, manage dependencies, and tell your tools what to do with everything. A project provides that structure.

Think of it like a folder for a school assignment — the folder itself doesn’t do anything, but it keeps everything in the right place so the teacher (or in this case, the compiler) can find it.

Projects in IDEs#

An Integrated Development Environment typically works with projects rather than individual files. When you open a project in an IDE, it reads the configuration file to understand the structure, then gives you features like error detection, autocomplete, and a run button — all scoped to that project.

Common Mistakes#

Editing files outside the project folder

If you save a source code file outside the project folder, your IDE and build tools won’t know it exists. Always create and save files inside the project folder.

Confusing the project folder with a parent folder

The project folder is the one that contains the configuration file (e.g. .csproj, package.json, pyproject.toml). Opening a parent folder in your IDE instead of the project folder can cause features like autocomplete and the run button to stop working correctly.

Deleting the configuration file by accident

The configuration file is what makes a folder a project. If you delete it, your IDE may stop recognising the folder as a project. Don’t rename or delete files you didn’t create yourself until you understand what they do.

Resources#