Provides the context for the build process that is used by BuildContributor objects during project build. See documentation for the Arguments and ExtensionFiles properties for information on how to specify these inside a project file.
继承层次结构
System.Object
Microsoft.SqlServer.Dac.Deployment.BuildContributorContext
命名空间: Microsoft.SqlServer.Dac.Deployment
程序集: Microsoft.SqlServer.Dac.Extensions(在 Microsoft.SqlServer.Dac.Extensions.dll 中)
语法
声明
Public NotInheritable Class BuildContributorContext
用法
Dim instance As BuildContributorContext
public sealed class BuildContributorContext
public ref class BuildContributorContext sealed
[<SealedAttribute>]
type BuildContributorContext = class end
public final class BuildContributorContext
BuildContributorContext 类型公开以下成员。
构造函数
名称 | 说明 | |
---|---|---|
![]() |
BuildContributorContext | Initializes a new instance of the BuildContributorContext class. |
页首
属性
名称 | 说明 | |
---|---|---|
![]() |
Arguments | Gets a dictionary of command-line arguments and their values. When building in SSDT, arguments are available when found in a .sqlproj file or a referenced .targets file. For instance to add a "RunMyContributor" argument with a value of "true", the following would be added: <PropertyGroup> <ContributorArguments Condition="'$(Configuration)' == 'Debug''"> $(ContributorArguments);RunMyContributor=True; </ContributorArguments> </PropertyGroup>In this case the argument is only added for Debug configuration. Using the above configuration it is possible to collect information from the MSBuild environment and pass it to the contributor. |
![]() |
BuildProperties | Gets a dictionary of named properties and their values |
![]() |
ExtensionFiles | Gets an array of ITaskItem representing Files from the project system which influence the build contributors. Input configuration files can be defined in a .sqlproj file as part of the MSBuild process. Inside a .sqproj file, Build Configuration files are specified as follows: <ItemGroup> <BuildExtensionConfiguration Include="MyContributorName.MyFileName1.sql" /> <BuildExtensionConfiguration Include="MyContributorName.MyFileName2.sql" /> </ItemGroup.>Note that configuration files are accessible to all contributors. Contributors may employ a file naming pattern to identify which input files related to that contributor. |
![]() |
Model | Gets the TSqlModel of the project |
页首
方法
名称 | 说明 | |
---|---|---|
![]() |
Equals | (从 Object 继承。) |
![]() |
GetHashCode | (从 Object 继承。) |
![]() |
GetType | (从 Object 继承。) |
![]() |
ToString | (从 Object 继承。) |
页首
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。不保证所有实例成员都是线程安全的。