@@ -19,7 +19,7 @@ public class BuildDeployTools
1919 {
2020 public static readonly string DefaultMSBuildVersion = "14.0" ;
2121
22- public static bool BuildSLN ( string buildDirectory , bool showConfDlg = true )
22+ public static bool BuildSLN ( string buildDirectory , bool showDialog = true )
2323 {
2424 // Use BuildSLNUtilities to create the SLN
2525 bool buildSuccess = false ;
@@ -43,7 +43,7 @@ public static bool BuildSLN(string buildDirectory, bool showConfDlg = true)
4343 }
4444 else
4545 {
46- if ( showConfDlg )
46+ if ( showDialog )
4747 {
4848 if ( ! EditorUtility . DisplayDialog ( PlayerSettings . productName , "Build Complete" , "OK" , "Build AppX" ) )
4949 {
@@ -136,14 +136,14 @@ public static bool RestoreNugetPackages(string nugetPath, string storePath)
136136 return File . Exists ( storePath + "\\ project.lock.json" ) ;
137137 }
138138
139- public static bool BuildAppxFromSLN ( string productName , string msBuildVersion , bool forceRebuildAppx , string buildConfig , string buildDirectory , bool incrementVersion , bool showConfDlg = true )
139+ public static bool BuildAppxFromSLN ( string productName , string msBuildVersion , bool forceRebuildAppx , string buildConfig , string buildDirectory , bool incrementVersion , bool showDialog = true )
140140 {
141141 EditorUtility . DisplayProgressBar ( "Build AppX" , "Building AppX Package..." , 0 ) ;
142142 string slnFilename = Path . Combine ( buildDirectory , PlayerSettings . productName + ".sln" ) ;
143143
144144 if ( ! File . Exists ( slnFilename ) )
145145 {
146- Debug . LogError ( "Unabel to find Solution to build from!" ) ;
146+ Debug . LogError ( "Unable to find Solution to build from!" ) ;
147147 EditorUtility . ClearProgressBar ( ) ;
148148 return false ;
149149 }
@@ -194,7 +194,7 @@ public static bool BuildAppxFromSLN(string productName, string msBuildVersion, b
194194 }
195195
196196 // Now do the actual build
197- var pinfo = new System . Diagnostics . ProcessStartInfo
197+ var pInfo = new System . Diagnostics . ProcessStartInfo
198198 {
199199 FileName = vs ,
200200 CreateNoWindow = false ,
@@ -205,9 +205,9 @@ public static bool BuildAppxFromSLN(string productName, string msBuildVersion, b
205205 } ;
206206
207207 // Uncomment out to debug by copying into command window
208- //Debug.Log("\"" + vs + "\"" + " " + pinfo .Arguments);
208+ //Debug.Log("\"" + vs + "\"" + " " + pInfo .Arguments);
209209
210- var process = new System . Diagnostics . Process { StartInfo = pinfo } ;
210+ var process = new System . Diagnostics . Process { StartInfo = pInfo } ;
211211
212212 try
213213 {
@@ -223,7 +223,7 @@ public static bool BuildAppxFromSLN(string productName, string msBuildVersion, b
223223 EditorUtility . ClearProgressBar ( ) ;
224224
225225 if ( process . ExitCode == 0 &&
226- showConfDlg &&
226+ showDialog &&
227227 ! EditorUtility . DisplayDialog ( "Build AppX" , "AppX Build Successful!" , "OK" , "Open Project Folder" ) )
228228 {
229229 System . Diagnostics . Process . Start ( "explorer.exe" , "/select," + storePath ) ;
0 commit comments