Table of Contents

Method RegisterAssemblies

Namespace
Alternet.Editor.Roslyn
Assembly
Alternet.Editor.Roslyn.v10.dll

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

extension string

Project's default file extension, like ".cs".

references string[]

List of assembly names.

technology TechnologyEnvironment?

Specifies technology environment.

keepExisting bool

Specifies whether existing assemblies should be preserved.

projectName string

Project's name to process.

targetFramework TargetFramework

Specifies target framework.

RegisterAssemblies(IScriptEdit, string[])

Register assemblies in the project.

public static void RegisterAssemblies(this IScriptEdit edit, string[] references)

Parameters

edit IScriptEdit

IScriptEdit that contains the source code.

references string[]

List of references to register.