Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added oob console and winforms support

  • Loading branch information...
commit 3d59179571f3aa236e21a583562852c66dc3d53d 1 parent 916b930
Adrian Aisemberg authored
17 CLAP.sln
View
@@ -7,6 +7,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleTest", "ConsoleTest\
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests", "Tests\Tests.csproj", "{63D887CB-655A-4FA1-A8B8-38A28613A707}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WinFormTest", "WinFormTest\WinFormTest.csproj", "{20D947B0-A9E4-480B-A24C-5D8621D4A59B}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -67,6 +69,21 @@ Global
{63D887CB-655A-4FA1-A8B8-38A28613A707}.Release20|Mixed Platforms.ActiveCfg = Release20|Any CPU
{63D887CB-655A-4FA1-A8B8-38A28613A707}.Release20|Mixed Platforms.Build.0 = Release20|Any CPU
{63D887CB-655A-4FA1-A8B8-38A28613A707}.Release20|x86.ActiveCfg = Release20|Any CPU
+ {20D947B0-A9E4-480B-A24C-5D8621D4A59B}.Debug|Any CPU.ActiveCfg = Debug|x86
+ {20D947B0-A9E4-480B-A24C-5D8621D4A59B}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
+ {20D947B0-A9E4-480B-A24C-5D8621D4A59B}.Debug|Mixed Platforms.Build.0 = Debug|x86
+ {20D947B0-A9E4-480B-A24C-5D8621D4A59B}.Debug|x86.ActiveCfg = Debug|x86
+ {20D947B0-A9E4-480B-A24C-5D8621D4A59B}.Debug|x86.Build.0 = Debug|x86
+ {20D947B0-A9E4-480B-A24C-5D8621D4A59B}.Release|Any CPU.ActiveCfg = Release|x86
+ {20D947B0-A9E4-480B-A24C-5D8621D4A59B}.Release|Mixed Platforms.ActiveCfg = Release|x86
+ {20D947B0-A9E4-480B-A24C-5D8621D4A59B}.Release|Mixed Platforms.Build.0 = Release|x86
+ {20D947B0-A9E4-480B-A24C-5D8621D4A59B}.Release|x86.ActiveCfg = Release|x86
+ {20D947B0-A9E4-480B-A24C-5D8621D4A59B}.Release|x86.Build.0 = Release|x86
+ {20D947B0-A9E4-480B-A24C-5D8621D4A59B}.Release20|Any CPU.ActiveCfg = Release|x86
+ {20D947B0-A9E4-480B-A24C-5D8621D4A59B}.Release20|Mixed Platforms.ActiveCfg = Release|x86
+ {20D947B0-A9E4-480B-A24C-5D8621D4A59B}.Release20|Mixed Platforms.Build.0 = Release|x86
+ {20D947B0-A9E4-480B-A24C-5D8621D4A59B}.Release20|x86.ActiveCfg = Release|x86
+ {20D947B0-A9E4-480B-A24C-5D8621D4A59B}.Release20|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
4 CLAP/CLAP.csproj
View
@@ -78,10 +78,14 @@
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
+ <Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="CollectionValidationAttribute.cs" />
+ <Compile Include="Parser.WinForms.cs" />
+ <Compile Include="EnvironmentParserHandlers.cs" />
+ <Compile Include="Parser.Console.cs" />
<Compile Include="CoverageExcludeAttribute.cs" />
<Compile Include="ErrorAttribute.cs" />
<Compile Include="ExceptionContext.cs" />
33 CLAP/EnvironmentParserHandlers.cs
View
@@ -0,0 +1,33 @@
+using System;
+using System.Diagnostics;
+using System.Windows.Forms;
+
+namespace CLAP
+{
+ internal static class EnvironmentParserHandlers
+ {
+ internal static MultiParser Console(this MultiParser parser)
+ {
+ parser.Register.HelpHandler("help,h,?", help => System.Console.WriteLine(help));
+ parser.Register.EmptyHelpHandler(help => System.Console.WriteLine(help));
+ parser.Register.ParameterHandler("debug", () => Debugger.Launch());
+ parser.Register.ErrorHandler(c =>
+ {
+ System.Console.ForegroundColor = ConsoleColor.White;
+ System.Console.WriteLine(c.Exception.Message);
+ System.Console.ResetColor();
+ });
+
+ return parser;
+ }
+
+ internal static MultiParser WinForms(this MultiParser parser)
+ {
+ parser.Register.HelpHandler("help,h,?", help => MessageBox.Show(help));
+ parser.Register.ParameterHandler("debug", () => Debugger.Launch());
+ parser.Register.ErrorHandler(c => MessageBox.Show(c.Exception.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error));
+
+ return parser;
+ }
+ }
+}
240 CLAP/Parser.Console.cs
View
@@ -0,0 +1,240 @@
+using System.Diagnostics;
+using System.Linq;
+
+namespace CLAP
+{
+ public partial class Parser
+ {
+ /// <summary>
+ /// Executes a console parser of instance-verbs based on the specified targets
+ /// </summary>
+ /// <param name="args">The user arguments</param>
+ /// <param name="targets">The instances of the verb classes</param>
+ public static void RunConsole(string[] args, params object[] targets)
+ {
+ Debug.Assert(targets.Any());
+ Debug.Assert(targets.All(t => t != null));
+
+ var p = new Parser(targets.Select(t => t.GetType()).ToArray()).Console();
+
+ ((MultiParser)p).RunTargets(args, targets);
+ }
+
+ /// <summary>
+ /// Executes a generic console static parser of a specified type
+ /// </summary>
+ /// <typeparam name="T">The type of the parser</typeparam>
+ /// <param name="args">The user arguments</param>
+ public static void RunConsole<T>(string[] args)
+ { new Parser<T>().Console().RunStatic(args); }
+
+ /// <summary>
+ /// Executes a generic console parser of a specified type
+ /// </summary>
+ /// <typeparam name="T">The type of the parser</typeparam>
+ /// <param name="args">The user arguments</param>
+ /// <param name="t">An instance of the verb class</param>
+ public static void RunConsole<T>(string[] args, T t)
+ { new Parser<T>().Console().RunTargets(args, t); }
+
+ /// <summary>
+ /// Executes a generic console static parser of some specified types
+ /// </summary>
+ /// <param name="args">The user arguments</param>
+ public static void RunConsole<T1, T2>(string[] args)
+ { new Parser<T1, T2>().Console().RunStatic(args); }
+
+ /// <summary>
+ /// Executes a generic console parser of some specified types
+ /// </summary>
+ /// <typeparam name="T1">The type of the parser</typeparam>
+ /// <typeparam name="T2">The type of the parser</typeparam>
+ /// <param name="args">The user arguments</param>
+ /// <param name="t1">An instance of the verb class</param>
+ /// <param name="t2">An instance of the verb class</param>
+ public static void RunConsole<T1, T2>(string[] args, T1 t1, T2 t2)
+ { new Parser<T1, T2>().Console().RunTargets(args, t1, t2); }
+
+ /// <summary>
+ /// Executes a generic console static parser of some specified types
+ /// </summary>
+ /// <param name="args">The user arguments</param>
+ public static void RunConsole<T1, T2, T3>(string[] args)
+ { new Parser<T1, T2, T3>().Console().RunStatic(args); }
+
+ /// <summary>
+ /// Executes a generic console parser of some specified types
+ /// </summary>
+ /// <typeparam name="T1">The type of the parser</typeparam>
+ /// <typeparam name="T2">The type of the parser</typeparam>
+ /// <typeparam name="T3">The type of the parser</typeparam>
+ /// <param name="args">The user arguments</param>
+ /// <param name="t1">An instance of the verb class</param>
+ /// <param name="t2">An instance of the verb class</param>
+ /// <param name="t3">An instance of the verb class</param>
+ public static void RunConsole<T1, T2, T3>(string[] args, T1 t1, T2 t2, T3 t3)
+ { new Parser<T1, T2, T3>().Console().RunTargets(args, t1, t2, t3); }
+
+ /// <summary>
+ /// Executes a generic console static parser of some specified types
+ /// </summary>
+ /// <param name="args">The user arguments</param>
+ public static void RunConsole<T1, T2, T3, T4>(string[] args)
+ { new Parser<T1, T2, T3, T4>().Console().RunStatic(args); }
+
+ /// <summary>
+ /// Executes a generic console parser of some specified types
+ /// </summary>
+ /// <typeparam name="T1">The type of the parser</typeparam>
+ /// <typeparam name="T2">The type of the parser</typeparam>
+ /// <typeparam name="T3">The type of the parser</typeparam>
+ /// <typeparam name="T4">The type of the parser</typeparam>
+ /// <param name="args">The user arguments</param>
+ /// <param name="t1">An instance of the verb class</param>
+ /// <param name="t2">An instance of the verb class</param>
+ /// <param name="t3">An instance of the verb class</param>
+ /// <param name="t4">An instance of the verb class</param>
+ public static void RunConsole<T1, T2, T3, T4>(string[] args, T1 t1, T2 t2, T3 t3, T4 t4)
+ { new Parser<T1, T2, T3, T4>().Console().RunTargets(args, t1, t2, t3, t4); }
+
+ /// <summary>
+ /// Executes a generic console static parser of some specified types
+ /// </summary>
+ /// <param name="args">The user arguments</param>
+ public static void RunConsole<T1, T2, T3, T4, T5>(string[] args)
+ { new Parser<T1, T2, T3, T4, T5>().Console().RunStatic(args); }
+
+ /// <summary>
+ /// Executes a generic console parser of some specified types
+ /// </summary>
+ /// <typeparam name="T1">The type of the parser</typeparam>
+ /// <typeparam name="T2">The type of the parser</typeparam>
+ /// <typeparam name="T3">The type of the parser</typeparam>
+ /// <typeparam name="T4">The type of the parser</typeparam>
+ /// <typeparam name="T5">The type of the parser</typeparam>
+ /// <param name="args">The user arguments</param>
+ /// <param name="t1">An instance of the verb class</param>
+ /// <param name="t2">An instance of the verb class</param>
+ /// <param name="t3">An instance of the verb class</param>
+ /// <param name="t4">An instance of the verb class</param>
+ /// <param name="t5">An instance of the verb class</param>
+ public static void RunConsole<T1, T2, T3, T4, T5>(string[] args, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5)
+ { new Parser<T1, T2, T3, T4, T5>().Console().RunTargets(args, t1, t2, t3, t4, t5); }
+
+ /// <summary>
+ /// Executes a generic console static parser of some specified types
+ /// </summary>
+ /// <param name="args">The user arguments</param>
+ public static void RunConsole<T1, T2, T3, T4, T5, T6>(string[] args)
+ { new Parser<T1, T2, T3, T4, T5, T6>().Console().RunStatic(args); }
+
+ /// <summary>
+ /// Executes a generic console parser of some specified types
+ /// </summary>
+ /// <typeparam name="T1">The type of the parser</typeparam>
+ /// <typeparam name="T2">The type of the parser</typeparam>
+ /// <typeparam name="T3">The type of the parser</typeparam>
+ /// <typeparam name="T4">The type of the parser</typeparam>
+ /// <typeparam name="T5">The type of the parser</typeparam>
+ /// <typeparam name="T6">The type of the parser</typeparam>
+ /// <param name="args">The user arguments</param>
+ /// <param name="t1">An instance of the verb class</param>
+ /// <param name="t2">An instance of the verb class</param>
+ /// <param name="t3">An instance of the verb class</param>
+ /// <param name="t4">An instance of the verb class</param>
+ /// <param name="t5">An instance of the verb class</param>
+ /// <param name="t6">An instance of the verb class</param>
+ public static void RunConsole<T1, T2, T3, T4, T5, T6>(string[] args, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6)
+ { new Parser<T1, T2, T3, T4, T5, T6>().Console().RunTargets(args, t1, t2, t3, t4, t5, t6); }
+
+ /// <summary>
+ /// Executes a generic console static parser of some specified types
+ /// </summary>
+ /// <param name="args">The user arguments</param>
+ public static void RunConsole<T1, T2, T3, T4, T5, T6, T7>(string[] args)
+ { new Parser<T1, T2, T3, T4, T5, T6, T7>().Console().RunStatic(args); }
+
+ /// <summary>
+ /// Executes a generic console parser of some specified types
+ /// </summary>
+ /// <typeparam name="T1">The type of the parser</typeparam>
+ /// <typeparam name="T2">The type of the parser</typeparam>
+ /// <typeparam name="T3">The type of the parser</typeparam>
+ /// <typeparam name="T4">The type of the parser</typeparam>
+ /// <typeparam name="T5">The type of the parser</typeparam>
+ /// <typeparam name="T6">The type of the parser</typeparam>
+ /// <typeparam name="T7">The type of the parser</typeparam>
+ /// <param name="args">The user arguments</param>
+ /// <param name="t1">An instance of the verb class</param>
+ /// <param name="t2">An instance of the verb class</param>
+ /// <param name="t3">An instance of the verb class</param>
+ /// <param name="t4">An instance of the verb class</param>
+ /// <param name="t5">An instance of the verb class</param>
+ /// <param name="t6">An instance of the verb class</param>
+ /// <param name="t7">An instance of the verb class</param>
+ public static void RunConsole<T1, T2, T3, T4, T5, T6, T7>(string[] args, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7)
+ { new Parser<T1, T2, T3, T4, T5, T6, T7>().Console().RunTargets(args, t1, t2, t3, t4, t5, t6, t7); }
+
+ /// <summary>
+ /// Executes a generic console static parser of some specified types
+ /// </summary>
+ /// <param name="args">The user arguments</param>
+ public static void RunConsole<T1, T2, T3, T4, T5, T6, T7, T8>(string[] args)
+ { new Parser<T1, T2, T3, T4, T5, T6, T7, T8>().Console().RunStatic(args); }
+
+ /// <summary>
+ /// Executes a generic console parser of some specified types
+ /// </summary>
+ /// <typeparam name="T1">The type of the parser</typeparam>
+ /// <typeparam name="T2">The type of the parser</typeparam>
+ /// <typeparam name="T3">The type of the parser</typeparam>
+ /// <typeparam name="T4">The type of the parser</typeparam>
+ /// <typeparam name="T5">The type of the parser</typeparam>
+ /// <typeparam name="T6">The type of the parser</typeparam>
+ /// <typeparam name="T7">The type of the parser</typeparam>
+ /// <typeparam name="T8">The type of the parser</typeparam>
+ /// <param name="args">The user arguments</param>
+ /// <param name="t1">An instance of the verb class</param>
+ /// <param name="t2">An instance of the verb class</param>
+ /// <param name="t3">An instance of the verb class</param>
+ /// <param name="t4">An instance of the verb class</param>
+ /// <param name="t5">An instance of the verb class</param>
+ /// <param name="t6">An instance of the verb class</param>
+ /// <param name="t7">An instance of the verb class</param>
+ /// <param name="t8">An instance of the verb class</param>
+ public static void RunConsole<T1, T2, T3, T4, T5, T6, T7, T8>(string[] args, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8)
+ { new Parser<T1, T2, T3, T4, T5, T6, T7, T8>().Console().RunTargets(args, t1, t2, t3, t4, t5, t6, t7, t8); }
+
+ /// <summary>
+ /// Executes a generic console static parser of some specified types
+ /// </summary>
+ /// <param name="args">The user arguments</param>
+ public static void RunConsole<T1, T2, T3, T4, T5, T6, T7, T8, T9>(string[] args)
+ { new Parser<T1, T2, T3, T4, T5, T6, T7, T8, T9>().Console().RunStatic(args); }
+
+ /// <summary>
+ /// Executes a generic console parser of some specified types
+ /// </summary>
+ /// <typeparam name="T1">The type of the parser</typeparam>
+ /// <typeparam name="T2">The type of the parser</typeparam>
+ /// <typeparam name="T3">The type of the parser</typeparam>
+ /// <typeparam name="T4">The type of the parser</typeparam>
+ /// <typeparam name="T5">The type of the parser</typeparam>
+ /// <typeparam name="T6">The type of the parser</typeparam>
+ /// <typeparam name="T7">The type of the parser</typeparam>
+ /// <typeparam name="T8">The type of the parser</typeparam>
+ /// <typeparam name="T9">The type of the parser</typeparam>
+ /// <param name="args">The user arguments</param>
+ /// <param name="t1">An instance of the verb class</param>
+ /// <param name="t2">An instance of the verb class</param>
+ /// <param name="t3">An instance of the verb class</param>
+ /// <param name="t4">An instance of the verb class</param>
+ /// <param name="t5">An instance of the verb class</param>
+ /// <param name="t6">An instance of the verb class</param>
+ /// <param name="t7">An instance of the verb class</param>
+ /// <param name="t8">An instance of the verb class</param>
+ /// <param name="t9">An instance of the verb class</param>
+ public static void RunConsole<T1, T2, T3, T4, T5, T6, T7, T8, T9>(string[] args, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9)
+ { new Parser<T1, T2, T3, T4, T5, T6, T7, T8, T9>().Console().RunTargets(args, t1, t2, t3, t4, t5, t6, t7, t8, t9); }
+ }
+}
240 CLAP/Parser.WinForms.cs
View
@@ -0,0 +1,240 @@
+using System.Diagnostics;
+using System.Linq;
+
+namespace CLAP
+{
+ public partial class Parser
+ {
+ /// <summary>
+ /// Executes a winforms parser of instance-verbs based on the specified targets
+ /// </summary>
+ /// <param name="args">The user arguments</param>
+ /// <param name="targets">The instances of the verb classes</param>
+ public static void RunWinForms(string[] args, params object[] targets)
+ {
+ Debug.Assert(targets.Any());
+ Debug.Assert(targets.All(t => t != null));
+
+ var p = new Parser(targets.Select(t => t.GetType()).ToArray()).WinForms();
+
+ ((MultiParser)p).RunTargets(args, targets);
+ }
+
+ /// <summary>
+ /// Executes a generic winforms static parser of a specified type
+ /// </summary>
+ /// <typeparam name="T">The type of the parser</typeparam>
+ /// <param name="args">The user arguments</param>
+ public static void RunWinForms<T>(string[] args)
+ { new Parser<T>().WinForms().RunStatic(args); }
+
+ /// <summary>
+ /// Executes a generic winforms parser of a specified type
+ /// </summary>
+ /// <typeparam name="T">The type of the parser</typeparam>
+ /// <param name="args">The user arguments</param>
+ /// <param name="t">An instance of the verb class</param>
+ public static void RunWinForms<T>(string[] args, T t)
+ { new Parser<T>().WinForms().RunTargets(args, t); }
+
+ /// <summary>
+ /// Executes a generic winforms static parser of some specified types
+ /// </summary>
+ /// <param name="args">The user arguments</param>
+ public static void RunWinForms<T1, T2>(string[] args)
+ { new Parser<T1, T2>().WinForms().RunStatic(args); }
+
+ /// <summary>
+ /// Executes a generic winforms parser of some specified types
+ /// </summary>
+ /// <typeparam name="T1">The type of the parser</typeparam>
+ /// <typeparam name="T2">The type of the parser</typeparam>
+ /// <param name="args">The user arguments</param>
+ /// <param name="t1">An instance of the verb class</param>
+ /// <param name="t2">An instance of the verb class</param>
+ public static void RunWinForms<T1, T2>(string[] args, T1 t1, T2 t2)
+ { new Parser<T1, T2>().WinForms().RunTargets(args, t1, t2); }
+
+ /// <summary>
+ /// Executes a generic winforms static parser of some specified types
+ /// </summary>
+ /// <param name="args">The user arguments</param>
+ public static void RunWinForms<T1, T2, T3>(string[] args)
+ { new Parser<T1, T2, T3>().WinForms().RunStatic(args); }
+
+ /// <summary>
+ /// Executes a generic winforms parser of some specified types
+ /// </summary>
+ /// <typeparam name="T1">The type of the parser</typeparam>
+ /// <typeparam name="T2">The type of the parser</typeparam>
+ /// <typeparam name="T3">The type of the parser</typeparam>
+ /// <param name="args">The user arguments</param>
+ /// <param name="t1">An instance of the verb class</param>
+ /// <param name="t2">An instance of the verb class</param>
+ /// <param name="t3">An instance of the verb class</param>
+ public static void RunWinForms<T1, T2, T3>(string[] args, T1 t1, T2 t2, T3 t3)
+ { new Parser<T1, T2, T3>().WinForms().RunTargets(args, t1, t2, t3); }
+
+ /// <summary>
+ /// Executes a generic winforms static parser of some specified types
+ /// </summary>
+ /// <param name="args">The user arguments</param>
+ public static void RunWinForms<T1, T2, T3, T4>(string[] args)
+ { new Parser<T1, T2, T3, T4>().WinForms().RunStatic(args); }
+
+ /// <summary>
+ /// Executes a generic winforms parser of some specified types
+ /// </summary>
+ /// <typeparam name="T1">The type of the parser</typeparam>
+ /// <typeparam name="T2">The type of the parser</typeparam>
+ /// <typeparam name="T3">The type of the parser</typeparam>
+ /// <typeparam name="T4">The type of the parser</typeparam>
+ /// <param name="args">The user arguments</param>
+ /// <param name="t1">An instance of the verb class</param>
+ /// <param name="t2">An instance of the verb class</param>
+ /// <param name="t3">An instance of the verb class</param>
+ /// <param name="t4">An instance of the verb class</param>
+ public static void RunWinForms<T1, T2, T3, T4>(string[] args, T1 t1, T2 t2, T3 t3, T4 t4)
+ { new Parser<T1, T2, T3, T4>().WinForms().RunTargets(args, t1, t2, t3, t4); }
+
+ /// <summary>
+ /// Executes a generic winforms static parser of some specified types
+ /// </summary>
+ /// <param name="args">The user arguments</param>
+ public static void RunWinForms<T1, T2, T3, T4, T5>(string[] args)
+ { new Parser<T1, T2, T3, T4, T5>().WinForms().RunStatic(args); }
+
+ /// <summary>
+ /// Executes a generic winforms parser of some specified types
+ /// </summary>
+ /// <typeparam name="T1">The type of the parser</typeparam>
+ /// <typeparam name="T2">The type of the parser</typeparam>
+ /// <typeparam name="T3">The type of the parser</typeparam>
+ /// <typeparam name="T4">The type of the parser</typeparam>
+ /// <typeparam name="T5">The type of the parser</typeparam>
+ /// <param name="args">The user arguments</param>
+ /// <param name="t1">An instance of the verb class</param>
+ /// <param name="t2">An instance of the verb class</param>
+ /// <param name="t3">An instance of the verb class</param>
+ /// <param name="t4">An instance of the verb class</param>
+ /// <param name="t5">An instance of the verb class</param>
+ public static void RunWinForms<T1, T2, T3, T4, T5>(string[] args, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5)
+ { new Parser<T1, T2, T3, T4, T5>().WinForms().RunTargets(args, t1, t2, t3, t4, t5); }
+
+ /// <summary>
+ /// Executes a generic winforms static parser of some specified types
+ /// </summary>
+ /// <param name="args">The user arguments</param>
+ public static void RunWinForms<T1, T2, T3, T4, T5, T6>(string[] args)
+ { new Parser<T1, T2, T3, T4, T5, T6>().WinForms().RunStatic(args); }
+
+ /// <summary>
+ /// Executes a generic winforms parser of some specified types
+ /// </summary>
+ /// <typeparam name="T1">The type of the parser</typeparam>
+ /// <typeparam name="T2">The type of the parser</typeparam>
+ /// <typeparam name="T3">The type of the parser</typeparam>
+ /// <typeparam name="T4">The type of the parser</typeparam>
+ /// <typeparam name="T5">The type of the parser</typeparam>
+ /// <typeparam name="T6">The type of the parser</typeparam>
+ /// <param name="args">The user arguments</param>
+ /// <param name="t1">An instance of the verb class</param>
+ /// <param name="t2">An instance of the verb class</param>
+ /// <param name="t3">An instance of the verb class</param>
+ /// <param name="t4">An instance of the verb class</param>
+ /// <param name="t5">An instance of the verb class</param>
+ /// <param name="t6">An instance of the verb class</param>
+ public static void RunWinForms<T1, T2, T3, T4, T5, T6>(string[] args, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6)
+ { new Parser<T1, T2, T3, T4, T5, T6>().WinForms().RunTargets(args, t1, t2, t3, t4, t5, t6); }
+
+ /// <summary>
+ /// Executes a generic winforms static parser of some specified types
+ /// </summary>
+ /// <param name="args">The user arguments</param>
+ public static void RunWinForms<T1, T2, T3, T4, T5, T6, T7>(string[] args)
+ { new Parser<T1, T2, T3, T4, T5, T6, T7>().WinForms().RunStatic(args); }
+
+ /// <summary>
+ /// Executes a generic winforms parser of some specified types
+ /// </summary>
+ /// <typeparam name="T1">The type of the parser</typeparam>
+ /// <typeparam name="T2">The type of the parser</typeparam>
+ /// <typeparam name="T3">The type of the parser</typeparam>
+ /// <typeparam name="T4">The type of the parser</typeparam>
+ /// <typeparam name="T5">The type of the parser</typeparam>
+ /// <typeparam name="T6">The type of the parser</typeparam>
+ /// <typeparam name="T7">The type of the parser</typeparam>
+ /// <param name="args">The user arguments</param>
+ /// <param name="t1">An instance of the verb class</param>
+ /// <param name="t2">An instance of the verb class</param>
+ /// <param name="t3">An instance of the verb class</param>
+ /// <param name="t4">An instance of the verb class</param>
+ /// <param name="t5">An instance of the verb class</param>
+ /// <param name="t6">An instance of the verb class</param>
+ /// <param name="t7">An instance of the verb class</param>
+ public static void RunWinForms<T1, T2, T3, T4, T5, T6, T7>(string[] args, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7)
+ { new Parser<T1, T2, T3, T4, T5, T6, T7>().WinForms().RunTargets(args, t1, t2, t3, t4, t5, t6, t7); }
+
+ /// <summary>
+ /// Executes a generic winforms static parser of some specified types
+ /// </summary>
+ /// <param name="args">The user arguments</param>
+ public static void RunWinForms<T1, T2, T3, T4, T5, T6, T7, T8>(string[] args)
+ { new Parser<T1, T2, T3, T4, T5, T6, T7, T8>().WinForms().RunStatic(args); }
+
+ /// <summary>
+ /// Executes a generic winforms parser of some specified types
+ /// </summary>
+ /// <typeparam name="T1">The type of the parser</typeparam>
+ /// <typeparam name="T2">The type of the parser</typeparam>
+ /// <typeparam name="T3">The type of the parser</typeparam>
+ /// <typeparam name="T4">The type of the parser</typeparam>
+ /// <typeparam name="T5">The type of the parser</typeparam>
+ /// <typeparam name="T6">The type of the parser</typeparam>
+ /// <typeparam name="T7">The type of the parser</typeparam>
+ /// <typeparam name="T8">The type of the parser</typeparam>
+ /// <param name="args">The user arguments</param>
+ /// <param name="t1">An instance of the verb class</param>
+ /// <param name="t2">An instance of the verb class</param>
+ /// <param name="t3">An instance of the verb class</param>
+ /// <param name="t4">An instance of the verb class</param>
+ /// <param name="t5">An instance of the verb class</param>
+ /// <param name="t6">An instance of the verb class</param>
+ /// <param name="t7">An instance of the verb class</param>
+ /// <param name="t8">An instance of the verb class</param>
+ public static void RunWinForms<T1, T2, T3, T4, T5, T6, T7, T8>(string[] args, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8)
+ { new Parser<T1, T2, T3, T4, T5, T6, T7, T8>().WinForms().RunTargets(args, t1, t2, t3, t4, t5, t6, t7, t8); }
+
+ /// <summary>
+ /// Executes a generic winforms static parser of some specified types
+ /// </summary>
+ /// <param name="args">The user arguments</param>
+ public static void RunWinForms<T1, T2, T3, T4, T5, T6, T7, T8, T9>(string[] args)
+ { new Parser<T1, T2, T3, T4, T5, T6, T7, T8, T9>().WinForms().RunStatic(args); }
+
+ /// <summary>
+ /// Executes a generic winforms parser of some specified types
+ /// </summary>
+ /// <typeparam name="T1">The type of the parser</typeparam>
+ /// <typeparam name="T2">The type of the parser</typeparam>
+ /// <typeparam name="T3">The type of the parser</typeparam>
+ /// <typeparam name="T4">The type of the parser</typeparam>
+ /// <typeparam name="T5">The type of the parser</typeparam>
+ /// <typeparam name="T6">The type of the parser</typeparam>
+ /// <typeparam name="T7">The type of the parser</typeparam>
+ /// <typeparam name="T8">The type of the parser</typeparam>
+ /// <typeparam name="T9">The type of the parser</typeparam>
+ /// <param name="args">The user arguments</param>
+ /// <param name="t1">An instance of the verb class</param>
+ /// <param name="t2">An instance of the verb class</param>
+ /// <param name="t3">An instance of the verb class</param>
+ /// <param name="t4">An instance of the verb class</param>
+ /// <param name="t5">An instance of the verb class</param>
+ /// <param name="t6">An instance of the verb class</param>
+ /// <param name="t7">An instance of the verb class</param>
+ /// <param name="t8">An instance of the verb class</param>
+ /// <param name="t9">An instance of the verb class</param>
+ public static void RunWinForms<T1, T2, T3, T4, T5, T6, T7, T8, T9>(string[] args, T1 t1, T2 t2, T3 t3, T4 t4, T5 t5, T6 t6, T7 t7, T8 t8, T9 t9)
+ { new Parser<T1, T2, T3, T4, T5, T6, T7, T8, T9>().WinForms().RunTargets(args, t1, t2, t3, t4, t5, t6, t7, t8, t9); }
+ }
+}
2  CLAP/Parser.cs
View
@@ -10,7 +10,7 @@ namespace CLAP
/// <summary>
/// A command-line arguments parser
/// </summary>
- public class Parser : MultiParser
+ public partial class Parser : MultiParser
{
/// <summary>
/// Creates a parser based on the specified types
7 ConsoleTest/Program.cs
View
@@ -13,7 +13,7 @@ class Program
{
static void Main(string[] args)
{
- Parser.Run<DefaultApp>(args);
+ Parser.RunConsole<DefaultApp>(args);
}
}
@@ -23,6 +23,11 @@ class DefaultApp
public static void Foo([Parameter(Default = "zoo")]string bar)
{
Console.WriteLine("bar = {0}", bar);
+
+ if (bar == "x")
+ {
+ throw new Exception("blah!");
+ }
}
}
39 WinFormTest/Form1.Designer.cs
View
@@ -0,0 +1,39 @@
+namespace WinFormTest
+{
+ partial class Form1
+ {
+ /// <summary>
+ /// Required designer variable.
+ /// </summary>
+ private System.ComponentModel.IContainer components = null;
+
+ /// <summary>
+ /// Clean up any resources being used.
+ /// </summary>
+ /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ /// <summary>
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ /// </summary>
+ private void InitializeComponent()
+ {
+ this.components = new System.ComponentModel.Container();
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.Text = "Form1";
+ }
+
+ #endregion
+ }
+}
+
19 WinFormTest/Form1.cs
View
@@ -0,0 +1,19 @@
+using System;
+using System.Collections.Generic;
+using System.ComponentModel;
+using System.Data;
+using System.Drawing;
+using System.Linq;
+using System.Text;
+using System.Windows.Forms;
+
+namespace WinFormTest
+{
+ public partial class Form1 : Form
+ {
+ public Form1()
+ {
+ InitializeComponent();
+ }
+ }
+}
36 WinFormTest/Program.cs
View
@@ -0,0 +1,36 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Windows.Forms;
+using CLAP;
+
+namespace WinFormTest
+{
+ static class Program
+ {
+ /// <summary>
+ /// The main entry point for the application.
+ /// </summary>
+ [STAThread]
+ static void Main(string[] args)
+ {
+ Parser.RunWinForms<App>(args);
+ }
+ }
+
+ class App
+ {
+ [Verb]
+ static void Run(int count)
+ {
+ Application.EnableVisualStyles();
+ Application.SetCompatibleTextRenderingDefault(false);
+
+ var forms = Enumerable.Range(1, count).Select(i => new Form1());
+
+ forms.ToList().ForEach(f => f.Show());
+
+ Application.Run(forms.Last());
+ }
+ }
+}
36 WinFormTest/Properties/AssemblyInfo.cs
View
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+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("WinFormTest")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("WinFormTest")]
+[assembly: AssemblyCopyright("Copyright © 2012")]
+[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("e2a6819e-0088-4c4c-8c96-38a7dbaab1a0")]
+
+// 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")]
71 WinFormTest/Properties/Resources.Designer.cs
View
@@ -0,0 +1,71 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.239
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace WinFormTest.Properties
+{
+
+
+ /// <summary>
+ /// A strongly-typed resource class, for looking up localized strings, etc.
+ /// </summary>
+ // This class was auto-generated by the StronglyTypedResourceBuilder
+ // class via a tool like ResGen or Visual Studio.
+ // To add or remove a member, edit your .ResX file then rerun ResGen
+ // with the /str option, or rebuild your VS project.
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ internal class Resources
+ {
+
+ private static global::System.Resources.ResourceManager resourceMan;
+
+ private static global::System.Globalization.CultureInfo resourceCulture;
+
+ [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+ internal Resources()
+ {
+ }
+
+ /// <summary>
+ /// Returns the cached ResourceManager instance used by this class.
+ /// </summary>
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Resources.ResourceManager ResourceManager
+ {
+ get
+ {
+ if ((resourceMan == null))
+ {
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("WinFormTest.Properties.Resources", typeof(Resources).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ /// <summary>
+ /// Overrides the current thread's CurrentUICulture property for all
+ /// resource lookups using this strongly typed resource class.
+ /// </summary>
+ [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
+ internal static global::System.Globalization.CultureInfo Culture
+ {
+ get
+ {
+ return resourceCulture;
+ }
+ set
+ {
+ resourceCulture = value;
+ }
+ }
+ }
+}
117 WinFormTest/Properties/Resources.resx
View
@@ -0,0 +1,117 @@
+<?xml version="1.0" encoding="utf-8"?>
+<root>
+ <!--
+ Microsoft ResX Schema
+
+ Version 2.0
+
+ The primary goals of this format is to allow a simple XML format
+ that is mostly human readable. The generation and parsing of the
+ various data types are done through the TypeConverter classes
+ associated with the data types.
+
+ Example:
+
+ ... ado.net/XML headers & schema ...
+ <resheader name="resmimetype">text/microsoft-resx</resheader>
+ <resheader name="version">2.0</resheader>
+ <resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
+ <resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
+ <data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
+ <data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
+ <data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
+ <value>[base64 mime encoded serialized .NET Framework object]</value>
+ </data>
+ <data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
+ <value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
+ <comment>This is a comment</comment>
+ </data>
+
+ There are any number of "resheader" rows that contain simple
+ name/value pairs.
+
+ Each data row contains a name, and value. The row also contains a
+ type or mimetype. Type corresponds to a .NET class that support
+ text/value conversion through the TypeConverter architecture.
+ Classes that don't support this are serialized and stored with the
+ mimetype set.
+
+ The mimetype is used for serialized objects, and tells the
+ ResXResourceReader how to depersist the object. This is currently not
+ extensible. For a given mimetype the value must be set accordingly:
+
+ Note - application/x-microsoft.net.object.binary.base64 is the format
+ that the ResXResourceWriter will generate, however the reader can
+ read any of the formats listed below.
+
+ mimetype: application/x-microsoft.net.object.binary.base64
+ value : The object must be serialized with
+ : System.Serialization.Formatters.Binary.BinaryFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.soap.base64
+ value : The object must be serialized with
+ : System.Runtime.Serialization.Formatters.Soap.SoapFormatter
+ : and then encoded with base64 encoding.
+
+ mimetype: application/x-microsoft.net.object.bytearray.base64
+ value : The object must be serialized into a byte array
+ : using a System.ComponentModel.TypeConverter
+ : and then encoded with base64 encoding.
+ -->
+ <xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
+ <xsd:element name="root" msdata:IsDataSet="true">
+ <xsd:complexType>
+ <xsd:choice maxOccurs="unbounded">
+ <xsd:element name="metadata">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" />
+ <xsd:attribute name="type" type="xsd:string" />
+ <xsd:attribute name="mimetype" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="assembly">
+ <xsd:complexType>
+ <xsd:attribute name="alias" type="xsd:string" />
+ <xsd:attribute name="name" type="xsd:string" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="data">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ <xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
+ <xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
+ <xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
+ </xsd:complexType>
+ </xsd:element>
+ <xsd:element name="resheader">
+ <xsd:complexType>
+ <xsd:sequence>
+ <xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
+ </xsd:sequence>
+ <xsd:attribute name="name" type="xsd:string" use="required" />
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:choice>
+ </xsd:complexType>
+ </xsd:element>
+ </xsd:schema>
+ <resheader name="resmimetype">
+ <value>text/microsoft-resx</value>
+ </resheader>
+ <resheader name="version">
+ <value>2.0</value>
+ </resheader>
+ <resheader name="reader">
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+ <resheader name="writer">
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ </resheader>
+</root>
30 WinFormTest/Properties/Settings.Designer.cs
View
@@ -0,0 +1,30 @@
+//------------------------------------------------------------------------------
+// <auto-generated>
+// This code was generated by a tool.
+// Runtime Version:4.0.30319.239
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+// </auto-generated>
+//------------------------------------------------------------------------------
+
+namespace WinFormTest.Properties
+{
+
+
+ [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
+ internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
+ {
+
+ private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
+
+ public static Settings Default
+ {
+ get
+ {
+ return defaultInstance;
+ }
+ }
+ }
+}
7 WinFormTest/Properties/Settings.settings
View
@@ -0,0 +1,7 @@
+<?xml version='1.0' encoding='utf-8'?>
+<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
+ <Profiles>
+ <Profile Name="(Default)" />
+ </Profiles>
+ <Settings />
+</SettingsFile>
90 WinFormTest/WinFormTest.csproj
View
@@ -0,0 +1,90 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">x86</Platform>
+ <ProductVersion>8.0.30703</ProductVersion>
+ <SchemaVersion>2.0</SchemaVersion>
+ <ProjectGuid>{20D947B0-A9E4-480B-A24C-5D8621D4A59B}</ProjectGuid>
+ <OutputType>WinExe</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>WinFormTest</RootNamespace>
+ <AssemblyName>WinFormTest</AssemblyName>
+ <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <TargetFrameworkProfile>Client</TargetFrameworkProfile>
+ <FileAlignment>512</FileAlignment>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
+ <PlatformTarget>x86</PlatformTarget>
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
+ <PlatformTarget>x86</PlatformTarget>
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ <Reference Include="System.Core" />
+ <Reference Include="System.Xml.Linq" />
+ <Reference Include="System.Data.DataSetExtensions" />
+ <Reference Include="Microsoft.CSharp" />
+ <Reference Include="System.Data" />
+ <Reference Include="System.Deployment" />
+ <Reference Include="System.Drawing" />
+ <Reference Include="System.Windows.Forms" />
+ <Reference Include="System.Xml" />
+ </ItemGroup>
+ <ItemGroup>
+ <Compile Include="Form1.cs">
+ <SubType>Form</SubType>
+ </Compile>
+ <Compile Include="Form1.Designer.cs">
+ <DependentUpon>Form1.cs</DependentUpon>
+ </Compile>
+ <Compile Include="Program.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ <EmbeddedResource Include="Properties\Resources.resx">
+ <Generator>ResXFileCodeGenerator</Generator>
+ <LastGenOutput>Resources.Designer.cs</LastGenOutput>
+ <SubType>Designer</SubType>
+ </EmbeddedResource>
+ <Compile Include="Properties\Resources.Designer.cs">
+ <AutoGen>True</AutoGen>
+ <DependentUpon>Resources.resx</DependentUpon>
+ </Compile>
+ <None Include="Properties\Settings.settings">
+ <Generator>SettingsSingleFileGenerator</Generator>
+ <LastGenOutput>Settings.Designer.cs</LastGenOutput>
+ </None>
+ <Compile Include="Properties\Settings.Designer.cs">
+ <AutoGen>True</AutoGen>
+ <DependentUpon>Settings.settings</DependentUpon>
+ <DesignTimeSharedInput>True</DesignTimeSharedInput>
+ </Compile>
+ </ItemGroup>
+ <ItemGroup>
+ <ProjectReference Include="..\CLAP\CLAP.csproj">
+ <Project>{AE79CD7B-DFFC-4156-913E-63F70A31B7C1}</Project>
+ <Name>CLAP</Name>
+ </ProjectReference>
+ </ItemGroup>
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
Please sign in to comment.
Something went wrong with that request. Please try again.