Skip to content

Commit de40aee

Browse files
committed
Add option --skip-wrc
1 parent 8f7c795 commit de40aee

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

CodeGen/Program.cs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ class Program
2929
/// </remarks>
3030
/// <param name="verbose">Verbose output? Defaults to false.</param>
3131
/// <param name="repositoryRoot">The repository root directory, defaults to searching parent directories for UnitsNet.sln.</param>
32-
static int Main(bool verbose = false, DirectoryInfo repositoryRoot = null)
32+
/// <param name="skipWrc">Skip generate UnitsNet.WindowsRuntimeComponent? Defaults to false.</param>
33+
static int Main(bool verbose = false, DirectoryInfo repositoryRoot = null, bool skipWrc = false)
3334
{
3435
Log.Logger = new LoggerConfiguration()
3536
.WriteTo
@@ -57,7 +58,10 @@ static int Main(bool verbose = false, DirectoryInfo repositoryRoot = null)
5758
}
5859

5960
UnitsNetGenerator.Generate(repositoryRoot);
60-
UnitsNetWrcGenerator.Generate(repositoryRoot);
61+
62+
if (!skipWrc)
63+
UnitsNetWrcGenerator.Generate(repositoryRoot);
64+
6165
Log.Information($"Completed in {sw.ElapsedMilliseconds} ms!", ConsoleColor.Green);
6266
return 0;
6367
}

0 commit comments

Comments
 (0)