ProjectFile.

TargetFrameworks Property

Summary

The target framework(s) in the project file.
Namespace
Buildalyzer.Construction
Containing Type
ProjectFile

Syntax

public string[] TargetFrameworks { get; }

Remarks

This does not perform evaluation of the project file, only parsing. If TargetFramework or TargetFrameworks contains a property that needs to be evaluated, this will contain the pre-evaluated value(s). Try to find a TargetFrameworkIdentifier in the same PropertyGroup and if no TargetFrameworkIdentifier was found, assume ".NETFramework".

Value

Type Description
string[]