Table of Contents

Interface IScriptSource

Namespace
Alternet.Scripter
Assembly
Alternet.Scripter.v9.dll

Represents methods and properties to work with script text, files or projects.

public interface IScriptSource : IScriptSourceBase, ICloneable, IEquatable<IScriptSource>

Properties

Changed

When implemented by a class, gets or sets boolean value indicating if script source has been modified since last compilation.

Conditionals

When implemented by a class, gets list of conditional compilation symbols.

Files

When implemented by a class, gets list of files containing script to execute.

FrameworkPath

When implemented by a class, gets location of .NET Framework assemblies.

Imports

When implemented by a class, gets list of namespaces to be used in the script.

IsWpfProject

When implemented by a class, returns boolean value indicating whether ScriptSource contains a Wpf project

Language

When implemented by a class, returns script programming language.

ProjectName

When implemented by a class, gets or sets name of the Visual Studio project containing script files to execute.

ProjectTargetFramework

When implemented by a class, gets a TargetFramework related to the project stored in this script source.

Properties

When implemented by a class, gets additional properties to be used in code generation.

References

When implemented by a class, gets list of external assemblies referenced from the script.

Resources

When implemented by a class, gets list of embedded resource files.

RootNamespace

When implemented by a class, gets or sets root namespace to be used for manifest resources.

SearchPaths

When implemented by a class, gets list of search directories to look for source files and referenced assemblies.

WpfResources

When implemented by a class, gets list of wpf resource files.

Methods

FromExpression(string)

When implemented by a class, loads script source from the expression.

FromScriptCode(string)

When implemented by a class, loads script source from the script code.

FromScriptCode(string, string)

When implemented by a class, loads script source from the script code.

FromScriptFile(string)

When implemented by a class, loads script source from the script file.

FromScriptProject(string)

When implemented by a class, loads script source from the Visual Studio project.

GetLastModifiedDate(string)

When implemented by a class, gets file date time when script source was compiled.

HasBeenModified(IScriptSource)

When implemented by a class, compares file modification dates against to other script source.

Reset()

When implemented by a class, clears script source.

WithDefaultReferences(ScriptTechnologyEnvironment, bool, bool)

When implemented by a class, set default assembly references to the script source.