1414
1515using Confuser . Core ;
1616using Confuser . Core . Project ;
17- using YamlDotNet . Serialization ;
18-
17+ using YamlDotNet . Serialization ;
18+
1919namespace SharpGen
2020{
2121 class SharpGen
@@ -84,7 +84,7 @@ static int Main(string[] args)
8484 ) . Accepts ( v => v . ExistingFile ( ) ) ;
8585
8686 app . OnExecute ( ( ) =>
87- {
87+ {
8888 Compiler . CompilationRequest request = new Compiler . CompilationRequest ( ) ;
8989 // Compilation options
9090 if ( ! SetRequestDirectories ( ref request ) )
@@ -201,16 +201,16 @@ private static bool SetRequestDirectories(ref Compiler.CompilationRequest reques
201201 request . ReferenceDirectory = Common . SharpGenReferencesDirectory ;
202202 request . ResourceDirectory = Common . SharpGenResourcesDirectory ;
203203 return true ;
204- }
205-
204+ }
205+
206206 private static bool SetRequestDotNetVersion ( CommandOption < Compiler . DotNetVersion > DotNetVersionOption , ref Compiler . CompilationRequest request )
207- {
207+ {
208208 request . TargetDotNetVersion = DotNetVersionOption . HasValue ( ) ? DotNetVersionOption . ParsedValue : Compiler . DotNetVersion . Net35 ;
209- return true ;
210- }
209+ return true ;
210+ }
211211
212212 private static bool SetRequestOutputKind ( CommandOption OutputKindOption , CommandOption OutputFileOption , ref Compiler . CompilationRequest request )
213- {
213+ {
214214 if ( OutputKindOption . HasValue ( ) )
215215 {
216216 if ( OutputKindOption . Value ( ) . Contains ( "console" , StringComparison . OrdinalIgnoreCase ) || OutputKindOption . Value ( ) . Contains ( "exe" , StringComparison . OrdinalIgnoreCase ) )
@@ -272,16 +272,16 @@ private static bool SetRequestOptimization(CommandOption NoOptimizationOption, r
272272 {
273273 request . Optimize = ! NoOptimizationOption . HasValue ( ) ;
274274 return true ;
275- }
276-
275+ }
276+
277277 private static bool SetRequestAssemblyName ( CommandOption AssemblyNameOption , ref Compiler . CompilationRequest request )
278278 {
279279 if ( AssemblyNameOption . HasValue ( ) ) { request . AssemblyName = AssemblyNameOption . Value ( ) ; }
280280 return true ;
281281 }
282282
283283 private static bool SetRequestReferences ( ref Compiler . CompilationRequest request )
284- {
284+ {
285285 using ( TextReader reader = File . OpenText ( Common . SharpGenReferencesConfig ) )
286286 {
287287 var deserializer = new DeserializerBuilder ( ) . Build ( ) ;
@@ -299,7 +299,7 @@ private static bool SetRequestEmbeddedResources(ref Compiler.CompilationRequest
299299 }
300300 return true ;
301301 }
302-
302+
303303 private static bool SetRequestSource ( CommandOption SourceFileOption , CommandOption ClassNameOption , List < string > RemainingArguments , ref Compiler . CompilationRequest request )
304304 {
305305 string className = RandomString ( ) ;
@@ -362,7 +362,7 @@ public ValidationResult GetValidationResult(CommandOption option, ValidationCont
362362 }
363363
364364 return ValidationResult . Success ;
365- }
365+ }
366366 }
367367
368368 private class MustBeDotNetVersionValidator : IOptionValidator
@@ -421,7 +421,7 @@ private static string RandomString()
421421 return alphachars [ random . Next ( alphachars . Length ) ] + new string ( Enumerable . Repeat ( chars , random . Next ( 10 , 30 ) ) . Select ( s => s [ random . Next ( s . Length ) ] ) . ToArray ( ) ) ;
422422 }
423423
424- private static string WrapperFunctionFormat =
424+ private static string WrapperFunctionFormat =
425425@"using System;
426426using System.IO;
427427using System.Text;
0 commit comments