You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ERROR: /private/var/tmp/_bazel_khoang/9f5a7db50dde0c7fb645b28fc92c24eb/external/rules_dotnet/dotnet/private/semver.bzl:17:1: name 'visibility' is not defined ERROR: error loading package '': at /private/var/tmp/_bazel_khoang/9f5a7db50dde0c7fb645b28fc92c24eb/external/rules_dotnet/dotnet/rules_dotnet_nuget_packages.bzl:3:6: at /private/var/tmp/_bazel_khoang/9f5a7db50dde0c7fb645b28fc92c24eb/external/rules_dotnet/dotnet/defs.bzl:7:5: at /private/var/tmp/_bazel_khoang/9f5a7db50dde0c7fb645b28fc92c24eb/external/rules_dotnet/dotnet/private/rules/csharp/binary.bzl:8:5: at /private/var/tmp/_bazel_khoang/9f5a7db50dde0c7fb645b28fc92c24eb/external/rules_dotnet/dotnet/private/common.bzl:15:6: compilation of module 'dotnet/private/semver.bzl' failed
Question: Am I getting an "ERROR: /private/var/tmp/_bazel_khoang/9f5a7db50dde0c7fb645b28fc92c24eb/external/rules_dotnet/dotnet/private/semver.bzl:17:1: name 'visibility' is not defined" because it's trying to read from the private folder?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello all,
I'm trying to do a hello world application via bazel using c# dotnet core, but running into an error. Also, using https://github.com/bazelbuild/rules_dotnet/tree/master/examples/basic_csharp as a reference, but got lost at the part when setting up the targeting_packs field (plus https://github.com/bazelbuild/rules_dotnet/blob/master/docs/csharp_binary.md mentions that field is optional, yet it is required when building).
ERROR: /private/var/tmp/_bazel_khoang/9f5a7db50dde0c7fb645b28fc92c24eb/external/rules_dotnet/dotnet/private/semver.bzl:17:1: name 'visibility' is not defined
ERROR: error loading package '': at /private/var/tmp/_bazel_khoang/9f5a7db50dde0c7fb645b28fc92c24eb/external/rules_dotnet/dotnet/rules_dotnet_nuget_packages.bzl:3:6: at /private/var/tmp/_bazel_khoang/9f5a7db50dde0c7fb645b28fc92c24eb/external/rules_dotnet/dotnet/defs.bzl:7:5: at /private/var/tmp/_bazel_khoang/9f5a7db50dde0c7fb645b28fc92c24eb/external/rules_dotnet/dotnet/private/rules/csharp/binary.bzl:8:5: at /private/var/tmp/_bazel_khoang/9f5a7db50dde0c7fb645b28fc92c24eb/external/rules_dotnet/dotnet/private/common.bzl:15:6: compilation of module 'dotnet/private/semver.bzl' failed
Overall project layout:
Bazel version is 5.3.0
Console.Writeline("Hello World")
load("@rules_dotnet//dotnet:defs.bzl", "csharp_library")
csharp_library(
name = "hello",
srcs = ["hello.cs"],
target_frameworks = ["net7.0"],
targeting_packs = ["Microsoft.NETCore.App"]
)
Question: Am I getting an "
ERROR: /private/var/tmp/_bazel_khoang/9f5a7db50dde0c7fb645b28fc92c24eb/external/rules_dotnet/dotnet/private/semver.bzl:17:1: name 'visibility' is not defined
" because it's trying to read from the private folder?Beta Was this translation helpful? Give feedback.
All reactions