aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/dotnet/example_lib
diff options
context:
space:
mode:
Diffstat (limited to 'examples/dotnet/example_lib')
-rw-r--r--examples/dotnet/example_lib/BUILD13
-rw-r--r--examples/dotnet/example_lib/MyClass.cs19
-rw-r--r--examples/dotnet/example_lib/Properties/AssemblyInfo.cs27
3 files changed, 59 insertions, 0 deletions
diff --git a/examples/dotnet/example_lib/BUILD b/examples/dotnet/example_lib/BUILD
new file mode 100644
index 0000000000..0ec2cd7dab
--- /dev/null
+++ b/examples/dotnet/example_lib/BUILD
@@ -0,0 +1,13 @@
+load("/tools/build_defs/dotnet/csharp", "csharp_library")
+
+csharp_library(
+ name = "MyClass",
+ srcs = [
+ "MyClass.cs",
+ "Properties/AssemblyInfo.cs",
+ ],
+ visibility = ["//visibility:public"],
+ deps = [
+ "//examples/dotnet/example_transitive_lib:TransitiveClass",
+ ],
+)
diff --git a/examples/dotnet/example_lib/MyClass.cs b/examples/dotnet/example_lib/MyClass.cs
new file mode 100644
index 0000000000..8ff7c18d56
--- /dev/null
+++ b/examples/dotnet/example_lib/MyClass.cs
@@ -0,0 +1,19 @@
+using System;
+using System.Runtime.Remoting.Messaging;
+
+using example_transitive_lib;
+
+namespace example_lib
+{
+ public class MyClass
+ {
+ public string Message
+ {
+ get { return example_transitive_lib.TransitiveClass.Message; }
+ }
+
+ public MyClass()
+ {
+ }
+ }
+}
diff --git a/examples/dotnet/example_lib/Properties/AssemblyInfo.cs b/examples/dotnet/example_lib/Properties/AssemblyInfo.cs
new file mode 100644
index 0000000000..1e8e2dd20e
--- /dev/null
+++ b/examples/dotnet/example_lib/Properties/AssemblyInfo.cs
@@ -0,0 +1,27 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+
+// Information about this assembly is defined by the following attributes.
+// Change them to the values specific to your project.
+
+[assembly: AssemblyTitle("example_lib")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("")]
+[assembly: AssemblyCopyright("")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// The assembly version has the format "{Major}.{Minor}.{Build}.{Revision}".
+// The form "{Major}.{Minor}.*" will automatically update the build and revision,
+// and "{Major}.{Minor}.{Build}.*" will update just the revision.
+
+[assembly: AssemblyVersion("1.0.*")]
+
+// The following attributes are used to specify the signing key for the assembly,
+// if desired. See the Mono documentation for more information about signing.
+
+//[assembly: AssemblyDelaySign(false)]
+//[assembly: AssemblyKeyFile("")]
+