Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

InputFile Property

Visual Studio .NET 2003

Returns the filename to use when including this reference in a build. For a managed reference, this is the same as the output file.

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

Return Value

A string representing the filename to use when including this reference in a build.


Applies to ActiveX references. Represents the same value as the ControlFullPath Property.


' Add a reference to Microsoft.VisualStudio.VCProjectEngine and have a 
' Visual C++ .NET project loaded before running this example.
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine
Public Module Module1
Sub Test()
        Dim prj As VCProject
        Dim vcar As VCAssemblyReference
        Dim refcfg As VCReferenceConfiguration

        prj = DTE.Solution.Projects.Item(1).Object
        If prj.CanAddAssemblyReference("d:\winnt\microsoft.net _
          \framework\v1.1.4322\envdte.dll") Then
            vcar = prj.AddAssemblyReference("d:\winnt\microsoft.net _
        End If
        refcfg = vcar.ReferenceConfigurations.Item(1)
        MsgBox("Input file: " & refcfg.InputFile)
    End Sub
End Module

See Samples for Project Model Extensibility for information on how to compile and run this sample.

See Also

Applies To: VCReferenceConfiguration Object

© 2015 Microsoft