public void Initialize() { converter = new ProjectConverter(); // Create a temporary directory directory = new DirectoryInfo(Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString())); directory.Create(); // Create the VB6 project in the temp directory tempFile = new FileInfo(Path.Combine(directory.FullName, "Project.vbp")); tempFile.WriteEmbeddedResourceToFile("Project.vbp"); }
static int Main(string[] args) { if (args.Length < 1) { DisplayUsage(); return Exit(1); } // Read in the project var reader = new VB6ProjectReader(); var project = reader.Parse(args[0]); // Convert the project var converter = new ProjectConverter(); converter.Convert(project); return Exit(0); }