blob: aad8f14c139b41ccfe8424f11abe35d9e15e52e5 [file] [log] [blame]
/*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
{namespace prebuilt_dotnet_library}
/***/
{template .soyweb}
{call buck.page}
{param title: 'prebuilt_dotnet_library()' /}
{param navid: 'rule_prebuilt_dotnet_library' /}
{param prettify: true /}
{param description}
A prebuilt_dotnet_library() rule is used to include prebuilt .Net assembles.
{/param}
{param content}
{call buck.rule}
{param status: 'UNFROZEN' /}
{param overview}
A <code>prebuilt_dotnet_library()</code> rule is used to include
prebuilt .Net assembles into your .Net code.
{/param}
{param args}
{call buck.name_arg /}
{call buck.arg}
{param name: 'assembly' /}
{param desc}
The path to the DLL that this rule provides.
{/param}
{/call}
{call buck.visibility_arg /}
{/param} // close args
{param examples}
{literal}<pre class="prettyprint lang-py">
prebuilt_dotnet_library(
name = 'log4net',
assembly = 'log4net.dll',
)
csharp_library(
name = 'example',
srcs = [
'Hello.cs',
],
framework_ver = 'net46',
deps = [
':log4net',
'System.dll',
],
)
</pre>{/literal}
{/param}
{/call} // close buck.rule
{/param}
{/call}
{/template}