![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgf-8j2iuQnrvx468mq1720TQaOraPe-_NVnrctOHVTM__m5Gbo4qdWmUPRsOCgW56FUQg5UcvT_vh-6q5qdtfgvNY51VdA30up7xuuAb3biWOzNCzN4pJY_Rc9ChkOc-d1qWDixbR70CkzbK1F7ZCP28yLve3YrUVmLL4Q6X6oLK60Re2K9tPfPl7r0LSP/w640-h238/legacy-style-csproj-to-sdk-style-csproj.png)
I recently did this at work, and I decided to document the process here in the form of a how-to guide. Please note that I am not an expert, I am learning as I go along, so there may be mistakes.
Sdk-style project files have existed since net5. The kind of project files we were using before that can now be called legacy-style project files.
- Legacy-style project files begin with <Project ToolsVersion="...
- Sdk-style project files begin with <Project Sdk="Microsoft.NET.Sdk">.
Sdk-style project files are necessary if you want to:
- Start using the `dotnet` command-line utility and all the functionality that it provides.
- Eventually migrate to a modern version of dotnet.