Ejemplo n.º 1
0
        /// <summary>
        /// Return if it is success
        /// </summary>
        /// <param name="sWrite"></param>
        /// <param name="targetCompiledPath"></param>
        /// <param name="dllFileNameWithFullPath"></param>
        /// <returns></returns>
        protected bool BuildRunLibrary(TextWriter sWrite, string targetCompiledPath, out string dllFileNameWithFullPath)
        {
            bool hasError = true;

            if (sWrite == null)
            {
                sWrite = new StringWriter();
            }

            try
            {
                string projectFullPath = Path.Combine(this._SolutionContentFolderFullPath, this._ProjectFileNameWithExt);
                hasError = CompilerHelper.CompilerProject(this._SolutionContentFolderFullPath, projectFullPath, targetCompiledPath, sWrite, out dllFileNameWithFullPath);
            }
            catch (Exception e)
            {
                throw;
            }

            return(!hasError);
        }