aboutcode-org / aboutcode-org/scancode-toolkit

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

Đang mở
#679 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
new feature nice to have package scan package-formats
Ngôn ngữ chính
Python
Star
2.6k
Fork
791
Merge trung bình
1 ngày 12 giờ
Pull request đã merge (30 ngày)
5

Mô tả

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.

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.