Method WithDefaultReferences
WithDefaultReferences(ScriptTechnologyEnvironment, bool, bool)
When implemented by a class, set default assembly references to the script source.
IScriptSource WithDefaultReferences(ScriptTechnologyEnvironment technology = ScriptTechnologyEnvironment.WindowsForms, bool keepExisting = false, bool minimal = false)
Parameters
technology
ScriptTechnologyEnvironmentSpecifies technology environment.
keepExisting
boolSpecifies whether existing assemblies should be persisted.
minimal
boolIn case of .NET Core, adds minimal set of references
Returns
- IScriptSource
Modified IScrptSource instance