ソースを参照

update customer log SN define

Robert 4 年 前
コミット
0a9455b72b

+ 3 - 0
AwInitilizer/Initilizer.csproj

@@ -181,4 +181,7 @@
   </ItemGroup>
   <ItemGroup />
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+  <PropertyGroup>
+    <PreBuildEvent>GitVersion.exe $(SolutionDir) /updateassemblyinfo</PreBuildEvent>
+  </PropertyGroup>
 </Project>

+ 1 - 1
AwInitilizer/MainWindow.xaml.cs

@@ -580,7 +580,7 @@ namespace AwInitilizer
             fileWriter.WriteLine("");
 
             fileWriter.WriteLine("Test Program Name : {0,-30}    ", "FirmwareUpdate");
-            fileWriter.WriteLine("Serial No         : {0,-30}System Time  : {1}", ViewModel.SerialNumber,DateTime.Now.ToString());
+            fileWriter.WriteLine("Serial No         : {0,-30}System Time  : {1}", ViewModel.SystemID.ToString(),DateTime.Now.ToString());
             fileWriter.WriteLine("Model Name        : {0,-30}Elapsed Time : {1}", ViewModel.ModelName, ViewModel.UpdateElpased.ToString(@"hh\:mm\:ss"));
             fileWriter.WriteLine("LOT Number        :                               Environment  : ");
             fileWriter.WriteLine("Order Number      :                               Inspector    : {0}", ViewModel.UserID);

+ 2 - 1
AwInitilizer/Properties/AssemblyInfo.cs

@@ -50,6 +50,7 @@ using System.Windows;
 //
 // You can specify all the values or you can default the Build and Revision Numbers
 // by using the '*' as shown below:
-// [assembly: AssemblyVersion("1.0.*")]
+// [assembly: AssemblyVersion("1.0.0.0")]
 [assembly: AssemblyVersion("1.0.0.0")]
 [assembly: AssemblyFileVersion("1.0.0.0")]
+[assembly: AssemblyInformationalVersion("2eaffe6")]

+ 6 - 0
GitVersion.yml

@@ -0,0 +1,6 @@
+assembly-versioning-scheme: MajorMinorPatch
+assembly-informational-format: '{ShortSha}'
+next-version: 1.0.0
+branches: {}
+ignore:
+  sha: []

+ 6 - 1
Initilizer/AssemblyInfo.cs

@@ -1,4 +1,4 @@
-using System.Windows;
+using System.Windows;
 
 [assembly: ThemeInfo(
     ResourceDictionaryLocation.None, //where theme specific resource dictionaries are located
@@ -8,3 +8,8 @@ using System.Windows;
                                               //(used if a resource is not found in the page,
                                               // app, or any theme specific resource dictionaries)
 )]
+
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
+[assembly: AssemblyInformationalVersion("2eaffe6")]
+