Greetings, we're embedding Spices into an internal build tool and are hitting a problem. When obfuscating our applications Spices always asks us to browse for .Net assemblies. We've added the paths to the .Net assemblies using Project.AddSearchPath, but Spices is ignoring this and asking anyway.
Is there another way to give Spices the search paths?
Quick snippet:
NineRays.ILOMD.Options.Project project = new NineRays.ILOMD.Options.Project();
NineRays.ILOMD.Options.AssemblyFileName file = new NineRays.ILOMD.Options.AssemblyFileName(filepath, options);
Logger logger = new Logger();
project.AssemblyList.Add(file);
project.CheckConsistencyBeforeObfuscation = true;
project.StripDebugInfo = true;
project.VerifyAfterObfuscation = NineRays.ILOMD.Options.YesNoPrompt.True;
project.SaveToDirectory = path;
NineRays.ILOMD.ILOMDProvider obfuscator = new NineRays.ILOMD.ILOMDProvider(logger);
project.AddSearchPath(@"C:\Windows\Microsoft.NET\Framework\v2.0.50727\");
if (!obfuscator.Obfuscate(project))
throw new Exception("Obfuscation failed.");