diff --git a/.gitignore b/.gitignore index 4f24f3bdda9ac00ac64a832072db3a1812c28e75..b959cbc02c8ec9a11af5a2eeb1e343394661d1ba 100644 --- a/.gitignore +++ b/.gitignore @@ -234,3 +234,6 @@ src/c\#/.vs/GeneralUpdate/FileContentIndex/7f9f4839-4956-40d4-b05d-01d128ee194b. *.lock *.txt *.v3 +*.v5 +src/c\#/.vs/ProjectEvaluation/generalupdate.projects.v5 +src/c\#/.vs/ProjectEvaluation/generalupdate.metadata.v5 diff --git a/example/MAUI/readme.md b/example/MAUI/readme.md new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/example/WPF/readme.md b/example/WPF/readme.md new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/example/aspnet/GeneralUpdate.Service/.vs/ProjectEvaluation/generalupdate.service.metadata.v5 b/example/aspnet/GeneralUpdate.Service/.vs/ProjectEvaluation/generalupdate.service.metadata.v5 new file mode 100644 index 0000000000000000000000000000000000000000..9ea14255c07b2c1188532630967ed38c6801ca0a Binary files /dev/null and b/example/aspnet/GeneralUpdate.Service/.vs/ProjectEvaluation/generalupdate.service.metadata.v5 differ diff --git a/example/aspnet/GeneralUpdate.Service/.vs/ProjectEvaluation/generalupdate.service.projects.v5 b/example/aspnet/GeneralUpdate.Service/.vs/ProjectEvaluation/generalupdate.service.projects.v5 new file mode 100644 index 0000000000000000000000000000000000000000..ee4f5940d5012719e4f1b4fe2fc792f2d356e303 Binary files /dev/null and b/example/aspnet/GeneralUpdate.Service/.vs/ProjectEvaluation/generalupdate.service.projects.v5 differ diff --git a/src/c#/AutoUpdate.ZIP/AutoUpdate.ZIP.csproj b/example/aspnet/GeneralUpdate.Service/GeneralUpdate.Service.csproj similarity index 32% rename from src/c#/AutoUpdate.ZIP/AutoUpdate.ZIP.csproj rename to example/aspnet/GeneralUpdate.Service/GeneralUpdate.Service.csproj index 35e1650343c0dce110266553dc57646e6b2775e7..60bf9ead830c6d0b325cbe4e38b3c35311d81282 100644 --- a/src/c#/AutoUpdate.ZIP/AutoUpdate.ZIP.csproj +++ b/example/aspnet/GeneralUpdate.Service/GeneralUpdate.Service.csproj @@ -1,14 +1,13 @@ - + - WinExe - net6.0-windows + net6.0 enable - true + enable - + diff --git a/example/aspnet/GeneralUpdate.Service/GeneralUpdate.Service.sln b/example/aspnet/GeneralUpdate.Service/GeneralUpdate.Service.sln new file mode 100644 index 0000000000000000000000000000000000000000..0002d30da10e113fe1655e08edb119a5e51755d2 --- /dev/null +++ b/example/aspnet/GeneralUpdate.Service/GeneralUpdate.Service.sln @@ -0,0 +1,25 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.3.32804.467 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "GeneralUpdate.Service", "GeneralUpdate.Service.csproj", "{51B3C434-601A-4E25-8759-2875962106C1}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {51B3C434-601A-4E25-8759-2875962106C1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {51B3C434-601A-4E25-8759-2875962106C1}.Debug|Any CPU.Build.0 = Debug|Any CPU + {51B3C434-601A-4E25-8759-2875962106C1}.Release|Any CPU.ActiveCfg = Release|Any CPU + {51B3C434-601A-4E25-8759-2875962106C1}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {6D61B82A-5C19-42DC-BB43-882C71FF4588} + EndGlobalSection +EndGlobal diff --git a/example/aspnet/GeneralUpdate.Service/Program.cs b/example/aspnet/GeneralUpdate.Service/Program.cs new file mode 100644 index 0000000000000000000000000000000000000000..b8e6eff32d03c4802177e37a751765c6e36dc833 --- /dev/null +++ b/example/aspnet/GeneralUpdate.Service/Program.cs @@ -0,0 +1,42 @@ +var builder = WebApplication.CreateBuilder(args); +//builder.Services.AddSingleton(); +builder.Services.AddSignalR(); +var app = builder.Build(); + +//app.MapHub("/versionhub"); + +//app.Use(async (context, next) => +//{ +// var hubContext = context.RequestServices.GetRequiredService>(); +// await CommonHubContextMethod((IHubContext)hubContext); +// if (next != null) +// { +// await next.Invoke(); +// } +//}); + +//async Task CommonHubContextMethod(IHubContext context) +//{ +// await context.Clients.All.SendAsync("clientMethod",""); +//} + +//app.MapGet("/versions/{clientType}/{clientVersion}/{clientAppKey}", async (int clientType, string clientVersion, string clientAppKey, IUpdateService updateService) => +//{ +// //TODO: Link database query appSecretKey. +// var appSecretKey = "41A54379-C7D6-4920-8768-21A3468572E5"; +// //return await updateService.UpdateVersionsTaskAsync(clientType, clientVersion, clientAppKey, appSecretKey, UpdateVersions); +//}); + +//app.MapGet("/validate/{clientType}/{clientVersion}/{clientAppKey}", async (int clientType, string clientVersion, string clientAppKey, IUpdateService updateService) => +//{ +// //TODO: Link database query appSecretKey. +// //var appSecretKey = "41A54379-C7D6-4920-8768-21A3468572E5"; +// //if (!appSecretKey.Equals(clientAppKey)) throw new Exception($"key {clientAppKey} is not found in the database, check whether you need to upload the new version information!"); +// //return await updateService.UpdateValidateTaskAsync(clientType, clientVersion, GetLastVersion(), clientAppKey, appSecretKey, true, GetValidateInfos); +//}); + +string GetLastVersion() +{ + //TODO:Link database query information. + return "9.1.3.0"; +} diff --git a/example/aspnet/GeneralUpdate.Service/Properties/launchSettings.json b/example/aspnet/GeneralUpdate.Service/Properties/launchSettings.json new file mode 100644 index 0000000000000000000000000000000000000000..fc2fc16ac774354cece4eb2a8788865fb6420ae5 --- /dev/null +++ b/example/aspnet/GeneralUpdate.Service/Properties/launchSettings.json @@ -0,0 +1,31 @@ +{ + "$schema": "https://json.schemastore.org/launchsettings.json", + "iisSettings": { + "windowsAuthentication": false, + "anonymousAuthentication": true, + "iisExpress": { + "applicationUrl": "http://localhost:44800", + "sslPort": 44367 + } + }, + "profiles": { + "GeneralUpdate.Service": { + "commandName": "Project", + "dotnetRunMessages": true, + "launchBrowser": true, + "launchUrl": "swagger", + "applicationUrl": "https://localhost:7203;http://localhost:5203", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + }, + "IIS Express": { + "commandName": "IISExpress", + "launchBrowser": true, + "launchUrl": "swagger", + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + } + } + } +} diff --git a/src/c#/AutoUpdate.MinimalService/appsettings.Development.json b/example/aspnet/GeneralUpdate.Service/appsettings.Development.json similarity index 98% rename from src/c#/AutoUpdate.MinimalService/appsettings.Development.json rename to example/aspnet/GeneralUpdate.Service/appsettings.Development.json index 1b2d3bafd88df424abf0d47e2147edd8358bae7a..0c208ae9181e5e5717e47ec1bd59368aebc6066e 100644 --- a/src/c#/AutoUpdate.MinimalService/appsettings.Development.json +++ b/example/aspnet/GeneralUpdate.Service/appsettings.Development.json @@ -5,4 +5,4 @@ "Microsoft.AspNetCore": "Warning" } } -} \ No newline at end of file +} diff --git a/src/c#/AutoUpdate.MinimalService/appsettings.json b/example/aspnet/GeneralUpdate.Service/appsettings.json similarity index 98% rename from src/c#/AutoUpdate.MinimalService/appsettings.json rename to example/aspnet/GeneralUpdate.Service/appsettings.json index ec04bc120fb7f339ce3c5ef898d3db32f7366a0c..10f68b8c8b4f796baf8ddeee7551b6a52b9437cc 100644 --- a/src/c#/AutoUpdate.MinimalService/appsettings.json +++ b/example/aspnet/GeneralUpdate.Service/appsettings.json @@ -6,4 +6,4 @@ } }, "AllowedHosts": "*" -} \ No newline at end of file +} diff --git a/example/aspnet/readme.md b/example/aspnet/readme.md new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/example/avalonia/readme.md b/example/avalonia/readme.md new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/example/console/readme.md b/example/console/readme.md new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/example/winfrom/readme.md b/example/winfrom/readme.md new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/src/c#/.vs/GeneralUpdate.Tool/config/applicationhost.config b/src/c#/.vs/GeneralUpdate.Tool/config/applicationhost.config new file mode 100644 index 0000000000000000000000000000000000000000..0d88f0db34246854dfbf34fdc3dd23742f1bad88 --- /dev/null +++ b/src/c#/.vs/GeneralUpdate.Tool/config/applicationhost.config @@ -0,0 +1,1016 @@ + + + + + + + +
+
+
+
+
+
+
+
+ + + +
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ +
+
+ +
+
+
+
+
+
+ +
+
+
+
+
+ +
+
+
+ +
+
+ +
+
+ +
+
+
+ + +
+
+
+
+
+
+ +
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/c#/.vs/ProjectEvaluation/generalupdate.metadata.v5 b/src/c#/.vs/ProjectEvaluation/generalupdate.metadata.v5 new file mode 100644 index 0000000000000000000000000000000000000000..6c66db0f4f1b5a073f6c40a1635219a4b0423128 Binary files /dev/null and b/src/c#/.vs/ProjectEvaluation/generalupdate.metadata.v5 differ diff --git a/src/c#/.vs/ProjectEvaluation/generalupdate.projects.v5 b/src/c#/.vs/ProjectEvaluation/generalupdate.projects.v5 new file mode 100644 index 0000000000000000000000000000000000000000..638fad94fa68e2f8d3b9b02f7a3afa62bdb6952f Binary files /dev/null and b/src/c#/.vs/ProjectEvaluation/generalupdate.projects.v5 differ diff --git a/src/c#/AutoUpdate.ClientCore/App.xaml b/src/c#/AutoUpdate.ClientCore/App.xaml deleted file mode 100644 index 40832c6fa001518135edee70224638d684173abb..0000000000000000000000000000000000000000 --- a/src/c#/AutoUpdate.ClientCore/App.xaml +++ /dev/null @@ -1,7 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/c#/AutoUpdate.ClientCore/App.xaml.cs b/src/c#/AutoUpdate.ClientCore/App.xaml.cs deleted file mode 100644 index 9f1cb13780f6528e65d1128d84496983da5de367..0000000000000000000000000000000000000000 --- a/src/c#/AutoUpdate.ClientCore/App.xaml.cs +++ /dev/null @@ -1,11 +0,0 @@ -using System.Windows; - -namespace AutoUpdate.ClientCore -{ - /// - /// Interaction logic for App.xaml - /// - public partial class App : Application - { - } -} \ No newline at end of file diff --git a/src/c#/AutoUpdate.ClientCore/AssemblyInfo.cs b/src/c#/AutoUpdate.ClientCore/AssemblyInfo.cs deleted file mode 100644 index bfbf6e201ec7acf337b0164fbf261a446bcb9e1e..0000000000000000000000000000000000000000 --- a/src/c#/AutoUpdate.ClientCore/AssemblyInfo.cs +++ /dev/null @@ -1,10 +0,0 @@ -using System.Windows; - -[assembly: ThemeInfo( - ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located - //(used if a resource is not found in the page, - // or application resource dictionaries) - ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located - //(used if a resource is not found in the page, - // app, or any theme specific resource dictionaries) -)] \ No newline at end of file diff --git a/src/c#/AutoUpdate.ClientCore/MainWindow.xaml b/src/c#/AutoUpdate.ClientCore/MainWindow.xaml deleted file mode 100644 index cd5c808de6b74b706991422e4bdda4249b7f58c2..0000000000000000000000000000000000000000 --- a/src/c#/AutoUpdate.ClientCore/MainWindow.xaml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/c#/AutoUpdate.Differential/MainWindow.xaml.cs b/src/c#/AutoUpdate.Differential/MainWindow.xaml.cs deleted file mode 100644 index 44363aa64f36c2349c4f37a0aebda1d7a8d8e868..0000000000000000000000000000000000000000 --- a/src/c#/AutoUpdate.Differential/MainWindow.xaml.cs +++ /dev/null @@ -1,58 +0,0 @@ -using GeneralUpdate.Differential; -using GeneralUpdate.Differential.Config; -using System.Threading.Tasks; -using System.Windows; - -namespace AutoUpdate.Differential -{ - /// - /// Interaction logic for MainWindow.xaml - /// - public partial class MainWindow : Window - { - public MainWindow() - { - InitializeComponent(); - } - - private void BtnClean_Click(object sender, RoutedEventArgs e) - { - Task.Run(async () => - { - var path1 = @"D:\TestCode\compare\source"; - var path2 = @"D:\TestCode\compare\target"; - var path3 = @"D:\TestCode\compare\patchs"; - await DifferentialCore.Instance.Clean(path1, path2, path3); - }); - } - - private void BtnDrity_Click(object sender, RoutedEventArgs e) - { - Task.Run(async () => - { - var path1 = @"D:\TestCode\compare\source"; - //var path2 = @"D:\TestCode\compare\target"; - var path3 = @"D:\TestCode\compare\patchs"; - await DifferentialCore.Instance.Drity(path1, path3); - }); - } - - private void BtnScan_Click(object sender, RoutedEventArgs e) - { - Task.Run(async () => - { - var path1 = @"D:\TestCode\compare\source"; - var path2 = @"D:\TestCode\compare\target"; - await ConfigFactory.Instance.Scan(path1, path2); - }); - } - - private void BtnDeploy_Click(object sender, RoutedEventArgs e) - { - Task.Run(async () => - { - await ConfigFactory.Instance.Deploy(); - }); - } - } -} \ No newline at end of file diff --git a/src/c#/AutoUpdate.MD5/App.xaml b/src/c#/AutoUpdate.MD5/App.xaml deleted file mode 100644 index 5d1e43a666bd1e308be2001217c7e844104da96a..0000000000000000000000000000000000000000 --- a/src/c#/AutoUpdate.MD5/App.xaml +++ /dev/null @@ -1,7 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/c#/AutoUpdate.MD5/App.xaml.cs b/src/c#/AutoUpdate.MD5/App.xaml.cs deleted file mode 100644 index 0b44691f81025b46b8fc2f76451e7e00f9d01a37..0000000000000000000000000000000000000000 --- a/src/c#/AutoUpdate.MD5/App.xaml.cs +++ /dev/null @@ -1,11 +0,0 @@ -using System.Windows; - -namespace AutoUpdate.MD5 -{ - /// - /// Interaction logic for App.xaml - /// - public partial class App : Application - { - } -} \ No newline at end of file diff --git a/src/c#/AutoUpdate.MD5/AssemblyInfo.cs b/src/c#/AutoUpdate.MD5/AssemblyInfo.cs deleted file mode 100644 index bfbf6e201ec7acf337b0164fbf261a446bcb9e1e..0000000000000000000000000000000000000000 --- a/src/c#/AutoUpdate.MD5/AssemblyInfo.cs +++ /dev/null @@ -1,10 +0,0 @@ -using System.Windows; - -[assembly: ThemeInfo( - ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located - //(used if a resource is not found in the page, - // or application resource dictionaries) - ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located - //(used if a resource is not found in the page, - // app, or any theme specific resource dictionaries) -)] \ No newline at end of file diff --git a/src/c#/AutoUpdate.MD5/AutoUpdate.MD5.csproj b/src/c#/AutoUpdate.MD5/AutoUpdate.MD5.csproj deleted file mode 100644 index 4106cb0f2dd314ba4416cd55c4b25e4e07d93edc..0000000000000000000000000000000000000000 --- a/src/c#/AutoUpdate.MD5/AutoUpdate.MD5.csproj +++ /dev/null @@ -1,10 +0,0 @@ - - - - WinExe - net6.0-windows - enable - true - - - diff --git a/src/c#/AutoUpdate.MD5/MainWindow.xaml b/src/c#/AutoUpdate.MD5/MainWindow.xaml deleted file mode 100644 index 5091dedb2cb9d7e3930c0f119701b6639c068f6d..0000000000000000000000000000000000000000 --- a/src/c#/AutoUpdate.MD5/MainWindow.xaml +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/c#/AutoUpdate.MD5/MainWindow.xaml.cs b/src/c#/AutoUpdate.MD5/MainWindow.xaml.cs deleted file mode 100644 index 0ecd36226243c3deacaac5e5b749966b79abd266..0000000000000000000000000000000000000000 --- a/src/c#/AutoUpdate.MD5/MainWindow.xaml.cs +++ /dev/null @@ -1,64 +0,0 @@ -using Microsoft.Win32; -using System; -using System.IO; -using System.Security.Cryptography; -using System.Text; -using System.Windows; - -namespace AutoUpdate.MD5 -{ - /// - /// Interaction logic for MainWindow.xaml - /// - public partial class MainWindow : Window - { - public MainWindow() - { - InitializeComponent(); - } - - #region MD5 - - private void Button_Click_1(object sender, RoutedEventArgs e) - { - try - { - OpenFileDialog openFile = new OpenFileDialog(); - bool? isOpen = openFile.ShowDialog(this); - if (isOpen != null && isOpen.Value) - { - var name = openFile.FileName; - var md5 = GetFileMD5(name); - TxtMD5.Text = md5; - } - } - catch (Exception ex) - { - MessageBox.Show($"Failed to get MD5: { ex.Message } "); - } - } - - private string GetFileMD5(string fileName) - { - try - { - var file = new FileStream(fileName, FileMode.Open); - var md5 = new MD5CryptoServiceProvider(); - var retVal = md5.ComputeHash(file); - file.Close(); - var sb = new StringBuilder(); - for (var i = 0; i < retVal.Length; i++) - { - sb.Append(retVal[i].ToString("x2")); - } - return sb.ToString(); - } - catch (Exception) - { - return string.Empty; - } - } - - #endregion MD5 - } -} \ No newline at end of file diff --git a/src/c#/AutoUpdate.MinimalService/Program.cs b/src/c#/AutoUpdate.MinimalService/Program.cs deleted file mode 100644 index f9d2e1a38bfc4a4203cc560f962dbbf9c6e57740..0000000000000000000000000000000000000000 --- a/src/c#/AutoUpdate.MinimalService/Program.cs +++ /dev/null @@ -1,71 +0,0 @@ -using GeneralUpdate.AspNetCore.Hubs; -using GeneralUpdate.AspNetCore.Services; -using GeneralUpdate.Core.DTOs; - -var builder = WebApplication.CreateBuilder(args); -builder.Services.AddSingleton(); -builder.Services.AddSignalR(); -var app = builder.Build(); - -//app.MapHub("/versionhub"); - -//app.Use(async (context, next) => -//{ -// var hubContext = context.RequestServices.GetRequiredService>(); -// await CommonHubContextMethod((IHubContext)hubContext); -// if (next != null) -// { -// await next.Invoke(); -// } -//}); - -//async Task CommonHubContextMethod(IHubContext context) -//{ -// await context.Clients.All.SendAsync("clientMethod",""); -//} - -app.MapGet("/versions/{clientType}/{clientVersion}/{clientAppKey}", async (int clientType, string clientVersion, string clientAppKey, IUpdateService updateService) => -{ - //TODO: Link database query appSecretKey. - var appSecretKey = "41A54379-C7D6-4920-8768-21A3468572E5"; - return await updateService.UpdateVersionsTaskAsync(clientType, clientVersion, clientAppKey, appSecretKey, UpdateVersions); -}); - -app.MapGet("/validate/{clientType}/{clientVersion}/{clientAppKey}", async (int clientType, string clientVersion,string clientAppKey, IUpdateService updateService) => -{ - //TODO: Link database query appSecretKey. - var appSecretKey = "41A54379-C7D6-4920-8768-21A3468572E5"; - if (!appSecretKey.Equals(clientAppKey)) throw new Exception($"key {clientAppKey} is not found in the database, check whether you need to upload the new version information!"); - return await updateService.UpdateValidateTaskAsync(clientType, clientVersion, GetLastVersion(), clientAppKey, appSecretKey, true, GetValidateInfos); -}); -app.Run(); - -async Task> UpdateVersions(int clientType, string clientVersion) -{ - //TODO:Link database query information.Different version information can be returned according to the 'clientType' of request. - var results = new List(); - results.Add(new UpdateVersionDTO("1bfd7236258b12c51fd09f13808235df", 1626711760, "9.1.3.0", "http://192.168.50.170/patchs.zip", "updatepacket1")); - //results.Add(new UpdateVersionDTO("d9a3785f08ed3dd92872bd807ebfb917", 1626711820, "9.1.4.0", - //"http://192.168.50.170/Update2.zip", - //"updatepacket2")); - //results.Add(new UpdateVersionDTO("224da586553d60315c55e689a789b7bd", 1626711880, "9.1.5.0", - //"http://192.168.50.170/Update3.zip", - //"updatepacket3")); - return await Task.FromResult(results); -} - -async Task> GetValidateInfos(int clientType, string clientVersion) -{ - //TODO:Link database query information.Different version information can be returned according to the 'clientType' of request. - var results = new List(); - results.Add(new UpdateVersionDTO("1bfd7236258b12c51fd09f13808235df", 1626711760, "9.1.3.0", null, null)); - //results.Add(new UpdateVersionDTO("d9a3785f08ed3dd92872bd807ebfb917", 1626711820, "9.1.4.0", null, null)); - //results.Add(new UpdateVersionDTO("224da586553d60315c55e689a789b7bd", 1626711880, "9.1.5.0", null, null)); - return await Task.FromResult(results); -} - -string GetLastVersion() -{ - //TODO:Link database query information. - return "9.1.3.0"; -} \ No newline at end of file diff --git a/src/c#/AutoUpdate.Test/App.xaml b/src/c#/AutoUpdate.Test/App.xaml deleted file mode 100644 index 1b5c5e4361bfcc87f993dd8bdf4578c2177e347d..0000000000000000000000000000000000000000 --- a/src/c#/AutoUpdate.Test/App.xaml +++ /dev/null @@ -1,7 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/c#/AutoUpdate.Test/App.xaml.cs b/src/c#/AutoUpdate.Test/App.xaml.cs deleted file mode 100644 index bb478c48d588f290e2625c8b0757af65645db4ff..0000000000000000000000000000000000000000 --- a/src/c#/AutoUpdate.Test/App.xaml.cs +++ /dev/null @@ -1,11 +0,0 @@ -using System.Windows; - -namespace AutoUpdate.Test -{ - /// - /// Interaction logic for App.xaml - /// - public partial class App : Application - { - } -} \ No newline at end of file diff --git a/src/c#/AutoUpdate.Test/AssemblyInfo.cs b/src/c#/AutoUpdate.Test/AssemblyInfo.cs deleted file mode 100644 index bfbf6e201ec7acf337b0164fbf261a446bcb9e1e..0000000000000000000000000000000000000000 --- a/src/c#/AutoUpdate.Test/AssemblyInfo.cs +++ /dev/null @@ -1,10 +0,0 @@ -using System.Windows; - -[assembly: ThemeInfo( - ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located - //(used if a resource is not found in the page, - // or application resource dictionaries) - ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located - //(used if a resource is not found in the page, - // app, or any theme specific resource dictionaries) -)] \ No newline at end of file diff --git a/src/c#/AutoUpdate.Test/AutoUpdate.Test.csproj b/src/c#/AutoUpdate.Test/AutoUpdate.Test.csproj deleted file mode 100644 index 196690206ac3bad5f98f4841542045155e14fa86..0000000000000000000000000000000000000000 --- a/src/c#/AutoUpdate.Test/AutoUpdate.Test.csproj +++ /dev/null @@ -1,15 +0,0 @@ - - - - WinExe - net5.0-windows - true - - - - - - - - - \ No newline at end of file diff --git a/src/c#/AutoUpdate.Test/MainWindow.xaml b/src/c#/AutoUpdate.Test/MainWindow.xaml deleted file mode 100644 index f72b2d38b135a6268d4a1fe136567885410ac5bf..0000000000000000000000000000000000000000 --- a/src/c#/AutoUpdate.Test/MainWindow.xaml +++ /dev/null @@ -1,37 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/c#/AutoUpdate.Test/MainWindow.xaml.cs b/src/c#/AutoUpdate.Test/MainWindow.xaml.cs deleted file mode 100644 index e5d57191ee8f96bfdbc8d1c9213f0b060d5f9b05..0000000000000000000000000000000000000000 --- a/src/c#/AutoUpdate.Test/MainWindow.xaml.cs +++ /dev/null @@ -1,43 +0,0 @@ -using System; -using System.Diagnostics; -using System.Text; -using System.Windows; - -namespace AutoUpdate.Test -{ - /// - /// Interaction logic for MainWindow.xaml - /// - public partial class MainWindow : Window - { - public MainWindow() - { - InitializeComponent(); - } - - #region Process launch - - private string InitBase64String(string jsonString) - { - var bytes = Encoding.Default.GetBytes(jsonString); - var base64str = Convert.ToBase64String(bytes); - return base64str; - } - - private void BtnLaunch_Click(object sender, RoutedEventArgs e) - { - try - { - string parameterString = TxtParmeterJson.Text; - string base64String = InitBase64String(parameterString); - Process.Start(TxtEXEPath.Text, base64String); - } - catch (Exception ex) - { - MessageBox.Show($"Parameter or base64 error : { ex.Message } "); - } - } - - #endregion Process launch - } -} \ No newline at end of file diff --git a/src/c#/AutoUpdate.Test/SingleTest.cs b/src/c#/AutoUpdate.Test/SingleTest.cs deleted file mode 100644 index 08493fa52d6661dccf3ba90694e9a9d3d91a92a0..0000000000000000000000000000000000000000 --- a/src/c#/AutoUpdate.Test/SingleTest.cs +++ /dev/null @@ -1,50 +0,0 @@ -//class Program : Application, ISingleInstanceApp -//{ -// private const string AppId = "{7F280539-0814-4F9C-95BF-D2BB60023657}"; - -// [STAThread] -// static void Main(string[] args) -// { -// //ISingleInstanceApp Can only be used in the framework of .net framework . -// string[] resultArgs = null; - -// if (args == null || args.Length == 0) -// { -// resultArgs = new string[6] { -// "0.0.0.0", -// "1.1.1.1", -// "https://github.com/WELL-E", -// "http://192.168.50.225:7000/update.zip", -// @"E:\PlatformPath", -// "371ada8087cf7651eafaadf4fcc214a5", -// }; -// } -// else -// { -// resultArgs = args; -// } - -// if (resultArgs.Length != 6) return; -// if (SingleInstance.InitializeAsFirstInstance(AppId)) -// { -// var win = new MainWindow(); -// var vm = new MainViewModel(resultArgs, win.Close); -// win.DataContext = vm; - -// var application = new Program(); -// application.Run(win); -// SingleInstance.Cleanup(); -// } -// } - -// public bool SignalExternalCommandLineArgs(IList args) -// { -// if (this.MainWindow.WindowState == WindowState.Minimized) -// { -// this.MainWindow.WindowState = WindowState.Normal; -// } -// this.MainWindow.Activate(); - -// return true; -// } -//} \ No newline at end of file diff --git a/src/c#/AutoUpdate.WpfNet6-Sample/App.xaml b/src/c#/AutoUpdate.WpfNet6-Sample/App.xaml deleted file mode 100644 index a666f5f9db20ca7889e8d5e7b69bc48d2c4989b5..0000000000000000000000000000000000000000 --- a/src/c#/AutoUpdate.WpfNet6-Sample/App.xaml +++ /dev/null @@ -1,6 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/c#/AutoUpdate.WpfNet6-Sample/App.xaml.cs b/src/c#/AutoUpdate.WpfNet6-Sample/App.xaml.cs deleted file mode 100644 index d0067ab21946e33a2cf3d6a29da1271c2b26e86b..0000000000000000000000000000000000000000 --- a/src/c#/AutoUpdate.WpfNet6-Sample/App.xaml.cs +++ /dev/null @@ -1,20 +0,0 @@ -using AutoUpdate.Core; -using System.Windows; - -namespace AutoUpdate.WpfNet6_Sample -{ - /// - /// Interaction logic for App.xaml - /// - public partial class App : Application - { - protected override void OnStartup(StartupEventArgs e) - { - //var args = e.Args[0]; - var args = "eyJBcHBUeXBlIjoxLCJBcHBOYW1lIjoiQXV0b1VwZGF0ZS5DbGllbnRDb3JlIiwiTWFpbkFwcE5hbWUiOm51bGwsIkluc3RhbGxQYXRoIjoiRDpcXGdpdF9jb21tdW5pdHlcXEdlbmVyYWxVcGRhdGVcXHNyY1xcYyNcXEF1dG9VcGRhdGUuQ2xpZW50Q29yZVxcYmluXFxEZWJ1Z1xcbmV0Ni4wLXdpbmRvd3MiLCJDbGllbnRWZXJzaW9uIjoiMS4wLjAuMCIsIkxhc3RWZXJzaW9uIjoiOS4xLjMuMCIsIlVwZGF0ZUxvZ1VybCI6bnVsbCwiSXNVcGRhdGUiOmZhbHNlLCJVcGRhdGVVcmwiOm51bGwsIlZhbGlkYXRlVXJsIjpudWxsLCJNYWluVXBkYXRlVXJsIjoiaHR0cDovLzEyNy4wLjAuMTo1MDAxL3ZlcnNpb25zLzEvMi40LjcuMCIsIk1haW5WYWxpZGF0ZVVybCI6Imh0dHA6Ly8xMjcuMC4wLjE6NTAwMS92YWxpZGF0ZS8xLzIuNC43LjAiLCJDb21wcmVzc0VuY29kaW5nIjo3LCJDb21wcmVzc0Zvcm1hdCI6Ii56aXAiLCJEb3dubG9hZFRpbWVPdXQiOjYwLCJVcGRhdGVWZXJzaW9ucyI6W3siUHViVGltZSI6MTYyNjcxMTc2MCwiTmFtZSI6bnVsbCwiTUQ1IjoiMWJmZDcyMzYyNThiMTJjNTFmZDA5ZjEzODA4MjM1ZGYiLCJWZXJzaW9uIjoiOS4xLjMuMCIsIlVybCI6bnVsbH1dfQ=="; - MainWindow window = new MainWindow(args); - window.ShowDialog(); - base.OnStartup(e); - } - } -} \ No newline at end of file diff --git a/src/c#/AutoUpdate.WpfNet6-Sample/AssemblyInfo.cs b/src/c#/AutoUpdate.WpfNet6-Sample/AssemblyInfo.cs deleted file mode 100644 index bfbf6e201ec7acf337b0164fbf261a446bcb9e1e..0000000000000000000000000000000000000000 --- a/src/c#/AutoUpdate.WpfNet6-Sample/AssemblyInfo.cs +++ /dev/null @@ -1,10 +0,0 @@ -using System.Windows; - -[assembly: ThemeInfo( - ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located - //(used if a resource is not found in the page, - // or application resource dictionaries) - ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located - //(used if a resource is not found in the page, - // app, or any theme specific resource dictionaries) -)] \ No newline at end of file diff --git a/src/c#/AutoUpdate.WpfNet6-Sample/AutoUpdate.Core.csproj b/src/c#/AutoUpdate.WpfNet6-Sample/AutoUpdate.Core.csproj deleted file mode 100644 index be85a22897e943f7da183b1ab70e4f1b65dfcc63..0000000000000000000000000000000000000000 --- a/src/c#/AutoUpdate.WpfNet6-Sample/AutoUpdate.Core.csproj +++ /dev/null @@ -1,60 +0,0 @@ - - - - WinExe - net6.0-windows - AutoUpdate.WpfNet6_Sample - enable - true - - - - - - - - - - PreserveNewest - - - PreserveNewest - - - - - - - - - - - - - - True - True - Resources.resx - - - True - True - Settings.settings - - - - - - ResXFileCodeGenerator - Resources.Designer.cs - - - - - - SettingsSingleFileGenerator - Settings.Designer.cs - - - - diff --git a/src/c#/AutoUpdate.WpfNet6-Sample/MainWindow.xaml b/src/c#/AutoUpdate.WpfNet6-Sample/MainWindow.xaml deleted file mode 100644 index ff4baf6572b3a3a7989363bca475e9791f7f190d..0000000000000000000000000000000000000000 --- a/src/c#/AutoUpdate.WpfNet6-Sample/MainWindow.xaml +++ /dev/null @@ -1,44 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/c#/AutoUpdate.WpfNet6-Sample/MainWindow.xaml.cs b/src/c#/AutoUpdate.WpfNet6-Sample/MainWindow.xaml.cs deleted file mode 100644 index 2be5ae53dee87a8bb3962a7f6188a88b9307f520..0000000000000000000000000000000000000000 --- a/src/c#/AutoUpdate.WpfNet6-Sample/MainWindow.xaml.cs +++ /dev/null @@ -1,17 +0,0 @@ -using AutoUpdate.Core.ViewModels; -using System.Windows; - -namespace AutoUpdate.Core -{ - /// - /// Interaction logic for MainWindow.xaml - /// - public partial class MainWindow : Window - { - public MainWindow(string args) - { - InitializeComponent(); - DataContext = new MainViewModel(args); - } - } -} \ No newline at end of file diff --git a/src/c#/AutoUpdate.WpfNet6-Sample/Properties/Resources.Designer.cs b/src/c#/AutoUpdate.WpfNet6-Sample/Properties/Resources.Designer.cs deleted file mode 100644 index 411d0faa2b6d408036c480212e1b413a5780fa4b..0000000000000000000000000000000000000000 --- a/src/c#/AutoUpdate.WpfNet6-Sample/Properties/Resources.Designer.cs +++ /dev/null @@ -1,72 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace AutoUpdate.WpfNet6_Sample.Properties { - using System; - - - /// - /// A strongly-typed resource class, for looking up localized strings, etc. - /// - // This class was auto-generated by the StronglyTypedResourceBuilder - // class via a tool like ResGen or Visual Studio. - // To add or remove a member, edit your .ResX file then rerun ResGen - // with the /str option, or rebuild your VS project. - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] - [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - internal class Resources { - - private static global::System.Resources.ResourceManager resourceMan; - - private static global::System.Globalization.CultureInfo resourceCulture; - - [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] - internal Resources() { - } - - /// - /// Returns the cached ResourceManager instance used by this class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Resources.ResourceManager ResourceManager { - get { - if (object.ReferenceEquals(resourceMan, null)) { - global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("AutoUpdate.WpfNet6_Sample.Properties.Resources", typeof(Resources).Assembly); - resourceMan = temp; - } - return resourceMan; - } - } - - /// - /// Overrides the current thread's CurrentUICulture property for all - /// resource lookups using this strongly typed resource class. - /// - [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] - internal static global::System.Globalization.CultureInfo Culture { - get { - return resourceCulture; - } - set { - resourceCulture = value; - } - } - - /// - /// Looks up a localized string similar to . - /// - internal static string String1 { - get { - return ResourceManager.GetString("String1", resourceCulture); - } - } - } -} diff --git a/src/c#/AutoUpdate.WpfNet6-Sample/Properties/Resources.resx b/src/c#/AutoUpdate.WpfNet6-Sample/Properties/Resources.resx deleted file mode 100644 index df275e3cfbf219032632bdc1b074b2fb3f02e5e8..0000000000000000000000000000000000000000 --- a/src/c#/AutoUpdate.WpfNet6-Sample/Properties/Resources.resx +++ /dev/null @@ -1,123 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - text/microsoft-resx - - - 2.0 - - - System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - - - - - \ No newline at end of file diff --git a/src/c#/AutoUpdate.WpfNet6-Sample/Properties/Settings.Designer.cs b/src/c#/AutoUpdate.WpfNet6-Sample/Properties/Settings.Designer.cs deleted file mode 100644 index d04cf5fa5fbd3a58ed5fb408bcc0ccd7bcca0018..0000000000000000000000000000000000000000 --- a/src/c#/AutoUpdate.WpfNet6-Sample/Properties/Settings.Designer.cs +++ /dev/null @@ -1,26 +0,0 @@ -//------------------------------------------------------------------------------ -// -// This code was generated by a tool. -// Runtime Version:4.0.30319.42000 -// -// Changes to this file may cause incorrect behavior and will be lost if -// the code is regenerated. -// -//------------------------------------------------------------------------------ - -namespace AutoUpdate.WpfNet6_Sample.Properties { - - - [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "17.1.0.0")] - internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase { - - private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings()))); - - public static Settings Default { - get { - return defaultInstance; - } - } - } -} diff --git a/src/c#/AutoUpdate.WpfNet6-Sample/Properties/Settings.settings b/src/c#/AutoUpdate.WpfNet6-Sample/Properties/Settings.settings deleted file mode 100644 index 049245f401462e7e3dfbb96385e122ca467a9dab..0000000000000000000000000000000000000000 --- a/src/c#/AutoUpdate.WpfNet6-Sample/Properties/Settings.settings +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - diff --git a/src/c#/AutoUpdate.WpfNet6-Sample/Properties/launchSettings.json b/src/c#/AutoUpdate.WpfNet6-Sample/Properties/launchSettings.json deleted file mode 100644 index 0fda08500a7963a0f89600f029461157ed77e9df..0000000000000000000000000000000000000000 --- a/src/c#/AutoUpdate.WpfNet6-Sample/Properties/launchSettings.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "profiles": { - "AutoUpdate.WpfNet6-Sample": { - "commandName": "Project", - "commandLineArgs": "eyJDbGllbnRUeXBlIjoxLCJBcHBOYW1lIjoiQXV0b1VwZGF0ZS5NYXVpQXBwLVNhbXBsZSIsIk1haW5BcHBOYW1lIjpudWxsLCJJbnN0YWxsUGF0aCI6IkQ6XFx1cGRhdGVfdGVzdCIsIkNsaWVudFZlcnNpb24iOiIxLjEuMSIsIkxhc3RWZXJzaW9uIjoiMS4xLjUiLCJVcGRhdGVMb2dVcmwiOiJodHRwczovL3d3dy5iYWlkdS5jb20vIiwiSXNVcGRhdGUiOmZhbHNlLCJVcGRhdGVVcmwiOiJodHRwOi8vMTI3LjAuMC4xOjUwMDEvdmVyc2lvbnMvMS8xLjEuMSIsIlZhbGlkYXRlVXJsIjpudWxsLCJNYWluVXBkYXRlVXJsIjpudWxsLCJNYWluVmFsaWRhdGVVcmwiOm51bGwsIlVwZGF0ZVZlcnNpb25zIjpbeyJQdWJUaW1lIjoxNjI2NzExNzYwLCJOYW1lIjpudWxsLCJNRDUiOiJmNjk4ZjkwMzJjMGQ1NDAxYmFjZDNiMGY1MzA5OTYxOCIsIlZlcnNpb24iOiIxLjEuMyIsIlVybCI6bnVsbCwiSXNVblppcCI6ZmFsc2V9LHsiUHViVGltZSI6MTYyNjcxMTgyMCwiTmFtZSI6bnVsbCwiTUQ1IjoiNmExMDQ2YTY2Y2VkZjUwOWJmYjJhNzcxYjJhN2E2NGUiLCJWZXJzaW9uIjoiMS4xLjQiLCJVcmwiOm51bGwsIklzVW5aaXAiOmZhbHNlfSx7IlB1YlRpbWUiOjE2MjY3MTE4ODAsIk5hbWUiOm51bGwsIk1ENSI6Ijc2ODljNDcyY2U3M2E0YjhmMWI3Yzc5MTczMTMzN2UxIiwiVmVyc2lvbiI6IjEuMS41IiwiVXJsIjpudWxsLCJJc1VuWmlwIjpmYWxzZX1dfQ==" - } - } -} \ No newline at end of file diff --git a/src/c#/AutoUpdate.WpfNet6-Sample/Resource/GU.jpg b/src/c#/AutoUpdate.WpfNet6-Sample/Resource/GU.jpg deleted file mode 100644 index c26c5621b182e77a06da70e4246a934aaf7db154..0000000000000000000000000000000000000000 Binary files a/src/c#/AutoUpdate.WpfNet6-Sample/Resource/GU.jpg and /dev/null differ diff --git a/src/c#/AutoUpdate.WpfNet6-Sample/Resource/bot.jpg b/src/c#/AutoUpdate.WpfNet6-Sample/Resource/bot.jpg deleted file mode 100644 index 7e05ef0c901abe42ec6a8f786409db2db3774c7f..0000000000000000000000000000000000000000 Binary files a/src/c#/AutoUpdate.WpfNet6-Sample/Resource/bot.jpg and /dev/null differ diff --git a/src/c#/AutoUpdate.WpfNet6-Sample/TestView.xaml b/src/c#/AutoUpdate.WpfNet6-Sample/TestView.xaml deleted file mode 100644 index cdf15e77f861cfe376ed11fb1baff4b9a42e169b..0000000000000000000000000000000000000000 --- a/src/c#/AutoUpdate.WpfNet6-Sample/TestView.xaml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/c#/AutoUpdate.WpfNet6-Sample/TestView.xaml.cs b/src/c#/AutoUpdate.WpfNet6-Sample/TestView.xaml.cs deleted file mode 100644 index 83aa50cf57cd39d013c038bd0f3dcdbf843c3812..0000000000000000000000000000000000000000 --- a/src/c#/AutoUpdate.WpfNet6-Sample/TestView.xaml.cs +++ /dev/null @@ -1,28 +0,0 @@ -using System.Windows; - -namespace AutoUpdate.WpfNet6_Sample -{ - /// - /// TestView.xaml 的交互逻辑 - /// - public partial class TestView : Window - { - public TestView() - { - InitializeComponent(); - } - - private void BtnTest_Click(object sender, RoutedEventArgs e) - { - //var context = new BaseContext(); - //context.TargetPath = "123"; - //context.SourcePath = "123"; - //IPipelineBuilder builder = new PipelineBuilder(context). - // UseMiddleware(). - // UseMiddleware(). - // UseMiddleware(). - // UseMiddleware(); - //builder.Launch(); - } - } -} \ No newline at end of file diff --git a/src/c#/AutoUpdate.ZIP/App.xaml b/src/c#/AutoUpdate.ZIP/App.xaml deleted file mode 100644 index ee3589e6aebaf80796b19a2e482d8e5afc70fc2d..0000000000000000000000000000000000000000 --- a/src/c#/AutoUpdate.ZIP/App.xaml +++ /dev/null @@ -1,7 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/c#/AutoUpdate.ZIP/App.xaml.cs b/src/c#/AutoUpdate.ZIP/App.xaml.cs deleted file mode 100644 index 5dbb1e3d83c611a58b9f7296b79ce189e6a74158..0000000000000000000000000000000000000000 --- a/src/c#/AutoUpdate.ZIP/App.xaml.cs +++ /dev/null @@ -1,11 +0,0 @@ -using System.Windows; - -namespace AutoUpdate.ZIP -{ - /// - /// Interaction logic for App.xaml - /// - public partial class App : Application - { - } -} \ No newline at end of file diff --git a/src/c#/AutoUpdate.ZIP/AssemblyInfo.cs b/src/c#/AutoUpdate.ZIP/AssemblyInfo.cs deleted file mode 100644 index bfbf6e201ec7acf337b0164fbf261a446bcb9e1e..0000000000000000000000000000000000000000 --- a/src/c#/AutoUpdate.ZIP/AssemblyInfo.cs +++ /dev/null @@ -1,10 +0,0 @@ -using System.Windows; - -[assembly: ThemeInfo( - ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located - //(used if a resource is not found in the page, - // or application resource dictionaries) - ResourceDictionaryLocation.SourceAssembly //where the generic resource dictionary is located - //(used if a resource is not found in the page, - // app, or any theme specific resource dictionaries) -)] \ No newline at end of file diff --git a/src/c#/AutoUpdate.ZIP/MainWindow.xaml b/src/c#/AutoUpdate.ZIP/MainWindow.xaml deleted file mode 100644 index 7866474debc9159a11c6687c59640d648ea0c65c..0000000000000000000000000000000000000000 --- a/src/c#/AutoUpdate.ZIP/MainWindow.xaml +++ /dev/null @@ -1,36 +0,0 @@ - - - - - - - -