Skip to content

Add parser to recognize C# AssemblyInfo.cs as package metadata #679

Description

@pombredanne

These files are mostly generated from VisualStudio and contain package-like assembly data that end in the PE metadata too once compiled. See also https://raw.githubusercontent.com/OData/odata.net/master/src/AssemblyInfo/AssemblyInfoCommon.cs
Here is an example which should be easy to parse:

[assembly: AssemblyTitle("My.Super.Interface")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("My.Assembly.Interface")]
[assembly: AssemblyCopyright("Copyright ©  2017")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

// Setting ComVisible to false makes the types in this assembly not visible 
// to COM components.  If you need to access a type in this assembly from 
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]

// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("8957c123-13ae-4258-a682-f235437a8f0b")]

// Version information for an assembly consists of the following four values:
//
//      Major Version
//      Minor Version 
//      Build Number
//      Revision
//
// You can specify all the values or you can default the Build and Revision Numbers 
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

These files most often live in a subdir Properties/AssemblyInfo.cs of the main assembly/project directory they apply to.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions