diff options
Diffstat (limited to 'examples/dotnet/example_transitive_lib')
3 files changed, 51 insertions, 0 deletions
diff --git a/examples/dotnet/example_transitive_lib/BUILD b/examples/dotnet/example_transitive_lib/BUILD new file mode 100644 index 0000000000..c6535d781c --- /dev/null +++ b/examples/dotnet/example_transitive_lib/BUILD @@ -0,0 +1,10 @@ +load("/tools/build_defs/dotnet/csharp", "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 new file mode 100644 index 0000000000..ebc927a51e --- /dev/null +++ b/examples/dotnet/example_transitive_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_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 new file mode 100644 index 0000000000..948fadb589 --- /dev/null +++ b/examples/dotnet/example_transitive_lib/TransitiveClass.cs @@ -0,0 +1,14 @@ +using System; +using System.Runtime.Remoting.Messaging; + +namespace example_transitive_lib +{ + public class TransitiveClass + { + public static string Message + { + get { return "Hello World!"; } + } + } +} + |