문제

관리되는 C ++ 어셈블리에 어셈블리 속성을 추가하는 방법이 있습니까? 일반적인 C# 프로젝트에는 일반적으로 코드 라인이 있습니다. AssemblyInfo.cs 다음과 같은 파일 :

[assembly: AssemblyTitle("Some Assembly")]

추가하려는 개인 어셈블리 속성 (리소스 파일을 통해 추가 할 수있는 버전 속성 중 하나가 아님)이 있으며 이것이 가능하는지 확실하지 않습니다.

도움이 되었습니까?

해결책

It is possible - the easy way is to add an AssemblyInfo.cpp file and put:

#include attributes.h //your attribute decl
[assembly: MyCustomAttribute()];

It can be in any file you want, though.

edit - added required semicolon for assembly attribute

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top