BuildContributorContext.Arguments Propiedad

Definición

Obtiene un diccionario de argumentos de línea de comandos y sus valores. Al compilar en SSDT, los argumentos están disponibles cuando se encuentran en un archivo .sqlproj o en un archivo .targets al que se hace referencia. Por ejemplo, para agregar un argumento "RunMyContributor" con un valor "true", se agregaría lo siguiente:

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

En este caso, el argumento solo se agrega para la configuración de depuración. Con la configuración anterior, es posible recopilar información del entorno de MSBuild y pasarla al colaborador.

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)

Valor de propiedad

Se aplica a