diff --git a/test/source/WithArgs/Program.cs b/test/source/WithArgs/Program.cs new file mode 100644 index 0000000..2d1da6c --- /dev/null +++ b/test/source/WithArgs/Program.cs @@ -0,0 +1,22 @@ +using System; +using System.IO; +using System.Reflection; + +namespace WithArgs +{ + internal static class Program + { + public static void Main(string[] args) + { + Console.WriteLine($"[*] Hello World from `{Assembly.GetExecutingAssembly().FullName}`!"); + Console.WriteLine($"[*] I was given {args.Length} arguments"); + + foreach (var s in args) + { + Console.WriteLine($"___ ({s.Length}) {s}"); + } + + Console.WriteLine(); + } + } +} \ No newline at end of file diff --git a/test/source/WithArgs/Properties/AssemblyInfo.cs b/test/source/WithArgs/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..9cdcec6 --- /dev/null +++ b/test/source/WithArgs/Properties/AssemblyInfo.cs @@ -0,0 +1,35 @@ +using System.Reflection; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("WithArgs")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("WithArgs")] +[assembly: AssemblyCopyright("Copyright © 2023")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("35B9B737-1F96-49D5-A40B-AFF21AA282B4")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] \ No newline at end of file diff --git a/test/source/WithArgs/WithArgs.csproj b/test/source/WithArgs/WithArgs.csproj new file mode 100644 index 0000000..018fa47 --- /dev/null +++ b/test/source/WithArgs/WithArgs.csproj @@ -0,0 +1,92 @@ + + + + + Debug + AnyCPU + {35B9B737-1F96-49D5-A40B-AFF21AA282B4} + Exe + Properties + WithArgs + WithArgs + v4.0 + 512 + true + + + AnyCPU + true + full + false + ..\..\assemblies\debug + DEBUG;TRACE + prompt + 4 + with_args_any + + + x86 + true + full + false + ..\..\assemblies\debug + DEBUG;TRACE + prompt + 4 + with_args_x86 + + + x64 + true + full + false + ..\..\assemblies\debug + DEBUG;TRACE + prompt + 4 + with_args_x64 + + + AnyCPU + pdbonly + true + ..\..\assemblies\release + TRACE + prompt + 4 + with_args_any + + + x86 + pdbonly + true + ..\..\assemblies\release + TRACE + prompt + 4 + with_args_x86 + + + x64 + pdbonly + true + ..\..\assemblies\release + TRACE + prompt + 4 + with_args_x64 + + + + + + + + + + + + + + diff --git a/test/source/WithExit/Program.cs b/test/source/WithExit/Program.cs new file mode 100644 index 0000000..4d83699 --- /dev/null +++ b/test/source/WithExit/Program.cs @@ -0,0 +1,20 @@ +using System; +using System.Reflection; + +namespace WithExit +{ + internal class Program + { + public static void Main(string[] args) + { + Console.WriteLine($"[*] Hello World from `{Assembly.GetExecutingAssembly().FullName}`!"); + Console.WriteLine("[*] I very much hope to live past `System.Environment.Exit`!"); + Console.WriteLine(); + + Environment.Exit(-1); + + Console.WriteLine("[!] I am still alive!"); + Console.WriteLine(); + } + } +} \ No newline at end of file diff --git a/test/source/WithExit/Properties/AssemblyInfo.cs b/test/source/WithExit/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..3c8461c --- /dev/null +++ b/test/source/WithExit/Properties/AssemblyInfo.cs @@ -0,0 +1,35 @@ +using System.Reflection; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("WithExit")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("WithExit")] +[assembly: AssemblyCopyright("Copyright © 2023")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("B12614DA-180F-43BA-87DC-9D1EC06553EB")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] \ No newline at end of file diff --git a/test/source/WithExit/WithExit.csproj b/test/source/WithExit/WithExit.csproj new file mode 100644 index 0000000..bbc83f8 --- /dev/null +++ b/test/source/WithExit/WithExit.csproj @@ -0,0 +1,99 @@ + + + + + Debug + AnyCPU + {B12614DA-180F-43BA-87DC-9D1EC06553EB} + Exe + Properties + WithExit + WithExit + v4.0 + 512 + true + + + AnyCPU + true + full + false + ..\..\assemblies\debug + DEBUG;TRACE + prompt + 4 + with_exit_any + + + x86 + true + full + false + ..\..\assemblies\debug + DEBUG;TRACE + prompt + 4 + with_exit_x86 + + + x64 + true + full + false + ..\..\assemblies\debug + DEBUG;TRACE + prompt + 4 + with_exit_x64 + + + AnyCPU + pdbonly + true + ..\..\assemblies\release + TRACE + prompt + 4 + with_exit_any + + + x86 + pdbonly + true + ..\..\assemblies\release + TRACE + prompt + 4 + with_exit_x86 + + + x64 + pdbonly + true + ..\..\assemblies\release + TRACE + prompt + 4 + with_exit_x64 + + + + + + + + + + + + + + + diff --git a/test/source/WithoutArgs/Program.cs b/test/source/WithoutArgs/Program.cs new file mode 100644 index 0000000..630d817 --- /dev/null +++ b/test/source/WithoutArgs/Program.cs @@ -0,0 +1,18 @@ +using System; +using System.IO; +using System.Reflection; + +namespace WithoutArgs +{ + internal static class Program + { + public static void Main() + { + Console.WriteLine($"[*] Hello World from `{Assembly.GetExecutingAssembly().FullName}`!"); + Console.WriteLine("[*] I have no arguments and live a happy life!"); + Console.WriteLine("[*] Bye!"); + + Console.WriteLine(); + } + } +} \ No newline at end of file diff --git a/test/source/WithoutArgs/Properties/AssemblyInfo.cs b/test/source/WithoutArgs/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..e99c58e --- /dev/null +++ b/test/source/WithoutArgs/Properties/AssemblyInfo.cs @@ -0,0 +1,35 @@ +using System.Reflection; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("WithoutArgs")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("WithoutArgs")] +[assembly: AssemblyCopyright("Copyright © 2023")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("F00BC7FE-5BBD-4DD4-B535-4EEA102DF37B")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] \ No newline at end of file diff --git a/test/source/WithoutArgs/WithoutArgs.csproj b/test/source/WithoutArgs/WithoutArgs.csproj new file mode 100644 index 0000000..df802ff --- /dev/null +++ b/test/source/WithoutArgs/WithoutArgs.csproj @@ -0,0 +1,99 @@ + + + + + Debug + AnyCPU + {F00BC7FE-5BBD-4DD4-B535-4EEA102DF37B} + Exe + Properties + WithoutArgs + WithoutArgs + v4.0 + 512 + true + + + AnyCPU + true + full + false + ..\..\assemblies\debug + DEBUG;TRACE + prompt + 4 + without_args_any + + + x86 + true + full + false + ..\..\assemblies\debug + DEBUG;TRACE + prompt + 4 + without_args_x86 + + + x64 + true + full + false + ..\..\assemblies\debug + DEBUG;TRACE + prompt + 4 + without_args_x64 + + + AnyCPU + pdbonly + true + ..\..\assemblies\release + TRACE + prompt + 4 + without_args_any + + + x86 + pdbonly + true + ..\..\assemblies\release + TRACE + prompt + 4 + without_args_x86 + + + x64 + pdbonly + true + ..\..\assemblies\release + TRACE + prompt + 4 + without_args_x64 + + + + + + + + + + + + + + + diff --git a/test/source/test.sln b/test/source/test.sln new file mode 100644 index 0000000..5be2ab6 --- /dev/null +++ b/test/source/test.sln @@ -0,0 +1,58 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WithArgs", "WithArgs\WithArgs.csproj", "{35B9B737-1F96-49D5-A40B-AFF21AA282B4}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WithoutArgs", "WithoutArgs\WithoutArgs.csproj", "{F00BC7FE-5BBD-4DD4-B535-4EEA102DF37B}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WithExit", "WithExit\WithExit.csproj", "{B12614DA-180F-43BA-87DC-9D1EC06553EB}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Debug|x86 = Debug|x86 + Debug|x64 = Debug|x64 + Release|Any CPU = Release|Any CPU + Release|x86 = Release|x86 + Release|x64 = Release|x64 + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {35B9B737-1F96-49D5-A40B-AFF21AA282B4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {35B9B737-1F96-49D5-A40B-AFF21AA282B4}.Debug|Any CPU.Build.0 = Debug|Any CPU + {35B9B737-1F96-49D5-A40B-AFF21AA282B4}.Debug|x86.ActiveCfg = Debug|x86 + {35B9B737-1F96-49D5-A40B-AFF21AA282B4}.Debug|x86.Build.0 = Debug|x86 + {35B9B737-1F96-49D5-A40B-AFF21AA282B4}.Debug|x64.ActiveCfg = Debug|x64 + {35B9B737-1F96-49D5-A40B-AFF21AA282B4}.Debug|x64.Build.0 = Debug|x64 + {35B9B737-1F96-49D5-A40B-AFF21AA282B4}.Release|Any CPU.ActiveCfg = Release|Any CPU + {35B9B737-1F96-49D5-A40B-AFF21AA282B4}.Release|Any CPU.Build.0 = Release|Any CPU + {35B9B737-1F96-49D5-A40B-AFF21AA282B4}.Release|x86.ActiveCfg = Release|x86 + {35B9B737-1F96-49D5-A40B-AFF21AA282B4}.Release|x86.Build.0 = Release|x86 + {35B9B737-1F96-49D5-A40B-AFF21AA282B4}.Release|x64.ActiveCfg = Release|x64 + {35B9B737-1F96-49D5-A40B-AFF21AA282B4}.Release|x64.Build.0 = Release|x64 + + {F00BC7FE-5BBD-4DD4-B535-4EEA102DF37B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F00BC7FE-5BBD-4DD4-B535-4EEA102DF37B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F00BC7FE-5BBD-4DD4-B535-4EEA102DF37B}.Debug|x86.ActiveCfg = Debug|x86 + {F00BC7FE-5BBD-4DD4-B535-4EEA102DF37B}.Debug|x86.Build.0 = Debug|x86 + {F00BC7FE-5BBD-4DD4-B535-4EEA102DF37B}.Debug|x64.ActiveCfg = Debug|x64 + {F00BC7FE-5BBD-4DD4-B535-4EEA102DF37B}.Debug|x64.Build.0 = Debug|x64 + {F00BC7FE-5BBD-4DD4-B535-4EEA102DF37B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F00BC7FE-5BBD-4DD4-B535-4EEA102DF37B}.Release|Any CPU.Build.0 = Release|Any CPU + {F00BC7FE-5BBD-4DD4-B535-4EEA102DF37B}.Release|x86.ActiveCfg = Release|x86 + {F00BC7FE-5BBD-4DD4-B535-4EEA102DF37B}.Release|x86.Build.0 = Release|x86 + {F00BC7FE-5BBD-4DD4-B535-4EEA102DF37B}.Release|x64.ActiveCfg = Release|x64 + {F00BC7FE-5BBD-4DD4-B535-4EEA102DF37B}.Release|x64.Build.0 = Release|x64 + + {B12614DA-180F-43BA-87DC-9D1EC06553EB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {B12614DA-180F-43BA-87DC-9D1EC06553EB}.Debug|Any CPU.Build.0 = Debug|Any CPU + {B12614DA-180F-43BA-87DC-9D1EC06553EB}.Debug|x86.ActiveCfg = Debug|x86 + {B12614DA-180F-43BA-87DC-9D1EC06553EB}.Debug|x86.Build.0 = Debug|x86 + {B12614DA-180F-43BA-87DC-9D1EC06553EB}.Debug|x64.ActiveCfg = Debug|x64 + {B12614DA-180F-43BA-87DC-9D1EC06553EB}.Debug|x64.Build.0 = Debug|x64 + {B12614DA-180F-43BA-87DC-9D1EC06553EB}.Release|Any CPU.ActiveCfg = Release|Any CPU + {B12614DA-180F-43BA-87DC-9D1EC06553EB}.Release|Any CPU.Build.0 = Release|Any CPU + {B12614DA-180F-43BA-87DC-9D1EC06553EB}.Release|x86.ActiveCfg = Release|x86 + {B12614DA-180F-43BA-87DC-9D1EC06553EB}.Release|x86.Build.0 = Release|x86 + {B12614DA-180F-43BA-87DC-9D1EC06553EB}.Release|x64.ActiveCfg = Release|x64 + {B12614DA-180F-43BA-87DC-9D1EC06553EB}.Release|x64.Build.0 = Release|x64 + EndGlobalSection +EndGlobal