Method RegisterAssemblies
RegisterAssemblies(string, string[], TechnologyEnvironment?, bool, string, TargetFramework)
Replaces assemblies in the project with new ones.
public static void RegisterAssemblies(string extension, string[] references, TechnologyEnvironment? technology = null, bool keepExisting = false, string projectName = null, TargetFramework targetFramework = null)
Parameters
extensionstringProject's default file extension, like ".cs".
referencesstring[]List of assembly names.
technologyTechnologyEnvironment?Specifies technology environment.
keepExistingboolSpecifies whether existing assemblies should be preserved.
projectNamestringProject's name to process.
targetFrameworkTargetFrameworkSpecifies target framework.
RegisterAssemblies(IScriptEdit, string[])
Register assemblies in the project.
public static void RegisterAssemblies(this IScriptEdit edit, string[] references)
Parameters
editIScriptEditIScriptEdit that contains the source code.
referencesstring[]List of references to register.