InvalidProjectFileException Constructor (String, Int32, Int32, Int32, Int32, String, String, String, String)

InvalidProjectFileException Constructor (String, Int32, Int32, Int32, Int32, String, String, String, String)

 

Creates an instance of this exception using rich error information.

MSBuild is now included in Visual Studio instead of the .NET Framework. You can use MSBuild 12.0 side-by-side with versions previously deployed with the .NET Framework.For more information, see What's New in MSBuild 12.0.

Namespace:   Microsoft.Build.Exceptions
Assembly:  Microsoft.Build (in Microsoft.Build.dll)

public InvalidProjectFileException(
	string projectFile,
	int lineNumber,
	int columnNumber,
	int endLineNumber,
	int endColumnNumber,
	string message,
	string errorSubcategory,
	string errorCode,
	string helpKeyword
)

Parameters

projectFile
Type: System.String

The invalid project file (can be empty string).

lineNumber
Type: System.Int32

The invalid line number in the project (set to zero if not available).

columnNumber
Type: System.Int32

The invalid column number in the project (set to zero if not available).

endLineNumber
Type: System.Int32

The end of a range of invalid lines in the project (set to zero if not available).

endColumnNumber
Type: System.Int32

The end of a range of invalid columns in the project (set to zero if not available).

message
Type: System.String

Error message for exception.

errorSubcategory
Type: System.String

Error sub-category that describes the error (can be null).

errorCode
Type: System.String

The error code (can be null).

helpKeyword
Type: System.String

The F1-help keyword for the host IDE (can be null).

This constructor is preferred over the basic constructors.

Return to top
Show:
© 2016 Microsoft