Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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

 

Initializes a new instance of InvalidProjectFileException class 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.BuildEngine
Assembly:  Microsoft.Build.Engine (in Microsoft.Build.Engine.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 an 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^

The error message text for the exception.

errorSubcategory
Type: System::String^

The description of the error. This parameter can be a null reference (Nothing in Visual Basic).

errorCode
Type: System::String^

The error code. This parameter can be a null reference (Nothing).

helpKeyword
Type: System::String^

The F1-help keyword for the host IDE. This parameter can be a null reference (Nothing).

This constructor is preferred over the basic constructors.

Return to top
Show:
© 2017 Microsoft