共用方式為


IVstaHelper Interface

Definition

Defines an interface implemented on Visual Studio Tools for Applications (VSTA) for building a Script task project.

public interface class IVstaHelper
public interface IVstaHelper
type IVstaHelper = interface
Public Interface IVstaHelper

Properties

SupportDebug

Gets or sets a value that indicates whether debugging is supported.

TemplateFilePrefix

Methods

AddFileToProject(String, String)

Adds a file to the project.

Build(String)

Builds the assembly for the project.

CleanUp()

Cleans up the data cache used by the last build process.

GetAssemblyBytes(String)

Gets the assembly bytes generated during the build process.

GetBuildErrors(String)

Gets the build errors.

Initalize(String, Boolean)

Initializes the project with default code and settings based on the applied configuration.

LoadNewProject(String, String, String)

Loads a new project.

LoadProjectFromFolder(String)

Loads an existing project from the specified folder.

LoadProjectFromStorage(VSTAScriptProjectStorage)

Loads an existing project from the specified storage.

LoadVSAProject(VSTAScriptProjectStorage, String, IEnumerable<String>, IEnumerable<String>)

Loads the project from the specified project file.

LoadVSTA2Project(VSTAScriptProjectStorage, IEnumerable<String>, IEnumerable<String>)

Upgrades and loads the project from the specified project file.

SaveProjectToStorage(VSTAScriptProjectStorage)

Saves the project to the specified storage.

ShowIde(String)

Launches the project in the integrated development environment (IDE).

StartDebugging()

Starts the project debugging.

StopDebugging()

Stops the project debugging.

WaitForDebuggerAttached()

Applies to