diff --git a/Winform-AutoUpdate/Midea.MES.Update.Test/App.config b/Winform-AutoUpdate/Midea.MES.Update.Test/App.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/Winform-AutoUpdate/Midea.MES.Update.Test/App.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Winform-AutoUpdate/Midea.Mes.Common/Midea.Mes.Common.csproj b/Winform-AutoUpdate/Midea.MES.Update.Test/Midea.MES.Update.Test.csproj similarity index 64% rename from Winform-AutoUpdate/Midea.Mes.Common/Midea.Mes.Common.csproj rename to Winform-AutoUpdate/Midea.MES.Update.Test/Midea.MES.Update.Test.csproj index 846995e..56c697e 100644 --- a/Winform-AutoUpdate/Midea.Mes.Common/Midea.Mes.Common.csproj +++ b/Winform-AutoUpdate/Midea.MES.Update.Test/Midea.MES.Update.Test.csproj @@ -1,19 +1,19 @@ - + Debug AnyCPU - 20108e89-f727-4d06-8bcc-72fe15732c19 - Library - Properties - Midea.Mes.Common - Midea.Mes.Common + {FB78B044-B526-425A-ACA7-A6F1AAAABFBF} + Exe + Midea.MES.Update.Test + Midea.MES.Update.Test v4.5 512 true + AnyCPU true full false @@ -23,6 +23,7 @@ 4 + AnyCPU pdbonly true bin\Release\ @@ -31,24 +32,21 @@ 4 - - - - - - - - - - - - - - + + + + + + + + - + + + + - + \ No newline at end of file diff --git a/Winform-AutoUpdate/Midea.MES.Update.Test/Program.cs b/Winform-AutoUpdate/Midea.MES.Update.Test/Program.cs new file mode 100644 index 0000000..7833e40 --- /dev/null +++ b/Winform-AutoUpdate/Midea.MES.Update.Test/Program.cs @@ -0,0 +1,110 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.IO; +using System.Xml; + +namespace Midea.MES.Update.Test +{ + class Program + { + static void Main(string[] args) + { + //测试类 + #region 测试XML文件的生成 + //string url = "www.baidu.com"; + //string num = "1.0.0.1"; + //string date = Convert.ToString(DateTime.Now.ToString("yyyy-MM-dd hh:mi:ss")); + + //XmlDocument xd = new XmlDocument(); + //XmlDeclaration xmlDeclaration=xd.CreateXmlDeclaration("1.0", "utf-8", ""); + //xd.AppendChild(xmlDeclaration); + //XmlElement root=xd.CreateElement("AutoUpdater"); + //xd.AppendChild(root); + + //XmlElement urlElement = xd.CreateElement("URLAddress"); + //urlElement.SetAttribute("URL", url); + + //XmlElement updateElement = xd.CreateElement("UpdateInfo"); + + //XmlElement versionElement = xd.CreateElement("Version"); + //versionElement.SetAttribute("Num", num); + + //XmlElement updateTimeElement = xd.CreateElement("UpdateTime"); + //updateTimeElement.SetAttribute("Date", date); + + //updateElement.AppendChild(versionElement); + //updateElement.AppendChild(updateTimeElement); + + //XmlElement updateFileListEle = xd.CreateElement("UpdateFileList"); + //root.AppendChild(updateFileListEle); + //root.AppendChild(urlElement); + //root.AppendChild(updateElement); + + //xd.Save("test.xml"); + #endregion + + #region 测试文件 + //string dir = @"D:\workfile\运维小分队"; + //var files=new List(); + //GetFiles(dir,files); + //var fileModels = new List(); + //foreach(var t in files) + //{ + // var fileInfo = new FileInfo(t); + // fileModels.Add(new FileModel() + // { + // Ext = fileInfo.Extension, + // Name = fileInfo.Name, + // RelativeDir = fileInfo.DirectoryName.Replace(dir, ""), + // LastModifyTime=fileInfo.LastWriteTime, + // Lenght=fileInfo.Length + // }); + // ; + //} + //foreach(var file in fileModels) + //{ + // Console.WriteLine($"{file.Name} {file.Ext} {file.LastModifyTime} {file.RelativeDir}"); + //} + #endregion + #region 测试文件的创建 + FileStream fileStream = new FileStream("test/zhangzhen.txt", FileMode.OpenOrCreate); + var str = "我是中国人"; + fileStream.Write(Encoding.UTF8.GetBytes(str),0,str.Length); + #endregion + fileStream.Close(); + + Console.ReadKey(); + + + } + + static void GetFiles(string rootDir,List files) + { + var dirs=Directory.GetDirectories(rootDir); + foreach (var dir in dirs) + { + GetFiles(dir, files); + } + files.AddRange(Directory.GetFiles(rootDir)); + } + + } + + public class FileModel { + + public string Name { get; set; } + + public string Ext { get; set; } + + public DateTime LastModifyTime { get; set; } + + public string RelativeDir { get; set; } + + public long Lenght { get; set; } + + } + +} diff --git a/Winform-AutoUpdate/Midea.Mes.Common/Properties/AssemblyInfo.cs b/Winform-AutoUpdate/Midea.MES.Update.Test/Properties/AssemblyInfo.cs similarity index 87% rename from Winform-AutoUpdate/Midea.Mes.Common/Properties/AssemblyInfo.cs rename to Winform-AutoUpdate/Midea.MES.Update.Test/Properties/AssemblyInfo.cs index 6bc2833..bec17f3 100644 --- a/Winform-AutoUpdate/Midea.Mes.Common/Properties/AssemblyInfo.cs +++ b/Winform-AutoUpdate/Midea.MES.Update.Test/Properties/AssemblyInfo.cs @@ -5,11 +5,11 @@ using System.Runtime.InteropServices; // 有关程序集的一般信息由以下 // 控制。更改这些特性值可修改 // 与程序集关联的信息。 -[assembly: AssemblyTitle("Midea.Mes.Common")] +[assembly: AssemblyTitle("Midea.MES.Update.Test")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("Midea.Mes.Common")] +[assembly: AssemblyProduct("Midea.MES.Update.Test")] [assembly: AssemblyCopyright("Copyright © 2020")] [assembly: AssemblyTrademark("")] [assembly: AssemblyCulture("")] @@ -20,7 +20,7 @@ using System.Runtime.InteropServices; [assembly: ComVisible(false)] // 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID -[assembly: Guid("20108e89-f727-4d06-8bcc-72fe15732c19")] +[assembly: Guid("fb78b044-b526-425a-aca7-a6f1aaaabfbf")] // 程序集的版本信息由下列四个值组成: // diff --git a/Winform-AutoUpdate/Midea.MES.Update.Test/bin/Debug/Midea.MES.Update.Test.exe b/Winform-AutoUpdate/Midea.MES.Update.Test/bin/Debug/Midea.MES.Update.Test.exe new file mode 100644 index 0000000..a3be922 Binary files /dev/null and b/Winform-AutoUpdate/Midea.MES.Update.Test/bin/Debug/Midea.MES.Update.Test.exe differ diff --git a/Winform-AutoUpdate/Midea.MES.Update.Test/bin/Debug/Midea.MES.Update.Test.exe.config b/Winform-AutoUpdate/Midea.MES.Update.Test/bin/Debug/Midea.MES.Update.Test.exe.config new file mode 100644 index 0000000..8e15646 --- /dev/null +++ b/Winform-AutoUpdate/Midea.MES.Update.Test/bin/Debug/Midea.MES.Update.Test.exe.config @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Winform-AutoUpdate/Midea.MES.Update.Test/bin/Debug/Midea.MES.Update.Test.pdb b/Winform-AutoUpdate/Midea.MES.Update.Test/bin/Debug/Midea.MES.Update.Test.pdb new file mode 100644 index 0000000..3f51b39 Binary files /dev/null and b/Winform-AutoUpdate/Midea.MES.Update.Test/bin/Debug/Midea.MES.Update.Test.pdb differ diff --git a/Winform-AutoUpdate/Midea.MES.Update.Test/bin/Debug/test.xml b/Winform-AutoUpdate/Midea.MES.Update.Test/bin/Debug/test.xml new file mode 100644 index 0000000..9190645 --- /dev/null +++ b/Winform-AutoUpdate/Midea.MES.Update.Test/bin/Debug/test.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/Winform-AutoUpdate/Midea.Mes.BLL/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/Winform-AutoUpdate/Midea.MES.Update.Test/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache similarity index 51% rename from Winform-AutoUpdate/Midea.Mes.BLL/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache rename to Winform-AutoUpdate/Midea.MES.Update.Test/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache index fafd365..7a5d173 100644 Binary files a/Winform-AutoUpdate/Midea.Mes.BLL/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache and b/Winform-AutoUpdate/Midea.MES.Update.Test/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/Winform-AutoUpdate/Midea.MES.Update.Test/obj/Debug/Midea.MES.Update.Test.csproj.FileListAbsolute.txt b/Winform-AutoUpdate/Midea.MES.Update.Test/obj/Debug/Midea.MES.Update.Test.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..295b9d3 --- /dev/null +++ b/Winform-AutoUpdate/Midea.MES.Update.Test/obj/Debug/Midea.MES.Update.Test.csproj.FileListAbsolute.txt @@ -0,0 +1,6 @@ +D:\other\csharpCode\Winform-AutoUpdate\Winform-AutoUpdate\Midea.MES.Update.Test\bin\Debug\Midea.MES.Update.Test.exe.config +D:\other\csharpCode\Winform-AutoUpdate\Winform-AutoUpdate\Midea.MES.Update.Test\bin\Debug\Midea.MES.Update.Test.exe +D:\other\csharpCode\Winform-AutoUpdate\Winform-AutoUpdate\Midea.MES.Update.Test\bin\Debug\Midea.MES.Update.Test.pdb +D:\other\csharpCode\Winform-AutoUpdate\Winform-AutoUpdate\Midea.MES.Update.Test\obj\Debug\Midea.MES.Update.Test.exe +D:\other\csharpCode\Winform-AutoUpdate\Winform-AutoUpdate\Midea.MES.Update.Test\obj\Debug\Midea.MES.Update.Test.pdb +D:\other\csharpCode\Winform-AutoUpdate\Winform-AutoUpdate\Midea.MES.Update.Test\obj\Debug\Midea.MES.Update.Test.csprojAssemblyReference.cache diff --git a/Winform-AutoUpdate/Midea.Mes.Common/obj/Debug/Midea.Mes.Common.csprojAssemblyReference.cache b/Winform-AutoUpdate/Midea.MES.Update.Test/obj/Debug/Midea.MES.Update.Test.csprojAssemblyReference.cache similarity index 100% rename from Winform-AutoUpdate/Midea.Mes.Common/obj/Debug/Midea.Mes.Common.csprojAssemblyReference.cache rename to Winform-AutoUpdate/Midea.MES.Update.Test/obj/Debug/Midea.MES.Update.Test.csprojAssemblyReference.cache diff --git a/Winform-AutoUpdate/Midea.MES.Update.Test/obj/Debug/Midea.MES.Update.Test.exe b/Winform-AutoUpdate/Midea.MES.Update.Test/obj/Debug/Midea.MES.Update.Test.exe new file mode 100644 index 0000000..a3be922 Binary files /dev/null and b/Winform-AutoUpdate/Midea.MES.Update.Test/obj/Debug/Midea.MES.Update.Test.exe differ diff --git a/Winform-AutoUpdate/Midea.MES.Update.Test/obj/Debug/Midea.MES.Update.Test.pdb b/Winform-AutoUpdate/Midea.MES.Update.Test/obj/Debug/Midea.MES.Update.Test.pdb new file mode 100644 index 0000000..3f51b39 Binary files /dev/null and b/Winform-AutoUpdate/Midea.MES.Update.Test/obj/Debug/Midea.MES.Update.Test.pdb differ diff --git a/Winform-AutoUpdate/Midea.Mes.BLL/Class1.cs b/Winform-AutoUpdate/Midea.Mes.BLL/Class1.cs deleted file mode 100644 index dcabd86..0000000 --- a/Winform-AutoUpdate/Midea.Mes.BLL/Class1.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Midea.Mes.BLL -{ - public class Class1 - { - } -} diff --git a/Winform-AutoUpdate/Midea.Mes.BLL/Midea.Mes.BLL.csproj b/Winform-AutoUpdate/Midea.Mes.BLL/Midea.Mes.BLL.csproj deleted file mode 100644 index c004a29..0000000 --- a/Winform-AutoUpdate/Midea.Mes.BLL/Midea.Mes.BLL.csproj +++ /dev/null @@ -1,54 +0,0 @@ - - - - - Debug - AnyCPU - f774025a-f9be-4585-b362-adebc5b58cbb - Library - Properties - Midea.Mes.BLL - Midea.Mes.BLL - v4.5 - 512 - true - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Winform-AutoUpdate/Midea.Mes.BLL/Properties/AssemblyInfo.cs b/Winform-AutoUpdate/Midea.Mes.BLL/Properties/AssemblyInfo.cs deleted file mode 100644 index 39ef023..0000000 --- a/Winform-AutoUpdate/Midea.Mes.BLL/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// 有关程序集的一般信息由以下 -// 控制。更改这些特性值可修改 -// 与程序集关联的信息。 -[assembly: AssemblyTitle("Midea.Mes.BLL")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("Midea.Mes.BLL")] -[assembly: AssemblyCopyright("Copyright © 2020")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// 将 ComVisible 设置为 false 会使此程序集中的类型 -//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 -//请将此类型的 ComVisible 特性设置为 true。 -[assembly: ComVisible(false)] - -// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID -[assembly: Guid("f774025a-f9be-4585-b362-adebc5b58cbb")] - -// 程序集的版本信息由下列四个值组成: -// -// 主版本 -// 次版本 -// 生成号 -// 修订号 -// -//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值 -//通过使用 "*",如下所示: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Winform-AutoUpdate/Midea.Mes.BLL/bin/Debug/Midea.Mes.BLL.dll b/Winform-AutoUpdate/Midea.Mes.BLL/bin/Debug/Midea.Mes.BLL.dll deleted file mode 100644 index 0ea94e9..0000000 Binary files a/Winform-AutoUpdate/Midea.Mes.BLL/bin/Debug/Midea.Mes.BLL.dll and /dev/null differ diff --git a/Winform-AutoUpdate/Midea.Mes.BLL/bin/Debug/Midea.Mes.BLL.pdb b/Winform-AutoUpdate/Midea.Mes.BLL/bin/Debug/Midea.Mes.BLL.pdb deleted file mode 100644 index d86532e..0000000 Binary files a/Winform-AutoUpdate/Midea.Mes.BLL/bin/Debug/Midea.Mes.BLL.pdb and /dev/null differ diff --git a/Winform-AutoUpdate/Midea.Mes.BLL/obj/Debug/Midea.Mes.BLL.csproj.FileListAbsolute.txt b/Winform-AutoUpdate/Midea.Mes.BLL/obj/Debug/Midea.Mes.BLL.csproj.FileListAbsolute.txt deleted file mode 100644 index 4b2174a..0000000 --- a/Winform-AutoUpdate/Midea.Mes.BLL/obj/Debug/Midea.Mes.BLL.csproj.FileListAbsolute.txt +++ /dev/null @@ -1,4 +0,0 @@ -D:\other\csharpCode\Winform-AutoUpdate\Winform-AutoUpdate\Midea.Mes.BLL\bin\Debug\Midea.Mes.BLL.dll -D:\other\csharpCode\Winform-AutoUpdate\Winform-AutoUpdate\Midea.Mes.BLL\bin\Debug\Midea.Mes.BLL.pdb -D:\other\csharpCode\Winform-AutoUpdate\Winform-AutoUpdate\Midea.Mes.BLL\obj\Debug\Midea.Mes.BLL.dll -D:\other\csharpCode\Winform-AutoUpdate\Winform-AutoUpdate\Midea.Mes.BLL\obj\Debug\Midea.Mes.BLL.pdb diff --git a/Winform-AutoUpdate/Midea.Mes.BLL/obj/Debug/Midea.Mes.BLL.dll b/Winform-AutoUpdate/Midea.Mes.BLL/obj/Debug/Midea.Mes.BLL.dll deleted file mode 100644 index 0ea94e9..0000000 Binary files a/Winform-AutoUpdate/Midea.Mes.BLL/obj/Debug/Midea.Mes.BLL.dll and /dev/null differ diff --git a/Winform-AutoUpdate/Midea.Mes.BLL/obj/Debug/Midea.Mes.BLL.pdb b/Winform-AutoUpdate/Midea.Mes.BLL/obj/Debug/Midea.Mes.BLL.pdb deleted file mode 100644 index d86532e..0000000 Binary files a/Winform-AutoUpdate/Midea.Mes.BLL/obj/Debug/Midea.Mes.BLL.pdb and /dev/null differ diff --git a/Winform-AutoUpdate/Midea.Mes.Common/Class1.cs b/Winform-AutoUpdate/Midea.Mes.Common/Class1.cs deleted file mode 100644 index efb68b5..0000000 --- a/Winform-AutoUpdate/Midea.Mes.Common/Class1.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Midea.Mes.Common -{ - public class Class1 - { - } -} diff --git a/Winform-AutoUpdate/Midea.Mes.Common/bin/Debug/Midea.Mes.Common.dll b/Winform-AutoUpdate/Midea.Mes.Common/bin/Debug/Midea.Mes.Common.dll deleted file mode 100644 index 09401a4..0000000 Binary files a/Winform-AutoUpdate/Midea.Mes.Common/bin/Debug/Midea.Mes.Common.dll and /dev/null differ diff --git a/Winform-AutoUpdate/Midea.Mes.Common/bin/Debug/Midea.Mes.Common.pdb b/Winform-AutoUpdate/Midea.Mes.Common/bin/Debug/Midea.Mes.Common.pdb deleted file mode 100644 index 39b7c4f..0000000 Binary files a/Winform-AutoUpdate/Midea.Mes.Common/bin/Debug/Midea.Mes.Common.pdb and /dev/null differ diff --git a/Winform-AutoUpdate/Midea.Mes.Common/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/Winform-AutoUpdate/Midea.Mes.Common/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache deleted file mode 100644 index 28c2778..0000000 Binary files a/Winform-AutoUpdate/Midea.Mes.Common/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache and /dev/null differ diff --git a/Winform-AutoUpdate/Midea.Mes.Common/obj/Debug/Midea.Mes.Common.csproj.FileListAbsolute.txt b/Winform-AutoUpdate/Midea.Mes.Common/obj/Debug/Midea.Mes.Common.csproj.FileListAbsolute.txt deleted file mode 100644 index 13ae64b..0000000 --- a/Winform-AutoUpdate/Midea.Mes.Common/obj/Debug/Midea.Mes.Common.csproj.FileListAbsolute.txt +++ /dev/null @@ -1,5 +0,0 @@ -D:\other\csharpCode\Winform-AutoUpdate\Winform-AutoUpdate\Midea.Mes.Common\bin\Debug\Midea.Mes.Common.dll -D:\other\csharpCode\Winform-AutoUpdate\Winform-AutoUpdate\Midea.Mes.Common\bin\Debug\Midea.Mes.Common.pdb -D:\other\csharpCode\Winform-AutoUpdate\Winform-AutoUpdate\Midea.Mes.Common\obj\Debug\Midea.Mes.Common.dll -D:\other\csharpCode\Winform-AutoUpdate\Winform-AutoUpdate\Midea.Mes.Common\obj\Debug\Midea.Mes.Common.pdb -D:\other\csharpCode\Winform-AutoUpdate\Winform-AutoUpdate\Midea.Mes.Common\obj\Debug\Midea.Mes.Common.csprojAssemblyReference.cache diff --git a/Winform-AutoUpdate/Midea.Mes.Common/obj/Debug/Midea.Mes.Common.dll b/Winform-AutoUpdate/Midea.Mes.Common/obj/Debug/Midea.Mes.Common.dll deleted file mode 100644 index 09401a4..0000000 Binary files a/Winform-AutoUpdate/Midea.Mes.Common/obj/Debug/Midea.Mes.Common.dll and /dev/null differ diff --git a/Winform-AutoUpdate/Midea.Mes.Common/obj/Debug/Midea.Mes.Common.pdb b/Winform-AutoUpdate/Midea.Mes.Common/obj/Debug/Midea.Mes.Common.pdb deleted file mode 100644 index 39b7c4f..0000000 Binary files a/Winform-AutoUpdate/Midea.Mes.Common/obj/Debug/Midea.Mes.Common.pdb and /dev/null differ diff --git a/Winform-AutoUpdate/Midea.Mes.DAL/Class1.cs b/Winform-AutoUpdate/Midea.Mes.DAL/Class1.cs deleted file mode 100644 index bc2c9ab..0000000 --- a/Winform-AutoUpdate/Midea.Mes.DAL/Class1.cs +++ /dev/null @@ -1,12 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; -using System.Threading.Tasks; - -namespace Midea.Mes.DAL -{ - public class Class1 - { - } -} diff --git a/Winform-AutoUpdate/Midea.Mes.DAL/Midea.Mes.DAL.csproj b/Winform-AutoUpdate/Midea.Mes.DAL/Midea.Mes.DAL.csproj deleted file mode 100644 index 47e257b..0000000 --- a/Winform-AutoUpdate/Midea.Mes.DAL/Midea.Mes.DAL.csproj +++ /dev/null @@ -1,54 +0,0 @@ - - - - - Debug - AnyCPU - e511d19f-be15-4d50-b81c-3b1bf946a75f - Library - Properties - Midea.Mes.DAL - Midea.Mes.DAL - v4.5 - 512 - true - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Winform-AutoUpdate/Midea.Mes.DAL/Properties/AssemblyInfo.cs b/Winform-AutoUpdate/Midea.Mes.DAL/Properties/AssemblyInfo.cs deleted file mode 100644 index 09ed7e3..0000000 --- a/Winform-AutoUpdate/Midea.Mes.DAL/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// 有关程序集的一般信息由以下 -// 控制。更改这些特性值可修改 -// 与程序集关联的信息。 -[assembly: AssemblyTitle("Midea.Mes.DAL")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("Midea.Mes.DAL")] -[assembly: AssemblyCopyright("Copyright © 2020")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// 将 ComVisible 设置为 false 会使此程序集中的类型 -//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 -//请将此类型的 ComVisible 特性设置为 true。 -[assembly: ComVisible(false)] - -// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID -[assembly: Guid("e511d19f-be15-4d50-b81c-3b1bf946a75f")] - -// 程序集的版本信息由下列四个值组成: -// -// 主版本 -// 次版本 -// 生成号 -// 修订号 -// -//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值 -//通过使用 "*",如下所示: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/Winform-AutoUpdate/Midea.Mes.DAL/bin/Debug/Midea.Mes.DAL.dll b/Winform-AutoUpdate/Midea.Mes.DAL/bin/Debug/Midea.Mes.DAL.dll deleted file mode 100644 index 99f8cc6..0000000 Binary files a/Winform-AutoUpdate/Midea.Mes.DAL/bin/Debug/Midea.Mes.DAL.dll and /dev/null differ diff --git a/Winform-AutoUpdate/Midea.Mes.DAL/bin/Debug/Midea.Mes.DAL.pdb b/Winform-AutoUpdate/Midea.Mes.DAL/bin/Debug/Midea.Mes.DAL.pdb deleted file mode 100644 index a9b687e..0000000 Binary files a/Winform-AutoUpdate/Midea.Mes.DAL/bin/Debug/Midea.Mes.DAL.pdb and /dev/null differ diff --git a/Winform-AutoUpdate/Midea.Mes.DAL/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/Winform-AutoUpdate/Midea.Mes.DAL/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache deleted file mode 100644 index 0aca46c..0000000 Binary files a/Winform-AutoUpdate/Midea.Mes.DAL/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache and /dev/null differ diff --git a/Winform-AutoUpdate/Midea.Mes.DAL/obj/Debug/Midea.Mes.DAL.csproj.FileListAbsolute.txt b/Winform-AutoUpdate/Midea.Mes.DAL/obj/Debug/Midea.Mes.DAL.csproj.FileListAbsolute.txt deleted file mode 100644 index b368cc6..0000000 --- a/Winform-AutoUpdate/Midea.Mes.DAL/obj/Debug/Midea.Mes.DAL.csproj.FileListAbsolute.txt +++ /dev/null @@ -1,4 +0,0 @@ -D:\other\csharpCode\Winform-AutoUpdate\Winform-AutoUpdate\Midea.Mes.DAL\bin\Debug\Midea.Mes.DAL.dll -D:\other\csharpCode\Winform-AutoUpdate\Winform-AutoUpdate\Midea.Mes.DAL\bin\Debug\Midea.Mes.DAL.pdb -D:\other\csharpCode\Winform-AutoUpdate\Winform-AutoUpdate\Midea.Mes.DAL\obj\Debug\Midea.Mes.DAL.dll -D:\other\csharpCode\Winform-AutoUpdate\Winform-AutoUpdate\Midea.Mes.DAL\obj\Debug\Midea.Mes.DAL.pdb diff --git a/Winform-AutoUpdate/Midea.Mes.DAL/obj/Debug/Midea.Mes.DAL.dll b/Winform-AutoUpdate/Midea.Mes.DAL/obj/Debug/Midea.Mes.DAL.dll deleted file mode 100644 index 99f8cc6..0000000 Binary files a/Winform-AutoUpdate/Midea.Mes.DAL/obj/Debug/Midea.Mes.DAL.dll and /dev/null differ diff --git a/Winform-AutoUpdate/Midea.Mes.DAL/obj/Debug/Midea.Mes.DAL.pdb b/Winform-AutoUpdate/Midea.Mes.DAL/obj/Debug/Midea.Mes.DAL.pdb deleted file mode 100644 index a9b687e..0000000 Binary files a/Winform-AutoUpdate/Midea.Mes.DAL/obj/Debug/Midea.Mes.DAL.pdb and /dev/null differ diff --git a/Winform-AutoUpdate/Midea.Mes.Frm/Config/UpdateList.xml b/Winform-AutoUpdate/Midea.Mes.Frm/Config/UpdateList.xml deleted file mode 100644 index 9aa4a58..0000000 --- a/Winform-AutoUpdate/Midea.Mes.Frm/Config/UpdateList.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - diff --git a/Winform-AutoUpdate/Midea.Mes.Frm/MainFrm.Designer.cs b/Winform-AutoUpdate/Midea.Mes.Frm/MainFrm.Designer.cs index 9322848..59397e7 100644 --- a/Winform-AutoUpdate/Midea.Mes.Frm/MainFrm.Designer.cs +++ b/Winform-AutoUpdate/Midea.Mes.Frm/MainFrm.Designer.cs @@ -36,6 +36,8 @@ this.SystemMenu = new System.Windows.Forms.ToolStripMenuItem(); this.关于我们ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.checkUpdateMenu = new System.Windows.Forms.ToolStripMenuItem(); + this.生产标签打印ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); + this.生产标签打印V10ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); this.menuStrip1.SuspendLayout(); this.SuspendLayout(); // @@ -55,6 +57,9 @@ // // 生产ToolStripMenuItem // + this.生产ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { + this.生产标签打印ToolStripMenuItem, + this.生产标签打印V10ToolStripMenuItem}); this.生产ToolStripMenuItem.Name = "生产ToolStripMenuItem"; this.生产ToolStripMenuItem.Size = new System.Drawing.Size(44, 21); this.生产ToolStripMenuItem.Text = "生产"; @@ -99,6 +104,18 @@ this.checkUpdateMenu.Text = "系统更新"; this.checkUpdateMenu.Click += new System.EventHandler(this.checkUpdateMenu_Click); // + // 生产标签打印ToolStripMenuItem + // + this.生产标签打印ToolStripMenuItem.Name = "生产标签打印ToolStripMenuItem"; + this.生产标签打印ToolStripMenuItem.Size = new System.Drawing.Size(180, 22); + this.生产标签打印ToolStripMenuItem.Text = "生产标签打印"; + // + // 生产标签打印V10ToolStripMenuItem + // + this.生产标签打印V10ToolStripMenuItem.Name = "生产标签打印V10ToolStripMenuItem"; + this.生产标签打印V10ToolStripMenuItem.Size = new System.Drawing.Size(180, 22); + this.生产标签打印V10ToolStripMenuItem.Text = "生产标签打印V1.0"; + // // MainFrm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); @@ -125,6 +142,8 @@ private System.Windows.Forms.ToolStripMenuItem SystemMenu; private System.Windows.Forms.ToolStripMenuItem 关于我们ToolStripMenuItem; private System.Windows.Forms.ToolStripMenuItem checkUpdateMenu; + private System.Windows.Forms.ToolStripMenuItem 生产标签打印ToolStripMenuItem; + private System.Windows.Forms.ToolStripMenuItem 生产标签打印V10ToolStripMenuItem; } } diff --git a/Winform-AutoUpdate/Midea.Mes.Frm/Midea.Mes.Frm.csproj b/Winform-AutoUpdate/Midea.Mes.Frm/Midea.Mes.Frm.csproj index db5239d..af776e4 100644 --- a/Winform-AutoUpdate/Midea.Mes.Frm/Midea.Mes.Frm.csproj +++ b/Winform-AutoUpdate/Midea.Mes.Frm/Midea.Mes.Frm.csproj @@ -79,27 +79,10 @@ - - {f774025a-f9be-4585-b362-adebc5b58cbb} - Midea.Mes.BLL - - - {20108e89-f727-4d06-8bcc-72fe15732c19} - Midea.Mes.Common - - - {e511d19f-be15-4d50-b81c-3b1bf946a75f} - Midea.Mes.DAL - {ae848395-70f7-4517-a1d2-26c03803f832} Midea.Mes.Update - - - Always - - \ No newline at end of file diff --git a/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/1.txt b/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/1.txt deleted file mode 100644 index 5ab000c..0000000 --- a/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/1.txt +++ /dev/null @@ -1,3 +0,0 @@ -123 -12312 -123123 \ No newline at end of file diff --git a/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/2.txt b/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/2.txt deleted file mode 100644 index b1bc474..0000000 --- a/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/2.txt +++ /dev/null @@ -1,3 +0,0 @@ -12312 -09091 -123123 \ No newline at end of file diff --git a/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/3.docx b/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/3.docx deleted file mode 100644 index 64447c8..0000000 Binary files a/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/3.docx and /dev/null differ diff --git a/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/4.docx b/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/4.docx deleted file mode 100644 index 38bfb6f..0000000 Binary files a/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/4.docx and /dev/null differ diff --git a/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/Config/UpdateList.xml b/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/Config/UpdateList.xml deleted file mode 100644 index 9aa4a58..0000000 --- a/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/Config/UpdateList.xml +++ /dev/null @@ -1,13 +0,0 @@ - - - - - - - - - - - - - diff --git a/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/Midea.Mes.BLL.dll b/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/Midea.Mes.BLL.dll deleted file mode 100644 index 0ea94e9..0000000 Binary files a/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/Midea.Mes.BLL.dll and /dev/null differ diff --git a/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/Midea.Mes.BLL.pdb b/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/Midea.Mes.BLL.pdb deleted file mode 100644 index d86532e..0000000 Binary files a/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/Midea.Mes.BLL.pdb and /dev/null differ diff --git a/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/Midea.Mes.Common.dll b/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/Midea.Mes.Common.dll deleted file mode 100644 index 09401a4..0000000 Binary files a/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/Midea.Mes.Common.dll and /dev/null differ diff --git a/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/Midea.Mes.Common.pdb b/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/Midea.Mes.Common.pdb deleted file mode 100644 index 39b7c4f..0000000 Binary files a/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/Midea.Mes.Common.pdb and /dev/null differ diff --git a/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/Midea.Mes.DAL.dll b/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/Midea.Mes.DAL.dll deleted file mode 100644 index 99f8cc6..0000000 Binary files a/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/Midea.Mes.DAL.dll and /dev/null differ diff --git a/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/Midea.Mes.DAL.pdb b/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/Midea.Mes.DAL.pdb deleted file mode 100644 index a9b687e..0000000 Binary files a/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/Midea.Mes.DAL.pdb and /dev/null differ diff --git a/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/Midea.Mes.Frm.exe b/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/Midea.Mes.Frm.exe index aa1ad69..27c3eb7 100644 Binary files a/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/Midea.Mes.Frm.exe and b/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/Midea.Mes.Frm.exe differ diff --git a/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/Midea.Mes.Frm.pdb b/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/Midea.Mes.Frm.pdb index 09c377c..21d1d79 100644 Binary files a/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/Midea.Mes.Frm.pdb and b/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/Midea.Mes.Frm.pdb differ diff --git a/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/Midea.Mes.Update.exe b/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/Midea.Mes.Update.exe index 13d2163..90a0bc0 100644 Binary files a/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/Midea.Mes.Update.exe and b/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/Midea.Mes.Update.exe differ diff --git a/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/Midea.Mes.Update.pdb b/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/Midea.Mes.Update.pdb index 943ad32..de81655 100644 Binary files a/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/Midea.Mes.Update.pdb and b/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/Midea.Mes.Update.pdb differ diff --git a/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/UpdateList.xml b/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/UpdateList.xml deleted file mode 100644 index 39d2a58..0000000 --- a/Winform-AutoUpdate/Midea.Mes.Frm/bin/Debug/UpdateList.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - diff --git a/Winform-AutoUpdate/Midea.Mes.Frm/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/Winform-AutoUpdate/Midea.Mes.Frm/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache index 7e9af18..6456fd4 100644 Binary files a/Winform-AutoUpdate/Midea.Mes.Frm/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache and b/Winform-AutoUpdate/Midea.Mes.Frm/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/Winform-AutoUpdate/Midea.Mes.Frm/obj/Debug/Midea.Mes.Frm.csproj.FileListAbsolute.txt b/Winform-AutoUpdate/Midea.Mes.Frm/obj/Debug/Midea.Mes.Frm.csproj.FileListAbsolute.txt index 854fc84..8ea1531 100644 --- a/Winform-AutoUpdate/Midea.Mes.Frm/obj/Debug/Midea.Mes.Frm.csproj.FileListAbsolute.txt +++ b/Winform-AutoUpdate/Midea.Mes.Frm/obj/Debug/Midea.Mes.Frm.csproj.FileListAbsolute.txt @@ -1,13 +1,7 @@ D:\other\csharpCode\Winform-AutoUpdate\Winform-AutoUpdate\Midea.Mes.Frm\bin\Debug\Midea.Mes.Frm.exe.config D:\other\csharpCode\Winform-AutoUpdate\Winform-AutoUpdate\Midea.Mes.Frm\bin\Debug\Midea.Mes.Frm.exe D:\other\csharpCode\Winform-AutoUpdate\Winform-AutoUpdate\Midea.Mes.Frm\bin\Debug\Midea.Mes.Frm.pdb -D:\other\csharpCode\Winform-AutoUpdate\Winform-AutoUpdate\Midea.Mes.Frm\bin\Debug\Midea.Mes.BLL.dll -D:\other\csharpCode\Winform-AutoUpdate\Winform-AutoUpdate\Midea.Mes.Frm\bin\Debug\Midea.Mes.Common.dll -D:\other\csharpCode\Winform-AutoUpdate\Winform-AutoUpdate\Midea.Mes.Frm\bin\Debug\Midea.Mes.DAL.dll D:\other\csharpCode\Winform-AutoUpdate\Winform-AutoUpdate\Midea.Mes.Frm\bin\Debug\Midea.Mes.Update.exe -D:\other\csharpCode\Winform-AutoUpdate\Winform-AutoUpdate\Midea.Mes.Frm\bin\Debug\Midea.Mes.BLL.pdb -D:\other\csharpCode\Winform-AutoUpdate\Winform-AutoUpdate\Midea.Mes.Frm\bin\Debug\Midea.Mes.Common.pdb -D:\other\csharpCode\Winform-AutoUpdate\Winform-AutoUpdate\Midea.Mes.Frm\bin\Debug\Midea.Mes.DAL.pdb D:\other\csharpCode\Winform-AutoUpdate\Winform-AutoUpdate\Midea.Mes.Frm\bin\Debug\Midea.Mes.Update.pdb D:\other\csharpCode\Winform-AutoUpdate\Winform-AutoUpdate\Midea.Mes.Frm\bin\Debug\Midea.Mes.Update.exe.config D:\other\csharpCode\Winform-AutoUpdate\Winform-AutoUpdate\Midea.Mes.Frm\obj\Debug\Midea.Mes.Frm.csprojAssemblyReference.cache @@ -17,4 +11,3 @@ D:\other\csharpCode\Winform-AutoUpdate\Winform-AutoUpdate\Midea.Mes.Frm\obj\Debu D:\other\csharpCode\Winform-AutoUpdate\Winform-AutoUpdate\Midea.Mes.Frm\obj\Debug\Midea.Mes.Frm.csproj.CopyComplete D:\other\csharpCode\Winform-AutoUpdate\Winform-AutoUpdate\Midea.Mes.Frm\obj\Debug\Midea.Mes.Frm.exe D:\other\csharpCode\Winform-AutoUpdate\Winform-AutoUpdate\Midea.Mes.Frm\obj\Debug\Midea.Mes.Frm.pdb -D:\other\csharpCode\Winform-AutoUpdate\Winform-AutoUpdate\Midea.Mes.Frm\bin\Debug\Config\UpdateList.xml diff --git a/Winform-AutoUpdate/Midea.Mes.Frm/obj/Debug/Midea.Mes.Frm.csproj.GenerateResource.cache b/Winform-AutoUpdate/Midea.Mes.Frm/obj/Debug/Midea.Mes.Frm.csproj.GenerateResource.cache index da2ecc4..de6e25e 100644 Binary files a/Winform-AutoUpdate/Midea.Mes.Frm/obj/Debug/Midea.Mes.Frm.csproj.GenerateResource.cache and b/Winform-AutoUpdate/Midea.Mes.Frm/obj/Debug/Midea.Mes.Frm.csproj.GenerateResource.cache differ diff --git a/Winform-AutoUpdate/Midea.Mes.Frm/obj/Debug/Midea.Mes.Frm.csprojAssemblyReference.cache b/Winform-AutoUpdate/Midea.Mes.Frm/obj/Debug/Midea.Mes.Frm.csprojAssemblyReference.cache index e2b06f4..992e28b 100644 Binary files a/Winform-AutoUpdate/Midea.Mes.Frm/obj/Debug/Midea.Mes.Frm.csprojAssemblyReference.cache and b/Winform-AutoUpdate/Midea.Mes.Frm/obj/Debug/Midea.Mes.Frm.csprojAssemblyReference.cache differ diff --git a/Winform-AutoUpdate/Midea.Mes.Frm/obj/Debug/Midea.Mes.Frm.exe b/Winform-AutoUpdate/Midea.Mes.Frm/obj/Debug/Midea.Mes.Frm.exe index aa1ad69..27c3eb7 100644 Binary files a/Winform-AutoUpdate/Midea.Mes.Frm/obj/Debug/Midea.Mes.Frm.exe and b/Winform-AutoUpdate/Midea.Mes.Frm/obj/Debug/Midea.Mes.Frm.exe differ diff --git a/Winform-AutoUpdate/Midea.Mes.Frm/obj/Debug/Midea.Mes.Frm.pdb b/Winform-AutoUpdate/Midea.Mes.Frm/obj/Debug/Midea.Mes.Frm.pdb index 09c377c..21d1d79 100644 Binary files a/Winform-AutoUpdate/Midea.Mes.Frm/obj/Debug/Midea.Mes.Frm.pdb and b/Winform-AutoUpdate/Midea.Mes.Frm/obj/Debug/Midea.Mes.Frm.pdb differ diff --git a/Winform-AutoUpdate/Midea.Mes.Generate/App.config b/Winform-AutoUpdate/Midea.Mes.Generate/App.config index 8e15646..dcf398b 100644 --- a/Winform-AutoUpdate/Midea.Mes.Generate/App.config +++ b/Winform-AutoUpdate/Midea.Mes.Generate/App.config @@ -1,6 +1,16 @@  - - - + + + + + + + + + + + + + \ No newline at end of file diff --git a/Winform-AutoUpdate/Midea.Mes.Generate/GenerateFrm.Designer.cs b/Winform-AutoUpdate/Midea.Mes.Generate/GenerateFrm.Designer.cs index 9e98a9d..ca92b3b 100644 --- a/Winform-AutoUpdate/Midea.Mes.Generate/GenerateFrm.Designer.cs +++ b/Winform-AutoUpdate/Midea.Mes.Generate/GenerateFrm.Designer.cs @@ -28,13 +28,36 @@ /// private void InitializeComponent() { + this.btnGenerate = new System.Windows.Forms.Button(); + this.btnPublishTest = new System.Windows.Forms.Button(); this.SuspendLayout(); // + // btnGenerate + // + this.btnGenerate.Location = new System.Drawing.Point(13, 13); + this.btnGenerate.Name = "btnGenerate"; + this.btnGenerate.Size = new System.Drawing.Size(119, 27); + this.btnGenerate.TabIndex = 0; + this.btnGenerate.Text = "生成更新文件"; + this.btnGenerate.UseVisualStyleBackColor = true; + this.btnGenerate.Click += new System.EventHandler(this.btnGenerate_Click); + // + // btnPublishTest + // + this.btnPublishTest.Location = new System.Drawing.Point(180, 13); + this.btnPublishTest.Name = "btnPublishTest"; + this.btnPublishTest.Size = new System.Drawing.Size(126, 27); + this.btnPublishTest.TabIndex = 1; + this.btnPublishTest.Text = "一键部署到测试环境"; + this.btnPublishTest.UseVisualStyleBackColor = true; + // // GenerateFrm // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.ClientSize = new System.Drawing.Size(800, 450); + this.Controls.Add(this.btnPublishTest); + this.Controls.Add(this.btnGenerate); this.Name = "GenerateFrm"; this.Text = "更新文件生成程序"; this.ResumeLayout(false); @@ -42,6 +65,9 @@ } #endregion + + private System.Windows.Forms.Button btnGenerate; + private System.Windows.Forms.Button btnPublishTest; } } diff --git a/Winform-AutoUpdate/Midea.Mes.Generate/GenerateFrm.cs b/Winform-AutoUpdate/Midea.Mes.Generate/GenerateFrm.cs index 9fd1e50..fb645c6 100644 --- a/Winform-AutoUpdate/Midea.Mes.Generate/GenerateFrm.cs +++ b/Winform-AutoUpdate/Midea.Mes.Generate/GenerateFrm.cs @@ -7,6 +7,9 @@ using System.Linq; using System.Text; using System.Threading.Tasks; using System.Windows.Forms; +using System.IO; +using System.Configuration; +using System.Xml; namespace Midea.Mes.Generate { @@ -16,5 +19,103 @@ namespace Midea.Mes.Generate { InitializeComponent(); } + + private void btnGenerate_Click(object sender, EventArgs e) + { + //从指定目录下读取出文件。 + var rootDir = ConfigurationManager.AppSettings["SearchDir"]; + var ignoredDir = ConfigurationManager.AppSettings["IgnoredDir"]; + var AdancedDay = ConfigurationManager.AppSettings["AddvancedDay"]; + string version = "1.0.0.1"; + string url = "http://192.168.232.1:8090/"; + string num = "1.0.0.1"; + string date = Convert.ToString(DateTime.Now.ToString("yyyy-MM-dd hh:mm:ss")); + var updateFiles = GetUpdateFileModels(rootDir, version); + //去除包含pdb文件 + updateFiles = updateFiles.Where(d => !d.Name.Contains("pdb")&&!d.Name.Contains("Update")).ToList(); + //然后根据需要做一些筛选。 + //生成XML文件 + BuildXMLFile(updateFiles, url, num, date); + } + + private void BuildXMLFile(List updateFiles,string url,string num,string date) + { + //用DOM的方式来操作XML。 + if (File.Exists("UpdateList.xml")) + { + File.Delete("UpdateList.xml"); + } + XmlDocument xd = new XmlDocument(); + XmlDeclaration xmlDeclaration = xd.CreateXmlDeclaration("1.0", "utf-8", ""); + xd.AppendChild(xmlDeclaration); + XmlElement root = xd.CreateElement("AutoUpdater"); + xd.AppendChild(root); + + XmlElement urlElement = xd.CreateElement("URLAddress"); + urlElement.SetAttribute("URL", url); + + XmlElement updateElement = xd.CreateElement("UpdateInfo"); + + XmlElement versionElement = xd.CreateElement("Version"); + versionElement.SetAttribute("Num", num); + + XmlElement updateTimeElement = xd.CreateElement("UpdateTime"); + updateTimeElement.SetAttribute("Date", date); + + updateElement.AppendChild(versionElement); + updateElement.AppendChild(updateTimeElement); + XmlElement updateFileListEle = xd.CreateElement("UpdateFileList"); + foreach(var file in updateFiles) + { + XmlElement updateFileEle = xd.CreateElement("UpdateFile"); + updateFileEle.SetAttribute("Ver",file.Version); + updateFileEle.SetAttribute("FileName",file.Name); + updateFileEle.SetAttribute("ContentLength",file.Lenght.ToString()); + updateFileListEle.AppendChild(updateFileEle); + } + root.AppendChild(updateFileListEle); + root.AppendChild(urlElement); + root.AppendChild(updateElement); + xd.Save("UpdateList.xml"); + } + + + + + private List GetUpdateFileModels(string rootDir,string version) + { + var result = new List(); + var filePaths = new List(); + GetFiles(rootDir, filePaths); + var fileModels = new List(); + foreach (var t in filePaths) + { + var fileInfo = new FileInfo(t); + result.Add(new UpdateFileModel() + { + Ext = fileInfo.Extension, + Name = fileInfo.Name, + RelativeDir = fileInfo.DirectoryName.Replace(rootDir, ""), + LastModifyTime = fileInfo.LastWriteTime, + Lenght = fileInfo.Length, + Version= version + }); + } + return result; + } + + + private void GetFiles(string rootDir, List files) + { + var dirs = Directory.GetDirectories(rootDir); + foreach (var dir in dirs) + { + GetFiles(dir, files); + } + files.AddRange(Directory.GetFiles(rootDir)); + } + + + } } diff --git a/Winform-AutoUpdate/Midea.Mes.Generate/Midea.Mes.Generate.csproj b/Winform-AutoUpdate/Midea.Mes.Generate/Midea.Mes.Generate.csproj index 93d3cb1..d06f8b0 100644 --- a/Winform-AutoUpdate/Midea.Mes.Generate/Midea.Mes.Generate.csproj +++ b/Winform-AutoUpdate/Midea.Mes.Generate/Midea.Mes.Generate.csproj @@ -33,6 +33,7 @@ + @@ -53,6 +54,7 @@ + GenerateFrm.cs diff --git a/Winform-AutoUpdate/Midea.Mes.Generate/UpdateModel.cs b/Winform-AutoUpdate/Midea.Mes.Generate/UpdateModel.cs new file mode 100644 index 0000000..e1f67c9 --- /dev/null +++ b/Winform-AutoUpdate/Midea.Mes.Generate/UpdateModel.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Midea.Mes.Generate +{ + public class UpdateFileModel + { + public string Name { get; set; } + + public string Ext { get; set; } + + public DateTime LastModifyTime { get; set; } + + public string RelativeDir { get; set; } + + public long Lenght { get; set; } + + public string Version { get; set; } + } +} diff --git a/Winform-AutoUpdate/Midea.Mes.Generate/bin/Debug/Midea.Mes.Generate.exe b/Winform-AutoUpdate/Midea.Mes.Generate/bin/Debug/Midea.Mes.Generate.exe new file mode 100644 index 0000000..972113f Binary files /dev/null and b/Winform-AutoUpdate/Midea.Mes.Generate/bin/Debug/Midea.Mes.Generate.exe differ diff --git a/Winform-AutoUpdate/Midea.Mes.Generate/bin/Debug/Midea.Mes.Generate.exe.config b/Winform-AutoUpdate/Midea.Mes.Generate/bin/Debug/Midea.Mes.Generate.exe.config new file mode 100644 index 0000000..dcf398b --- /dev/null +++ b/Winform-AutoUpdate/Midea.Mes.Generate/bin/Debug/Midea.Mes.Generate.exe.config @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/Winform-AutoUpdate/Midea.Mes.Generate/bin/Debug/Midea.Mes.Generate.pdb b/Winform-AutoUpdate/Midea.Mes.Generate/bin/Debug/Midea.Mes.Generate.pdb new file mode 100644 index 0000000..42c63eb Binary files /dev/null and b/Winform-AutoUpdate/Midea.Mes.Generate/bin/Debug/Midea.Mes.Generate.pdb differ diff --git a/Winform-AutoUpdate/Midea.Mes.Generate/bin/Debug/UpdateList.xml b/Winform-AutoUpdate/Midea.Mes.Generate/bin/Debug/UpdateList.xml new file mode 100644 index 0000000..6d2dc20 --- /dev/null +++ b/Winform-AutoUpdate/Midea.Mes.Generate/bin/Debug/UpdateList.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/Winform-AutoUpdate/Midea.Mes.Generate/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/Winform-AutoUpdate/Midea.Mes.Generate/obj/Debug/DesignTimeResolveAssemblyReferences.cache new file mode 100644 index 0000000..d679710 Binary files /dev/null and b/Winform-AutoUpdate/Midea.Mes.Generate/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/Winform-AutoUpdate/Midea.Mes.Generate/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/Winform-AutoUpdate/Midea.Mes.Generate/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache index b3774d0..3cbca76 100644 Binary files a/Winform-AutoUpdate/Midea.Mes.Generate/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache and b/Winform-AutoUpdate/Midea.Mes.Generate/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/Winform-AutoUpdate/Midea.Mes.Generate/obj/Debug/Midea.Mes.Generate.GenerateFrm.resources b/Winform-AutoUpdate/Midea.Mes.Generate/obj/Debug/Midea.Mes.Generate.GenerateFrm.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/Winform-AutoUpdate/Midea.Mes.Generate/obj/Debug/Midea.Mes.Generate.GenerateFrm.resources differ diff --git a/Winform-AutoUpdate/Midea.Mes.Generate/obj/Debug/Midea.Mes.Generate.Properties.Resources.resources b/Winform-AutoUpdate/Midea.Mes.Generate/obj/Debug/Midea.Mes.Generate.Properties.Resources.resources new file mode 100644 index 0000000..6c05a97 Binary files /dev/null and b/Winform-AutoUpdate/Midea.Mes.Generate/obj/Debug/Midea.Mes.Generate.Properties.Resources.resources differ diff --git a/Winform-AutoUpdate/Midea.Mes.Generate/obj/Debug/Midea.Mes.Generate.csproj.FileListAbsolute.txt b/Winform-AutoUpdate/Midea.Mes.Generate/obj/Debug/Midea.Mes.Generate.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..a5f80cf --- /dev/null +++ b/Winform-AutoUpdate/Midea.Mes.Generate/obj/Debug/Midea.Mes.Generate.csproj.FileListAbsolute.txt @@ -0,0 +1,8 @@ +D:\other\csharpCode\Winform-AutoUpdate\Winform-AutoUpdate\Midea.Mes.Generate\bin\Debug\Midea.Mes.Generate.exe.config +D:\other\csharpCode\Winform-AutoUpdate\Winform-AutoUpdate\Midea.Mes.Generate\bin\Debug\Midea.Mes.Generate.exe +D:\other\csharpCode\Winform-AutoUpdate\Winform-AutoUpdate\Midea.Mes.Generate\bin\Debug\Midea.Mes.Generate.pdb +D:\other\csharpCode\Winform-AutoUpdate\Winform-AutoUpdate\Midea.Mes.Generate\obj\Debug\Midea.Mes.Generate.GenerateFrm.resources +D:\other\csharpCode\Winform-AutoUpdate\Winform-AutoUpdate\Midea.Mes.Generate\obj\Debug\Midea.Mes.Generate.Properties.Resources.resources +D:\other\csharpCode\Winform-AutoUpdate\Winform-AutoUpdate\Midea.Mes.Generate\obj\Debug\Midea.Mes.Generate.csproj.GenerateResource.cache +D:\other\csharpCode\Winform-AutoUpdate\Winform-AutoUpdate\Midea.Mes.Generate\obj\Debug\Midea.Mes.Generate.exe +D:\other\csharpCode\Winform-AutoUpdate\Winform-AutoUpdate\Midea.Mes.Generate\obj\Debug\Midea.Mes.Generate.pdb diff --git a/Winform-AutoUpdate/Midea.Mes.Generate/obj/Debug/Midea.Mes.Generate.csproj.GenerateResource.cache b/Winform-AutoUpdate/Midea.Mes.Generate/obj/Debug/Midea.Mes.Generate.csproj.GenerateResource.cache new file mode 100644 index 0000000..2a418b7 Binary files /dev/null and b/Winform-AutoUpdate/Midea.Mes.Generate/obj/Debug/Midea.Mes.Generate.csproj.GenerateResource.cache differ diff --git a/Winform-AutoUpdate/Midea.Mes.Generate/obj/Debug/Midea.Mes.Generate.exe b/Winform-AutoUpdate/Midea.Mes.Generate/obj/Debug/Midea.Mes.Generate.exe new file mode 100644 index 0000000..972113f Binary files /dev/null and b/Winform-AutoUpdate/Midea.Mes.Generate/obj/Debug/Midea.Mes.Generate.exe differ diff --git a/Winform-AutoUpdate/Midea.Mes.Generate/obj/Debug/Midea.Mes.Generate.pdb b/Winform-AutoUpdate/Midea.Mes.Generate/obj/Debug/Midea.Mes.Generate.pdb new file mode 100644 index 0000000..42c63eb Binary files /dev/null and b/Winform-AutoUpdate/Midea.Mes.Generate/obj/Debug/Midea.Mes.Generate.pdb differ diff --git a/Winform-AutoUpdate/Midea.Mes.Update/bin/Debug/Midea.Mes.Update.exe b/Winform-AutoUpdate/Midea.Mes.Update/bin/Debug/Midea.Mes.Update.exe index 13d2163..90a0bc0 100644 Binary files a/Winform-AutoUpdate/Midea.Mes.Update/bin/Debug/Midea.Mes.Update.exe and b/Winform-AutoUpdate/Midea.Mes.Update/bin/Debug/Midea.Mes.Update.exe differ diff --git a/Winform-AutoUpdate/Midea.Mes.Update/bin/Debug/Midea.Mes.Update.pdb b/Winform-AutoUpdate/Midea.Mes.Update/bin/Debug/Midea.Mes.Update.pdb index 943ad32..de81655 100644 Binary files a/Winform-AutoUpdate/Midea.Mes.Update/bin/Debug/Midea.Mes.Update.pdb and b/Winform-AutoUpdate/Midea.Mes.Update/bin/Debug/Midea.Mes.Update.pdb differ diff --git a/Winform-AutoUpdate/Midea.Mes.Update/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/Winform-AutoUpdate/Midea.Mes.Update/obj/Debug/DesignTimeResolveAssemblyReferences.cache index d679710..32feef4 100644 Binary files a/Winform-AutoUpdate/Midea.Mes.Update/obj/Debug/DesignTimeResolveAssemblyReferences.cache and b/Winform-AutoUpdate/Midea.Mes.Update/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/Winform-AutoUpdate/Midea.Mes.Update/obj/Debug/Midea.Mes.Update.exe b/Winform-AutoUpdate/Midea.Mes.Update/obj/Debug/Midea.Mes.Update.exe index 13d2163..90a0bc0 100644 Binary files a/Winform-AutoUpdate/Midea.Mes.Update/obj/Debug/Midea.Mes.Update.exe and b/Winform-AutoUpdate/Midea.Mes.Update/obj/Debug/Midea.Mes.Update.exe differ diff --git a/Winform-AutoUpdate/Midea.Mes.Update/obj/Debug/Midea.Mes.Update.pdb b/Winform-AutoUpdate/Midea.Mes.Update/obj/Debug/Midea.Mes.Update.pdb index 943ad32..de81655 100644 Binary files a/Winform-AutoUpdate/Midea.Mes.Update/obj/Debug/Midea.Mes.Update.pdb and b/Winform-AutoUpdate/Midea.Mes.Update/obj/Debug/Midea.Mes.Update.pdb differ diff --git a/Winform-AutoUpdate/Winform-AutoUpdate.sln b/Winform-AutoUpdate/Winform-AutoUpdate.sln index 8a35346..6c6adbe 100644 --- a/Winform-AutoUpdate/Winform-AutoUpdate.sln +++ b/Winform-AutoUpdate/Winform-AutoUpdate.sln @@ -3,36 +3,20 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 16 VisualStudioVersion = 16.0.29806.167 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Midea.Mes.DAL", "Midea.Mes.DAL\Midea.Mes.DAL.csproj", "{E511D19F-BE15-4D50-B81C-3B1BF946A75F}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Midea.Mes.Common", "Midea.Mes.Common\Midea.Mes.Common.csproj", "{20108E89-F727-4D06-8BCC-72FE15732C19}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Midea.Mes.BLL", "Midea.Mes.BLL\Midea.Mes.BLL.csproj", "{F774025A-F9BE-4585-B362-ADEBC5B58CBB}" -EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Midea.Mes.Frm", "Midea.Mes.Frm\Midea.Mes.Frm.csproj", "{3D1974D0-48D2-4979-8805-C441D4B9EF06}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Midea.Mes.Update", "Midea.Mes.Update\Midea.Mes.Update.csproj", "{AE848395-70F7-4517-A1D2-26C03803F832}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Midea.Mes.Generate", "Midea.Mes.Generate\Midea.Mes.Generate.csproj", "{3CE6283C-DFDA-404E-A281-DAB3E2094C04}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Midea.MES.Update.Test", "Midea.MES.Update.Test\Midea.MES.Update.Test.csproj", "{FB78B044-B526-425A-ACA7-A6F1AAAABFBF}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {E511D19F-BE15-4D50-B81C-3B1BF946A75F}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {E511D19F-BE15-4D50-B81C-3B1BF946A75F}.Debug|Any CPU.Build.0 = Debug|Any CPU - {E511D19F-BE15-4D50-B81C-3B1BF946A75F}.Release|Any CPU.ActiveCfg = Release|Any CPU - {E511D19F-BE15-4D50-B81C-3B1BF946A75F}.Release|Any CPU.Build.0 = Release|Any CPU - {20108E89-F727-4D06-8BCC-72FE15732C19}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {20108E89-F727-4D06-8BCC-72FE15732C19}.Debug|Any CPU.Build.0 = Debug|Any CPU - {20108E89-F727-4D06-8BCC-72FE15732C19}.Release|Any CPU.ActiveCfg = Release|Any CPU - {20108E89-F727-4D06-8BCC-72FE15732C19}.Release|Any CPU.Build.0 = Release|Any CPU - {F774025A-F9BE-4585-B362-ADEBC5B58CBB}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {F774025A-F9BE-4585-B362-ADEBC5B58CBB}.Debug|Any CPU.Build.0 = Debug|Any CPU - {F774025A-F9BE-4585-B362-ADEBC5B58CBB}.Release|Any CPU.ActiveCfg = Release|Any CPU - {F774025A-F9BE-4585-B362-ADEBC5B58CBB}.Release|Any CPU.Build.0 = Release|Any CPU {3D1974D0-48D2-4979-8805-C441D4B9EF06}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {3D1974D0-48D2-4979-8805-C441D4B9EF06}.Debug|Any CPU.Build.0 = Debug|Any CPU {3D1974D0-48D2-4979-8805-C441D4B9EF06}.Release|Any CPU.ActiveCfg = Release|Any CPU @@ -45,6 +29,10 @@ Global {3CE6283C-DFDA-404E-A281-DAB3E2094C04}.Debug|Any CPU.Build.0 = Debug|Any CPU {3CE6283C-DFDA-404E-A281-DAB3E2094C04}.Release|Any CPU.ActiveCfg = Release|Any CPU {3CE6283C-DFDA-404E-A281-DAB3E2094C04}.Release|Any CPU.Build.0 = Release|Any CPU + {FB78B044-B526-425A-ACA7-A6F1AAAABFBF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {FB78B044-B526-425A-ACA7-A6F1AAAABFBF}.Debug|Any CPU.Build.0 = Debug|Any CPU + {FB78B044-B526-425A-ACA7-A6F1AAAABFBF}.Release|Any CPU.ActiveCfg = Release|Any CPU + {FB78B044-B526-425A-ACA7-A6F1AAAABFBF}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE