forked from bazel-contrib/rules_dotnet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WORKSPACE
67 lines (52 loc) · 1.51 KB
/
WORKSPACE
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
workspace(name = "io_bazel_rules_dotnet")
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
load(
"//dotnet:defs.bzl",
"DEFAULT_DOTNET_CORE_FRAMEWORK",
"DOTNET_CORE_FRAMEWORKS",
"DOTNET_NET_FRAMEWORKS",
"core_register_sdk",
"dotnet_nuget_new",
"dotnet_register_toolchains",
"dotnet_repositories",
"mono_register_sdk",
"net_gac4",
"net_register_sdk",
"nuget_package",
"vs2017_ref_net",
)
dotnet_repositories()
dotnet_register_toolchains()
mono_register_sdk()
[net_register_sdk(
framework,
) for framework in DOTNET_NET_FRAMEWORKS]
[core_register_sdk(
framework,
) for framework in DOTNET_CORE_FRAMEWORKS]
# Default core_sdk
core_register_sdk(
DEFAULT_DOTNET_CORE_FRAMEWORK,
name = "core_sdk",
)
# Default net_sdk
net_register_sdk(
"net471",
name = "net_sdk",
)
net_gac4(
name = "System.ComponentModel.DataAnnotations",
token = "31bf3856ad364e35",
version = "4.0.0.0",
)
# The rule is left as an example. It is commented out, because our CI server doesn't have VS2017 installed
# vs2017_ref_net(name = "vs2017_ref")
load("@io_bazel_rules_dotnet//tests:bazel_tests.bzl", "test_environment")
test_environment()
# local_repository(
# name = "io_bazel_rules_dotnet_3rd_party",
# #path = "/home/nest-user/work/gopath/rules_dotnet",
# path = "c:/rules_dotnet_3rd_party",
# )
# load("@io_bazel_rules_dotnet_3rd_party//:repositories.bzl", "rules_dotnet_3rd_party_dependencies")
# rules_dotnet_3rd_party_dependencies()