Ejemplo n.º 1
0
        public string Generate(IIntegrationResult integrationResult)
        {
            var assemblyInfoService = new AssemblyInfoService();
            var versionInfo         = assemblyInfoService.ParseForVersionInfo(AssemblyInfoPath);

            return(versionInfo.ToString());
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Instead of taking the major/minor from hard coded cc.net config, parse for it in the source code which is easily settable
        /// </summary>
        private void ParseAssemblyInfoVersion()
        {
            var assemblyInfoService = new AssemblyInfoService();
            var versionInfo         = assemblyInfoService.ParseForVersionInfo(AssemblyInfoPath);

            if (versionInfo.IsMajorValid)
            {
                Major = versionInfo.Major;
            }

            if (versionInfo.IsMinorValid)
            {
                Minor = versionInfo.Minor;
            }
        }
 public string Generate(IIntegrationResult integrationResult)
 {
     var assemblyInfoService = new AssemblyInfoService();
     var versionInfo = assemblyInfoService.ParseForVersionInfo(AssemblyInfoPath);
     return versionInfo.ToString();
 }
        /// <summary>
        /// Instead of taking the major/minor from hard coded cc.net config, parse for it in the source code which is easily settable
        /// </summary>
        private void ParseAssemblyInfoVersion()
        {
            var assemblyInfoService = new AssemblyInfoService();
            var versionInfo = assemblyInfoService.ParseForVersionInfo(AssemblyInfoPath);

            if (versionInfo.IsMajorValid)
            {
                Major = versionInfo.Major;
            }

            if (versionInfo.IsMinorValid)
            {
                Minor = versionInfo.Minor;
            }
        }