Beispiel #1
0
 public static void Main(string[] args)
 {
     new Compiler(@"c:\Program Files (x86)\Microsoft Visual Studio\VB98\VB6.EXE").Compile(
         VB6Project.Load(@"C:\dev\Cogito.VisualBasic6\sample\Cogito.VisualBasic6.Sample\VB6Sample.vbp"),
         @"C:\dev\Cogito.VisualBasic6\sample\Cogito.VisualBasic6.Sample\obj\Debug\net47",
         out var errors);
 }
        /// <summary>
        /// Executes the task.
        /// </summary>
        /// <returns></returns>
        public override bool Execute()
        {
            Log.LogMessage("Source: {0}", Source);
            Log.LogMessage("Target: {0}", Target);

            TransformVbp(VB6Project.Load(Source)).Save(Target);
            return(true);
        }