BuildContributorContext.Arguments 属性

定义

获取命令行参数及其值的字典。 在 SSDT 中生成时,在 .sqlproj 文件或引用的 .targets 文件中找到参数时可用。 例如,若要添加值为“true”的“RunMyContributor”参数,将添加以下内容:

<PropertyGroup><ContributorArguments Condition=“'$(Configuration)' == 'Debug''”> $(ContributorArguments);RunMyContributor=True; </ContributorArguments></PropertyGroup>

在这种情况下,只会为调试配置添加参数。 使用上述配置,可以从 MSBuild 环境中收集信息并将其传递给参与者。

public System.Collections.Generic.IDictionary<string,string> Arguments { get; }
member this.Arguments : System.Collections.Generic.IDictionary<string, string>
Public ReadOnly Property Arguments As IDictionary(Of String, String)

属性值

适用于