-
Notifications
You must be signed in to change notification settings - Fork 0
SetModuleNameFilterPattern
Patrick edited this page Oct 19, 2016
·
6 revisions
While a Nugety catalog may contain many modules, it's possible to restrict the modules loaded by settig a filter pattern using the FileNameFilterPattern property.
In the following sample, Nugety will only discover modules which contain the word "Development".
var modules = new NugetyCatalog()
.Options.SetModuleNameFilterPattern("*Development*")
.FromDirectory()
.GetModules<IModuleInitializer>().Load();