관리 된 C ++ 어셈블리 속성
-
03-07-2019 - |
문제
관리되는 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
제휴하지 않습니다 StackOverflow