File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -274,6 +274,8 @@ private void SetupCmdletsDictionary()
274274 }
275275 }
276276
277+ referencePlatform = defaultReferencePlatform ;
278+ #if DEBUG
277279 // Setup reference file
278280 object referenceObject ;
279281 if ( ruleArgs . TryGetValue ( "reference" , out referenceObject ) )
@@ -284,16 +286,6 @@ private void SetupCmdletsDictionary()
284286 return ;
285287 }
286288 }
287- else
288- {
289- referencePlatform = defaultReferencePlatform ;
290- }
291-
292- // check if the reference file has valid platformSpec
293- if ( ! IsValidPlatformString ( referencePlatform ) )
294- {
295- return ;
296- }
297289
298290 object modeObject ;
299291 if ( ruleArgs . TryGetValue ( "mode" , out modeObject ) )
@@ -322,6 +314,13 @@ private void SetupCmdletsDictionary()
322314
323315 return ;
324316 }
317+ #endif
318+
319+ // check if the reference file has valid platformSpec
320+ if ( ! IsValidPlatformString ( referencePlatform ) )
321+ {
322+ return ;
323+ }
325324
326325 var settingsPath = GetShippedSettingsDirectory ( ) ;
327326 if ( settingsPath == null
You can’t perform that action at this time.
0 commit comments