zoukankan      html  css  js  c++  java
  • 获取CodeSmith的版本号

    private CodesmithVersion GetCodesmithVersion()
    {
        
    try
        
    {
            
    string version = typeof(CodeTemplate).Assembly.GetName().Version.ToString();
            
    if(version != null)
            
    {
                
    if (version.IndexOf("3.2">= 0)
                    
    return CodesmithVersion.Codesmith32;
                
    else if (version.IndexOf("3.1">=0)
                    
    return CodesmithVersion.Codesmith31;
                
    else if (version.IndexOf("3.0">=0)
                    
    return CodesmithVersion.Codesmith30;
                
    else if (version.IndexOf("2.6">= 0)
                    
    return CodesmithVersion.Codesmith26;
            }

        }

        
    catch
        
    {
            
    //could not discover version info.    
        }

        
        
    return CodesmithVersion.Unknown;
    }
  • 相关阅读:
    贪心[2019.5.25]
    顺序统计算法[2019.5.25]
    polya/burnside 学习
    虚拟机上装uoj
    一些常用的数据结构维护手法
    发一个数据生成器
    圆方树学习
    四校联考 推冰块
    Codeforces Training S03E01泛做
    HAOI2015 泛做
  • 原文地址:https://www.cnblogs.com/fjchenq/p/525285.html
Copyright © 2011-2022 走看看