Summary
Encapsulates an MSBuild project file and provides some information about it's format.
This class only parses the existing XML and does not perform any evaluation.
- Namespace
- Buildalyzer
.Construction - Base Types
-
- object
graph TD
Base0["object"]-->Type
Type["ProjectFile"]
class Type type-node
Syntax
public class ProjectFile
Fields
| Name | Constant Value | Summary |
|---|---|---|
| Imports |
These imports are known to require a .NET Framework host and build tools.
static
|
Properties
| Name | Value | Summary |
|---|---|---|
| Contains |
bool |
Whether the project file contains
PackageReference items.
|
| IsMultiTargeted | bool |
Whether the project file is multi-targeted.
|
| PackageReferences | IReadOnlyList |
The list of
PackageReference items in the project file.
|
| Path | string |
The full path to the project file.
|
| RequiresNetFramework | bool |
Whether the project file requires a .NET Framework host and build tools to build.
|
| TargetFrameworks | string[] |
The target framework(s) in the project file.
|
| ToolsVersion | string |
Gets the
ToolsVersion attribute of the Project element (or null if there isn't one).
|
| UsesSdk | bool |
Whether the project file uses an SDK.
|