.Net

Code Style @ Google

Reference materials

C# docs - get started, tutorials, reference.

The Little ASP.NET Core Book

Framework Design Guidelines

Choosing Between Class and Struct - Framework Design Guidelines

Code Style & Formatting

https://github.com/alirezanet/Husky.Net

https://github.com/dotnet/format

https://github.com/belav/csharpier

https://github.com/dotnet/roslyn-analyzers

Functional programming in C#

louthy/language-ext

On “Optional” in non-functional languages

https://twitter.com/geepawhill/status/1523523048464211969?s=21&t=lnZOAW73z1EcC3TlUy_eNA

Dacpac

Tips for .dacpac (SQL Server database project) deployment

Build (and publish) a .dacpac (SQL Server database project) with .NET Core - even on Linux or macOS!

Reverse engineering entity db project to entity models

Generate Entity Framework Core classes from a SQL Server database project - .dacpac file

— Containerise db project —

Data DevOps: Deploying SQL Server DACPACs to Docker

.sqlproj

https://github.com/rr-wfm/MSBuild.Sdk.SqlProj

publish

dotnet publish --self-contained -r osx-x64 -f netcoreapp3.1 -c Release /p:PublishTrimmed=true /p:PublishSingleFile=true -o publish path/to/project.csproj

Flags

--self-contained

Produces a stand-alone executable that does not require the .Net runtime on the target machine

-r

Target architecture, e.g. osx-x64, win-x64

-f

Target framework (also specified in the .csproj file

-c

Configuration, Debug or Release mode

/p:PublishTrimmed=true

Trims out unused framework assemblies

Trim self-contained applications - .NET

/p:PublishSingleFile=true

Bake all publish outputs into a single executable file

  • Seems to also be able to bake things like required external files e.g. CSVs or text files, that are included in the build - preserves path of these files as they exist in the solution

Many of these can be included as properties in the .csproj file

DDD with EF Core

Creating Domain-Driven Design entity classes with Entity Framework Core

Design Patterns

https://github.com/nemanjarogic/DesignPatternsLibrary

Testing

BDD in .NET

https://github.com/TestStack/TestStack.BDDfy