예제 #1
0
        /// <summary>
        /// Constructor
        /// </summary>
        static BuildPlatform()
        {
            // Find all classes that inherit from BuildPlatform and register them with BuildProject.
            Type ti = typeof(BuildPlatform);

            foreach (Assembly asm in AppDomain.CurrentDomain.GetAssemblies())
            {
                foreach (Type t in asm.GetTypes())
                {
                    if (ti.IsAssignableFrom(t) && ti != t)
                    {
                        BuildProject.RegisterPlatform((BuildPlatform)Activator.CreateInstance(t));
                    }
                }
            }
        }
예제 #2
0
 /// <summary>
 /// Perform build for platform.
 /// </summary>
 public void Build()
 {
     BuildProject.PerformBuild(this);
 }