File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,8 @@ class Program
29
29
/// </remarks>
30
30
/// <param name="verbose">Verbose output? Defaults to false.</param>
31
31
/// <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 )
33
34
{
34
35
Log . Logger = new LoggerConfiguration ( )
35
36
. WriteTo
@@ -57,7 +58,10 @@ static int Main(bool verbose = false, DirectoryInfo repositoryRoot = null)
57
58
}
58
59
59
60
UnitsNetGenerator . Generate ( repositoryRoot ) ;
60
- UnitsNetWrcGenerator . Generate ( repositoryRoot ) ;
61
+
62
+ if ( ! skipWrc )
63
+ UnitsNetWrcGenerator . Generate ( repositoryRoot ) ;
64
+
61
65
Log . Information ( $ "Completed in { sw . ElapsedMilliseconds } ms!", ConsoleColor . Green ) ;
62
66
return 0 ;
63
67
}
You can’t perform that action at this time.
0 commit comments