Buck: prebuilt_dotnet_library()

prebuilt_dotnet_library()

This is liable to change in the future.

A prebuilt_dotnet_library() rule is used to include prebuilt .Net assembles into your .Net code.

Arguments

  • name (required) #

    The name of the rule.

  • assembly (required) #

    The path to the DLL that this rule provides.

  • visibility (defaults to []) #

    List of build target patterns that identify the build rules that can include this rule in its deps.

  • visibility (defaults to []) #

    List of build target patterns that identify the build rules that can include this rule in its deps.

  • licenses (defaults to []) #

    Set of license files for this library. To get the list of license files for a given build rule and all of its dependencies, you can use buck query.

  • labels (defaults to []) #

    Set of arbitrary strings which allow you to annotate a build rule with tags that can be searched for over an entire dependency tree using buck query attrfilter.

Examples

prebuilt_dotnet_library(
  name = 'log4net',
  assembly = 'log4net.dll',
)

csharp_library(
  name = 'example',
  srcs = [
    'Hello.cs',
  ],
  framework_ver = 'net46',
  deps = [
    ':log4net',
    'System.dll',
  ],
)