- Namespace
- Buildalyzer
- Base Types
-
- object
graph TD
Base0["object"]-->Type
Type["ProjectAnalyzer"]
class Type type-node
Syntax
public class ProjectAnalyzer
Properties
Name | Value | Summary |
---|---|---|
BuildLoggers | IEnumerable |
|
EnvironmentFactory | EnvironmentFactory | |
EnvironmentVariables | IReadOnlyDictionary |
The environment variables for MSBuild to be used for every build from this analyzer.
|
GlobalProperties | IReadOnlyDictionary |
The global properties for MSBuild to be used for every build from this analyzer.
|
IgnoreFaultyImports | bool |
Controls whether empty, invalid, and missing targets should be ignored during project load.
|
Logger | ILogger |
|
Manager | AnalyzerManager | |
ProjectFile | ProjectFile | |
ProjectGuid | Guid |
Gets a GUID for the project. This checks for a GUID from the
solution (if originally provided). If this isn't available, it
will generate a UUID GUID by hashing the project path relative to the solution path (so it's repeatable).
|
ProjectInSolution | ProjectInSolution | |
SolutionDirectory | string |
Methods
Name | Value | Summary |
---|---|---|
AddBinaryLogger |
void | |
AddBuildLogger |
void |
Adds an MSBuild logger to the build. Note that this may have a large penalty on build performance.
|
Build |
AnalyzerResults |
Builds the project without specifying a target framework. In a multi-targeted project this will return a
AnalyzerResult for each target framework.
|
Build |
AnalyzerResults |
Builds the project without specifying a target framework. In a multi-targeted project this will return a
AnalyzerResult for each target framework.
|
Build |
AnalyzerResults |
Builds the project without specifying a target framework. In a multi-targeted project this will return a
AnalyzerResult for each target framework.
|
Build |
AnalyzerResults |
Builds a specific target framework.
|
Build |
AnalyzerResults |
Builds a specific target framework.
|
Build |
AnalyzerResults |
Builds a specific target framework.
|
Build |
AnalyzerResults |
Builds the requested target framework(s).
|
Build |
AnalyzerResults |
Builds the requested target framework(s).
|
Build |
AnalyzerResults |
Builds the requested target framework(s).
|
RemoveBuildLogger |
void |
Removes an MSBuild logger from the build.
|
RemoveGlobalProperty |
void | |
Set |
void | |
SetGlobalProperty |
void |
Extension Methods
Name | Value | Summary |
---|---|---|
AddToWorkspace |
Project |
Adds a project to an existing Roslyn workspace. Note that this will rebuild the project. Use an
AnalyzerResult instead if you already have one available.
|
GetWorkspace |
AdhocWorkspace |
Gets a Roslyn workspace for the analyzed project. Note that this will rebuild the project. Use an
AnalyzerResult instead if you already have one available.
|