Skip to content
An example of .net core with optional dependencies, because reading stack overflow was confusing the first time.
C#
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
OptionalDependency
OptionalDependencyDemo
PluginLibrary
.gitattributes
.gitignore
LICENSE
OptionalDependencyDemo.sln
README.md

README.md

.net Core Optional Dependencies

This solution provides an example of a project containing an additional implementation of an interface with as much type saftey as possible.

The printed text changes based on wether the entry assembly contains a reference to the optional dependency.

You can’t perform that action at this time.