示例#1
0
        /// <summary>
        /// 获取最新操作
        /// </summary>
        /// <param name="disk">硬盘符</param>
        /// <param name="dirPath">vs的安装路径</param>
        /// <param name="workArea">工作区</param>
        /// <returns></returns>
        public static string GetProjectNewCode(string disk, string dirPath, string workArea)
        {
            var strCmdList = new List <string>()
            {
                disk,
                string.Format(@"cd {0}\CommonExtensions\Microsoft\TeamFoundation\Team Explorer", dirPath),
                string.Format(@"tf get {0} /recursive", workArea)
            };

            return(CmdHelper.Excute(strCmdList));
        }
示例#2
0
        /// <summary>
        /// 输出到bin目录
        /// </summary>
        /// <param name="dirPath"></param>
        /// <param name="buildPah"></param>
        /// <param name="outputPath"></param>
        /// <returns></returns>
        public static string BuildOutBin(string dirPath, string buildPah)
        {
            // msbuild E:\zp4\Common\ZP.Common.DataModels\ZP.Common.DataModels.csproj
            var strs = dirPath.Split(':');

            var strCmdList = new List <string>()
            {
                strs[0] + ":",
                @"cd " + dirPath,
                string.Format(@"msbuild   {0} /t:rebuild", buildPah)
            };

            return(CmdHelper.Excute(strCmdList));
        }