29 lines
622 B
C#
29 lines
622 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using WebUpdate.Entity;
|
|
|
|
namespace WebUpdate
|
|
{
|
|
internal class Program
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
var fielInfoPath= Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "update.json");
|
|
var updateInfo = new UpdateInfo();
|
|
|
|
|
|
if (File.Exists(fielInfoPath))
|
|
{
|
|
var files= File.ReadAllText(fielInfoPath);
|
|
updateInfo = files.ToObject<UpdateInfo>();
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
}
|