-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathBUILD
41 lines (36 loc) · 958 Bytes
/
BUILD
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
load("@d2l_rules_csharp//csharp:defs.bzl", "csharp_library")
# This example comes from docs/MultiTargetingDesign.md.
# It demonstrates how framework selection works, and why, sometimes, we compile
# more things than we need to ship, but in the same way as MSBuild. This
# example isn't meant to be realistic.
csharp_library(
name = "Top",
srcs = ["Top.cs"],
target_frameworks = ["net48"],
deps = [
"Left",
"Right",
],
)
csharp_library(
name = "Left",
srcs = ["Left.cs"],
target_frameworks = ["net45"],
deps = ["Bottom"],
)
csharp_library(
name = "Right",
srcs = ["Right.cs"],
target_frameworks = ["netstandard2.0"],
deps = ["Bottom"],
)
csharp_library(
name = "Bottom",
srcs = ["Bottom.cs"],
include_stdrefs = False, # TODO: remove this when we support netstandard1.4's stdlib
target_frameworks = [
"net48",
"net40",
"netstandard1.4",
],
)