mirror of
https://github.com/SoftEtherVPN/SoftEtherVPN.git
synced 2025-09-20 10:19:20 +03:00
JSON-RPC CodeGen Developer Tool
This commit is contained in:
37
developer_tools/vpnserver-jsonrpc-codegen/Program.cs
Normal file
37
developer_tools/vpnserver-jsonrpc-codegen/Program.cs
Normal file
@ -0,0 +1,37 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.Diagnostics;
|
||||
using Newtonsoft.Json;
|
||||
using SoftEther.VPNServerRpc;
|
||||
using System.Text;
|
||||
using SoftEther.JsonRpc;
|
||||
|
||||
|
||||
namespace VPNServer_JSONRPC_CodeGen
|
||||
{
|
||||
class Program
|
||||
{
|
||||
static void Main(string[] args)
|
||||
{
|
||||
string output_dir = CodeGenUtil.OutputDir_Clients;
|
||||
|
||||
try
|
||||
{
|
||||
Directory.CreateDirectory(output_dir);
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
|
||||
CodeGen g = new CodeGen();
|
||||
|
||||
g.GenerateAndSaveCodes(output_dir);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user