Click or drag to resize

MSBuildProjectLoader Class



An API for loading msbuild project files.
Inheritance Hierarchy
SystemObject
  Microsoft.CodeAnalysis.MSBuildMSBuildProjectLoader

Namespace:  Microsoft.CodeAnalysis.MSBuild
Assembly:  Microsoft.CodeAnalysis.Workspaces.Desktop (in Microsoft.CodeAnalysis.Workspaces.Desktop.dll) Version: 2.3.0-dev-56735-00. Commit Hash: <developer build>
Syntax
public class MSBuildProjectLoader

The MSBuildProjectLoader type exposes the following members.

Constructors
  NameDescription
Public methodMSBuildProjectLoader
Create a new instance of an MSBuildProjectLoader.
Top
Properties
  NameDescription
Public propertyLoadMetadataForReferencedProjects
Determines if metadata from existing output assemblies is loaded instead of opening referenced projects. If the referenced project is already opened, the metadata will not be loaded. If the metadata assembly cannot be found the referenced project will be opened instead.
Public propertyProperties
The MSBuild properties used when interpreting project files. These are the same properties that are passed to msbuild via the /property:<n>=<v> command line argument.
Public propertySkipUnrecognizedProjects
Determines if unrecognized projects are skipped when solutions or projects are opened. A project is unrecognized if it either has a) an invalid file path, b) a non-existent project file, c) has an unrecognized file extension or d) a file extension associated with an unsupported language. If unrecognized projects cannot be skipped a corresponding exception is thrown.
Top
Methods
  NameDescription
Public methodAssociateFileExtensionWithLanguage
Associates a project file extension with a language name.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodLoadProjectInfoAsync
Loads the ProjectInfo from the specified project file and all referenced projects. The first ProjectInfo in the result corresponds to the specified project file.
Public methodLoadSolutionInfoAsync
Loads the SolutionInfo for the specified solution file, including all projects referenced by the solution file and all the projects referenced by the project files.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top
See Also