VCLinkerTool.MidlCommandFile 属性

指定让 MIDL 命令使用的响应文件。

命名空间:  Microsoft.VisualStudio.VCProjectEngine
程序集:  Microsoft.VisualStudio.VCProjectEngine(在 Microsoft.VisualStudio.VCProjectEngine.dll 中)

语法

声明
Property MidlCommandFile As String
string MidlCommandFile { get; set; }
property String^ MidlCommandFile {
    String^ get ();
    void set (String^ value);
}
abstract MidlCommandFile : string with get, set
function get MidlCommandFile () : String 
function set MidlCommandFile (value : String)

属性值

类型:String
一个表示响应文件的名称的字符串。

备注

MidlCommandFile 公开 /MIDL(指定 MIDL 命令行选项) 链接器选项的功能。

MidlCommandFile 还可用于指定命令放入响应文件。

有关如何编译和运行此示例的信息,请参见 如何:编译项目模型扩展性示例代码

示例

下面的示例在集成开发环境 (IDE) 中修改 MidlCommandFile 属性:

' add reference to Microsoft.VisualStudio.VCProjectEngine
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine

Public Module Module1
  Sub Test()
    Dim prj As VCProject
    Dim cfgs, tools As IVCCollection
    Dim cfg As VCConfiguration
    Dim tool As VCLinkerTool
    prj = DTE.Solution.Projects.Item(1).Object
    cfgs = prj.Configurations
    cfg = cfgs.Item(1)
    tool = cfg.Tools("VCLinkerTool")
    tool.MidlCommandFile = "c:\a.rsp"
  End Sub
End Module

.NET Framework 安全性

请参阅

参考

VCLinkerTool 接口

Microsoft.VisualStudio.VCProjectEngine 命名空间