InvalidProjectFileException.LineNumber Property

Definition

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.ConstructionMicrosoft.Build.EvaluationMicrosoft.Build.Execution Gets the invalid line number (if any) in the project.

C#
public int LineNumber { get; }
C#
public int LineNumber { [System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")] get; }

Property Value

The invalid line number, or zero.

Attributes

Remarks

Avertissement

This method (and the whole namespace) is deprecated. Please use the classes in these namespaces instead: Microsoft.Build.Construction Microsoft.Build.Evaluation Microsoft.Build.Execution

Applies to

Produit Versions
MSBuild 17
MSBuild (.NET Core) 17