diff --git a/ILRepack/ILRepack.cs b/ILRepack/ILRepack.cs index 44f906d0..7ddfa044 100644 --- a/ILRepack/ILRepack.cs +++ b/ILRepack/ILRepack.cs @@ -283,6 +283,8 @@ void PrintRepackHeader() /// public void Repack() { + Options.Validate(); + string outputFilePath = Options.OutputFile; var outputDir = Path.GetDirectoryName(outputFilePath); var tempOutputDirectory = Path.Combine(outputDir, $"ILRepack-{Process.GetCurrentProcess().Id}-{DateTime.UtcNow.Ticks.ToString().Substring(12)}"); @@ -311,7 +313,6 @@ private void RepackCore(string tempOutputDirectory) { var timer = new Stopwatch(); timer.Start(); - Options.Validate(); MergedAssemblyFiles = Options.ResolveFiles(); foreach (var inputFile in MergedAssemblyFiles) {