From af1a266670d040d2f4083ff309d732d648afba2a Mon Sep 17 00:00:00 2001 From: Angelos Mouzakitis Date: Tue, 10 Oct 2023 14:33:42 +0000 Subject: Add submodule dependency files Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec --- meson/test cases/csharp/3 resource/TestRes.resx | 31 +++++++++++++++++++++++++ meson/test cases/csharp/3 resource/meson.build | 6 +++++ meson/test cases/csharp/3 resource/resprog.cs | 13 +++++++++++ 3 files changed, 50 insertions(+) create mode 100644 meson/test cases/csharp/3 resource/TestRes.resx create mode 100644 meson/test cases/csharp/3 resource/meson.build create mode 100644 meson/test cases/csharp/3 resource/resprog.cs (limited to 'meson/test cases/csharp/3 resource') diff --git a/meson/test cases/csharp/3 resource/TestRes.resx b/meson/test cases/csharp/3 resource/TestRes.resx new file mode 100644 index 000000000..c85f85c36 --- /dev/null +++ b/meson/test cases/csharp/3 resource/TestRes.resx @@ -0,0 +1,31 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +text/microsoft-resx1.3System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089Hello from resources! + \ No newline at end of file diff --git a/meson/test cases/csharp/3 resource/meson.build b/meson/test cases/csharp/3 resource/meson.build new file mode 100644 index 000000000..25b273d83 --- /dev/null +++ b/meson/test cases/csharp/3 resource/meson.build @@ -0,0 +1,6 @@ +project('C# resource', 'cs') + +e = executable('resprog', 'resprog.cs', +resources : 'TestRes.resx') + +test('restest', e) diff --git a/meson/test cases/csharp/3 resource/resprog.cs b/meson/test cases/csharp/3 resource/resprog.cs new file mode 100644 index 000000000..177201c08 --- /dev/null +++ b/meson/test cases/csharp/3 resource/resprog.cs @@ -0,0 +1,13 @@ +using System; +using System.Resources; + +public class Prog { + + static public void Main () { + ResourceManager res = new ResourceManager(typeof(TestRes)); + Console.WriteLine(res.GetString("message")); + } + + internal class TestRes { + } +} -- cgit