This documentation is archived and is not being maintained.

OutputFileName Property

Visual Studio .NET 2003

Returns the name of the primary output file of the project. Read-only.

[Visual Basic .NET]
Public ReadOnly Property OutputFileName() As String
[Visual Basic 6]
Property Get OutputFileName() As String
HRESULT __stdcall get_OutputFileName(
   /* [out, retval] */ BSTR* retVal
string OutputFileName {get;}
[JScript .NET]
public function get OutputFileName() : String

Return Value

String. Output file name, without the path.


This read-only property is created by the project system using the AssemblyName property, the OutputType property, and the ProjectType property. The AssemblyName and OutputType properties are read-write. The ProjectType property is set by the project system when the project is created and is read-only.

The following table demonstrates how the output file name is constructed.

Project typeOutputFileName
Local project, Windows applicationAssemblyName.exe
Local project, Console applicationAssemblyName.exe
Local project, Class libraryAssemblyName.dll
Web projectAssemblyName.dll


See ProjectType Property.

See Also

General, Common Properties, <Projectname> Property Pages Dialog Box (Visual C#) | General, Common Properties, <Projectname> Property Pages Dialog Box (Visual Basic)

Applies To: Properties Property (General Extensibility) | Properties Property (Visual Basic and Visual C# Project Object)