1.>>如何访问(通过C#提供的方法,而不是在开发环境中修改AssemblyInfo)AssemblyInfo中的信息,如Version、Company... 用 Application 的属性,比如: Application.ProductVersion, Application.ProductName...Version ver = new Version(Application.ProductVersion);
string s = ver.Major + " " + ver.Minor;建议以后分开问,好回答,好讨论.Hope it helps a little.
----------------------------------------
To teach a fish how to swim.

解决方案 »

  1.   

    GetCustomAttributes(typeof(System.Reflection.AssemblyProductAttribute), true)
      

  2.   

    2.添加引用
    3.没用过VB
    4.正则表达式System.Text.RegularExpressions
      

  3.   

    GetCustomAttributes(typeof(System.Reflection.AssemblyProductAttribute), true)
    这个方法似乎不行,还是我还不会使用这个方法
      

  4.   

    System.Reflection.AssemblyProductAttribute productAttribute = (System.Reflection.AssemblyProductAttribute)Assembly.GetCallingAssembly().GetCustomAttributes(typeof(System.Reflection.AssemblyProductAttribute), true)[0];
    string source = productAttribute.Product;
      

  5.   

    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/frlrfSystemAttributeClassGetCustomAttributesTopic13.asp
      

  6.   

    第二个问题:直接添加引用即可.第三个问题:Property Page是COM里的概念,你需要把控件做成ActiveX.4: 没找到,像这种问题你可以用正则表达式:    Regex.Match 方法
    -----------------------------------
    Whgg qb jung lbh jnag gb qb qbqnl !
      

  7.   

    可以具体一点Regex.Match方法的用法吗?