mirror of
https://github.com/amerkoleci/Vortice.Win32.git
synced 2026-01-14 16:16:04 +08:00
Initial setup
This commit is contained in:
28
src/Generator/Program.cs
Normal file
28
src/Generator/Program.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
// Copyright © Amer Koleci and Contributors.
|
||||
// Licensed under the MIT License (MIT). See LICENSE in the repository root for more information.
|
||||
|
||||
namespace Generator;
|
||||
|
||||
public static class Program
|
||||
{
|
||||
public static int Main(string[] args)
|
||||
{
|
||||
string outputPath = AppContext.BaseDirectory;
|
||||
if (args.Length > 0)
|
||||
{
|
||||
outputPath = args[0];
|
||||
}
|
||||
|
||||
if (!Path.IsPathRooted(outputPath))
|
||||
{
|
||||
outputPath = Path.Combine(AppContext.BaseDirectory, outputPath);
|
||||
}
|
||||
|
||||
if (!Directory.Exists(outputPath))
|
||||
{
|
||||
Directory.CreateDirectory(outputPath);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user