@@ -101,7 +101,7 @@ static void AddIncludeDirs(string dir, List<string> errorMessages)
101
101
if ( Directory . Exists ( dir ) )
102
102
options . IncludeDirs . Add ( dir ) ;
103
103
else
104
- errorMessages . Add ( string . Format ( "Directory '{0 }' doesn't exist. Ignoring as include directory." , dir ) ) ;
104
+ errorMessages . Add ( $ "Directory '{ dir } ' doesn't exist. Ignoring as include directory.") ;
105
105
}
106
106
107
107
static void HandleOutputArg ( string arg , List < string > errorMessages )
@@ -196,7 +196,7 @@ static void GetFilesFromPath(string path, List<string> errorMessages)
196
196
}
197
197
catch ( Exception )
198
198
{
199
- errorMessages . Add ( string . Format ( "Error while looking for files inside path '{0 }'. Ignoring." , path ) ) ;
199
+ errorMessages . Add ( $ "Error while looking for files inside path '{ path } '. Ignoring.") ;
200
200
}
201
201
}
202
202
@@ -212,7 +212,7 @@ static void GetGeneratorKind(string generator, List<string> errorMessages)
212
212
return ;
213
213
}
214
214
215
- errorMessages . Add ( string . Format ( "Unknown generator kind: {0 }. Defaulting to {1}" , generator , options . Kind . ToString ( ) ) ) ;
215
+ errorMessages . Add ( $ "Unknown generator kind: { generator } . Defaulting to { options . Kind } " ) ;
216
216
}
217
217
218
218
static void GetDestinationPlatform ( string platform , List < string > errorMessages )
@@ -230,7 +230,7 @@ static void GetDestinationPlatform(string platform, List<string> errorMessages)
230
230
return ;
231
231
}
232
232
233
- errorMessages . Add ( string . Format ( "Unknown target platform: {0 }. Defaulting to {1}" , platform , options . Platform . ToString ( ) ) ) ;
233
+ errorMessages . Add ( $ "Unknown target platform: { platform } . Defaulting to { options . Platform } " ) ;
234
234
}
235
235
236
236
static void GetDestinationArchitecture ( string architecture , List < string > errorMessages )
@@ -245,7 +245,7 @@ static void GetDestinationArchitecture(string architecture, List<string> errorMe
245
245
return ;
246
246
}
247
247
248
- errorMessages . Add ( string . Format ( "Unknown target architecture: {0 }. Defaulting to {1}" , architecture , options . Architecture . ToString ( ) ) ) ;
248
+ errorMessages . Add ( $ "Unknown target architecture: { architecture } . Defaulting to { options . Architecture } " ) ;
249
249
}
250
250
251
251
static void PrintErrorMessages ( List < string > errorMessages )
0 commit comments