Documentation
¶
Overview ¶
Package csharp implements compile checking for C#.code samples.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Check ¶
Check sets up the C# compile check, satisfying checked.Func. It wraps each snippet into its own namespace, allowing them all to compile within the sample library. A Docker image is created with: * mono, which is a .NET runtime and C# compiler. * The dotnet CLI, which is a package manager and C# build system. * All the namespace-wrapped snippet source files. The Docker image is built and executed, which returns the build status as a standard exit code from docker.
func Init ¶
Init performs the C#-specific, language-independent initialization. This involves setting up a Docker image (`languageImageName`) and running as much of its set-up as possible. The actual checks will fork off this image to test specific APIs. If `force` is set, the image will be created from scratch unconditionally; otherwise, `languageImageName` will be created only if it doesn't already exist.
Types ¶
This section is empty.