aboutcode-org / aboutcode-org/scancode-toolkit

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

Aberta
#679 1 comentário 0 reações 0 responsáveis Ver no GitHub
new feature nice to have package scan package-formats
Linguagem predominante
Python
Estrelas
2.6k
Forks
791
Merge médio
1d 12h
PRs com merge (30d)
5

Descrição

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.

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.