Introducing .NET Core
Link
https://www.linkedin.com/learning/introducing-dot-net-core/
Course notes from LinkedIn Learning.
What is .NET?
- A combination of languages (e.g. [[C Sharp|C#]]) and libraries (e.g. the .NET Framework or (Core) Runtime).
Installing .NET
- Download Visual Studio 2022 Community Edition for [Windows](…/Microsoft Windows/) (license terms), or download .NET Core and use [VS Code](…/Microsoft Visual Studio Code/).
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
- 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
- Playback of this episode terminated prematurely for me. The video/series is available on YouTube.
.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
- The XUnit testing library uses
[Fact]
attributes to designate methods as unit tests. - Other (unit) testing frameworks for .NET include:
.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.