project file
The XML file, such as Hello.csproj, that tells the build which SDK, target framework, packages and settings a project uses.
In more detail
A modern SDK-style project file is short because source files are included automatically. The four properties the course relies on are OutputType, TargetFramework, ImplicitUsings and Nullable. Treat it as reviewed source code, not a generated artefact.
Example
<Project Sdk="Microsoft.NET.Sdk">Related terms
- MSBuild — The build engine behind .NET that reads project files and runs the steps that restore packages, compile code and produce output.
- target framework — The project setting, such as net10.0, that names which version of the .NET API surface your code is compiled against.
- project SDK — The Sdk attribute at the top of a project file, such as Microsoft.NET.Sdk or Microsoft.NET.Sdk.Web, that imports a set of default build settings.
- solution — A file (.sln or the newer .slnx) that groups related .NET projects, such as an API, its libraries and its tests, so they can be opened and built together.
- XML — A text format that stores structured data as nested elements marked with tags in angle brackets, readable by both people and programs.
Taught in
- What is .NET? Runtime vs SDK, and LTS vs STS — Modern .NET Core, C# & Enterprise Microservices
- The C# Language: Types, Variables, and Flow Control — Modern .NET Core, C# & Enterprise Microservices
- Records, Pattern Matching, and Modern C# — Modern .NET Core, C# & Enterprise Microservices
- Solutions, Projects, and Target Frameworks — Modern .NET Core, C# & Enterprise Microservices
- Code Quality: .editorconfig and Roslyn Analyzers — Modern .NET Core, C# & Enterprise Microservices
- Environment Layering and User Secrets — Modern .NET Core, C# & Enterprise Microservices