ProjectFile.

RequiresNetFramework Property

Summary

Whether the project file requires a .NET Framework host and build tools to build.
Namespace
Buildalyzer.Construction
Containing Type
ProjectFile

Syntax

public bool RequiresNetFramework { get; }

Remarks

Checks for an Import element with a Project attribute ending with one of the targets in ImportsThatRequireNetFramework. Also looks for a LanguageTargets ending with one of the targets in ImportsThatRequireNetFramework. Projects that use these targets are known not to build under a .NET Core host or build tools. Also checks for a ToolsVersion attribute and uses the .NET Framework if one is found.

Value

Type Description
bool