Simon Mourier's Avatar
Simon Mourier's blog (1352 answers on StackOverflow) about Microsoft technologies C#, C/C++, .NET, WinRT, WinUI, COM, Interop, DirectX, Direct2D, Windows, ...
  • 🔎︎ Search
  • Categories
  • Archives
  • About Me
  • c/c++
  • c#

How to get GUID (Assembly attribute) of a C# assembly in c++

Mar 29, 2011 See the question and my original answer on StackOverflow

You need to use the Unamanaged Metadata API

and especially the IMetaDataImport::EnumCustomAttributes Method

That's going to be quite a work... Here is a link that gives a good starting point on this (it's C#, but the ideas are exactly the same, and is in fact easier to program in C++): Reading types from assembly

  • SmoBlog © 2010-2025 Simon Mourier. All rights reserved.
  • Privacy & Terms