Introducing .NET Core
https://www.linkedin.com/learning/introducing-dot-net-core/
Course notes from LinkedIn Learning.
What is .NET?
Section titled “What is .NET?”Installing .NET
Section titled “Installing .NET”- Download Visual Studio 2022 Community Edition for Windows (license terms), or download .NET Core and use VS Code.
What is a .NET Hello World app?
Section titled “What is a .NET Hello World app?”- The video mentions a “C# 101” series. That can be found on YouTube or Microsoft Learn.
.NET: Basic debugging
Section titled “.NET: Basic debugging”- Set breakpoints by clicking to the left of the line number in Visual Studio, and start debugging by clicking the green “Play” button in the toolbar.
- Breakpoints can be set to only trigger when certain conditions are met.
- The Debug target compiles executables for debugging, while the Release target creates optimized code for shipping to users.
.NET: Adding a class library
Section titled “.NET: Adding a class library”- Playback of this episode terminated prematurely for me. The video/series is available on YouTube.
.NET: Using a NuGet package
Section titled “.NET: Using a NuGet package”- NuGet is a package manager for .NET libraries. Packages can be browsed on the NuGet Gallery.
- Packages can be added as dependencies by right-clicking a project in Visual Studio and selecting “Manage NuGet packages”.
.NET: Unit testing
Section titled “.NET: Unit testing”- The XUnit testing library uses
[Fact]attributes to designate methods as unit tests. - Other (unit) testing frameworks for .NET include:
.NET: Publishing an app
Section titled “.NET: Publishing an app”- Console applications can be published “self-contained” (with all dependencies), in which case the target OS does not need .NET (Core) to be installed beforehand.