SetOutputDirectory() 공개 메소드

Set the directory that the PE File will be written to. The default is the current directory.
public SetOutputDirectory ( string outputDir ) : void
outputDir string The directory to write the PE File to.
리턴 void
예제 #1
0
        // -----------------------------------------------------------------


        internal void CreateAssembly(string directory, string fileName, string assemblyName, bool GUI) {
            Assembly = new PEFile(fileName, assemblyName);
            Assembly.SetSubSystem(GUI ? SubSystem.Windows_GUI : SubSystem.Windows_CUI);
            Assembly.SetNetVersion(NetVersion.Version2);
            Assembly.GetThisAssembly().AddCustomAttribute(Runtime.RubyAttribute.ctor, new byte[0]);
            Assembly.SetOutputDirectory(directory);
        }