Put your C#, VB and F# projects and packaging on a diet
summary
Shows how to convert old csproj and packages.config to the SDK-style project system using the dotnet CLI, Visual Studio and VS Code, reducing a real project file from ~371 to ~75 lines and eliminating explicit file lists. Demonstrates moving to PackageReference and centralizing versions with Directory.Build.targets, turning on GeneratePackageOnBuild, including portable PDBs, using PrivateAssets and copying project references into tool packages, and enabling SourceLink via SourceLink.* packages. Demos build and debug successfully, with notes on output-path and content-file behavior.
AI-written summary · about
chapters (11)
- 0:00Start
- 6:25Migrate an Existing Project
- 7:19Project File
- 10:21Command Line Tool
- 13:47Add a Project Reference
- 14:02Embedded Resources
- 21:20Sdk Attribute
- 22:57Looking at Generating Files as Part of the Build Process and How They'Re Included
- 38:06Adding another Package Reference
- 38:59Add Support for Source Link
- 41:00Source Code for Asp Net Core
related talks
45mKeeping it DRYer with Templates
01h 01mModern day C# development in Visual Studio 2019
45mLess is more—a build pipeline for the modern age
01h 01mModern day C# development in Visual Studio 2019
54mVSCode for the C# Developer
53mTools and practices to help you deal with legacy code
01h 15mModernizing and Upgrading your .NET Apps with Visual Studio
01h 04mFAKE + Paket – PowerTools for .NET Developers
