How do I embed version information into a windows binary?

前端 未结 4 869
有刺的猬
有刺的猬 2021-01-19 04:31

You probably know that Windows has that option where you can view the properties of a binary and it will display information about the author, the version number, the compan

4条回答
  •  Happy的楠姐
    2021-01-19 05:01

    Look for an AssemblyInfo.cs to your project.

    But this it has to be filled out before compilation. But you can share one AssemblyInfo.cs between many binaries. And you are not bound to this exact filename - so you can split the information into more files ... one general file about the company, one about the product, one for the binary's version number.

    / Individual Information
    [assembly: AssemblyTitle( "" )]
    [assembly: AssemblyDescription( "" )]
    
    // Version information
    [assembly: AssemblyVersion( "1.0.*" )]
    [assembly: AssemblyInformationalVersion( "1.0.0.0" )]
    
    // General Information
    [assembly: AssemblyConfiguration( "" )]
    [assembly: AssemblyCompany( "" )]
    [assembly: AssemblyProduct( "" )]
    [assembly: AssemblyCopyright( "" )]
    [assembly: AssemblyTrademark( "" )]
    [assembly: AssemblyCulture( "" )]
    [assembly: NeutralResourcesLanguage( "en" )]
    

提交回复
热议问题