Exemple #1
0
        /// <summary>
        /// This method will get called during Execute() if a host object has been passed into the Csc
        /// task.  Returns true if the compilation succeeded, otherwise false.
        /// </summary>
        /// <owner>RGoel</owner>
        protected override bool CallHostObjectToExecute()
        {
            Debug.Assert(HostObject != null, "We should not be here if the host object has not been set.");

            ICscHostObject cscHostObject = HostObject as ICscHostObject;

            Debug.Assert(cscHostObject != null, "Wrong kind of host object passed in!");
            return(cscHostObject.Compile());
        }
Exemple #2
0
        /// <summary>Compiles the project through the host object.</summary>
        /// <returns>true if compilation succeeded; otherwise, false.</returns>
        protected override bool CallHostObjectToExecute()
        {
            ICscHostObject cscHostObject = base.HostObject as ICscHostObject;
            bool           result;

            try
            {
                CodeMarkers.Instance.CodeMarker(8804);
                result = cscHostObject.Compile();
            }
            finally
            {
                CodeMarkers.Instance.CodeMarker(8805);
            }
            return(result);
        }
Exemple #3
0
        protected override bool CallHostObjectToExecute()
        {
            bool           flag;
            ICscHostObject hostObject = base.HostObject as ICscHostObject;

            try
            {
                CodeMarkers.Instance.CodeMarker(CodeMarkerEvent.perfMSBuildHostCompileBegin);
                flag = hostObject.Compile();
            }
            finally
            {
                CodeMarkers.Instance.CodeMarker(CodeMarkerEvent.perfMSBuildHostCompileEnd);
            }
            return(flag);
        }
Exemple #4
0
        /// <summary>
        /// This method will get called during Execute() if a host object has been passed into the Csc
        /// task.  Returns true if the compilation succeeded, otherwise false.
        /// </summary>
        override protected bool CallHostObjectToExecute()
        {
            Debug.Assert(this.HostObject != null, "We should not be here if the host object has not been set.");

            ICscHostObject cscHostObject = this.HostObject as ICscHostObject;

            Debug.Assert(cscHostObject != null, "Wrong kind of host object passed in!");
            try
            {
#if (!STANDALONEBUILD)
                CodeMarkers.Instance.CodeMarker(CodeMarkerEvent.perfMSBuildHostCompileBegin);
#endif
                return(cscHostObject.Compile());
            }
            finally
            {
#if (!STANDALONEBUILD)
                CodeMarkers.Instance.CodeMarker(CodeMarkerEvent.perfMSBuildHostCompileEnd);
#endif
            }
        }