aboutsummaryrefslogtreecommitdiffhomepage
path: root/examples/dotnet
diff options
context:
space:
mode:
Diffstat (limited to 'examples/dotnet')
-rw-r--r--examples/dotnet/example_binary/BUILD12
-rw-r--r--examples/dotnet/example_binary/Program.cs14
-rw-r--r--examples/dotnet/example_binary/Properties/AssemblyInfo.cs27
-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
-rw-r--r--examples/dotnet/example_test/BUILD11
-rw-r--r--examples/dotnet/example_test/MyTest.cs24
-rw-r--r--examples/dotnet/example_transitive_lib/BUILD10
-rw-r--r--examples/dotnet/example_transitive_lib/Properties/AssemblyInfo.cs27
-rw-r--r--examples/dotnet/example_transitive_lib/TransitiveClass.cs14
11 files changed, 0 insertions, 198 deletions
diff --git a/examples/dotnet/example_binary/BUILD b/examples/dotnet/example_binary/BUILD
deleted file mode 100644
index 0b9263c5dc..0000000000
--- a/examples/dotnet/example_binary/BUILD
+++ /dev/null
@@ -1,12 +0,0 @@
-load("//tools/build_defs/dotnet:csharp.bzl", "csharp_binary")
-
-csharp_binary(
- name = "hello",
- srcs = [
- "Program.cs",
- "Properties/AssemblyInfo.cs",
- ],
- deps = [
- "//examples/dotnet/example_lib:MyClass",
- ],
-)
diff --git a/examples/dotnet/example_binary/Program.cs b/examples/dotnet/example_binary/Program.cs
deleted file mode 100644
index 7780823347..0000000000
--- a/examples/dotnet/example_binary/Program.cs
+++ /dev/null
@@ -1,14 +0,0 @@
-using System;
-using example_lib;
-
-namespace example_binary
-{
- class MainClass
- {
- public static void Main(string[] args)
- {
- var mc = new MyClass();
- Console.WriteLine(mc.Message);
- }
- }
-}
diff --git a/examples/dotnet/example_binary/Properties/AssemblyInfo.cs b/examples/dotnet/example_binary/Properties/AssemblyInfo.cs
deleted file mode 100644
index d7700ef2b3..0000000000
--- a/examples/dotnet/example_binary/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-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_binary")]
-[assembly: AssemblyDescription("")]
-[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("VAE Inc")]
-[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("")]
-
diff --git a/examples/dotnet/example_lib/BUILD b/examples/dotnet/example_lib/BUILD
deleted file mode 100644
index ad1b2b1466..0000000000
--- a/examples/dotnet/example_lib/BUILD
+++ /dev/null
@@ -1,13 +0,0 @@
-load("//tools/build_defs/dotnet:csharp.bzl", "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
deleted file mode 100644
index 8ff7c18d56..0000000000
--- a/examples/dotnet/example_lib/MyClass.cs
+++ /dev/null
@@ -1,19 +0,0 @@
-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
deleted file mode 100644
index 1e8e2dd20e..0000000000
--- a/examples/dotnet/example_lib/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-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("")]
-
diff --git a/examples/dotnet/example_test/BUILD b/examples/dotnet/example_test/BUILD
deleted file mode 100644
index 41613cfb21..0000000000
--- a/examples/dotnet/example_test/BUILD
+++ /dev/null
@@ -1,11 +0,0 @@
-load("//tools/build_defs/dotnet:csharp.bzl", "csharp_nunit_test")
-
-csharp_nunit_test(
- name = "MyTest",
- srcs = [
- "MyTest.cs",
- ],
- deps = [
- "//examples/dotnet/example_lib:MyClass",
- ],
-)
diff --git a/examples/dotnet/example_test/MyTest.cs b/examples/dotnet/example_test/MyTest.cs
deleted file mode 100644
index d5d5d3e5c7..0000000000
--- a/examples/dotnet/example_test/MyTest.cs
+++ /dev/null
@@ -1,24 +0,0 @@
-using System;
-
-using NUnit.Framework;
-
-using example_lib;
-
-namespace example_test
-{
- [TestFixture]
- public class MyTest
- {
- [Test]
- public void MyTest1()
- {
- Assert.That("foo", Is.EqualTo("Foo"));
- }
-
- [Test]
- public void MyTest2()
- {
- Assert.That("bar", Is.EqualTo("bar"));
- }
- }
-} \ No newline at end of file
diff --git a/examples/dotnet/example_transitive_lib/BUILD b/examples/dotnet/example_transitive_lib/BUILD
deleted file mode 100644
index b210b7ac53..0000000000
--- a/examples/dotnet/example_transitive_lib/BUILD
+++ /dev/null
@@ -1,10 +0,0 @@
-load("//tools/build_defs/dotnet:csharp.bzl", "csharp_library")
-
-csharp_library(
- name = "TransitiveClass",
- srcs = [
- "Properties/AssemblyInfo.cs",
- "TransitiveClass.cs",
- ],
- visibility = ["//visibility:public"],
-)
diff --git a/examples/dotnet/example_transitive_lib/Properties/AssemblyInfo.cs b/examples/dotnet/example_transitive_lib/Properties/AssemblyInfo.cs
deleted file mode 100644
index ebc927a51e..0000000000
--- a/examples/dotnet/example_transitive_lib/Properties/AssemblyInfo.cs
+++ /dev/null
@@ -1,27 +0,0 @@
-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_transitive_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("")]
-
diff --git a/examples/dotnet/example_transitive_lib/TransitiveClass.cs b/examples/dotnet/example_transitive_lib/TransitiveClass.cs
deleted file mode 100644
index 948fadb589..0000000000
--- a/examples/dotnet/example_transitive_lib/TransitiveClass.cs
+++ /dev/null
@@ -1,14 +0,0 @@
-using System;
-using System.Runtime.Remoting.Messaging;
-
-namespace example_transitive_lib
-{
- public class TransitiveClass
- {
- public static string Message
- {
- get { return "Hello World!"; }
- }
- }
-}
-