aboutcode-org / aboutcode-org/scancode-toolkit
Add parser to recognize C# AssemblyInfo.cs as package metadata
- Langage dominant
- Python
- Étoiles
- 2.6k
- Forks
- 791
- Merge moyen
- 1 j 12 h
- PR mergées (30 j)
- 5
Description
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.
Guide de contribution
Ouvrir le guide de contribution
Évaluation
Cette issue n'a pas encore été évaluée.