Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Managed C++/CLI
  4. Getting assembly details (descripton, version, etc) set for a C++/CLI assembly

Getting assembly details (descripton, version, etc) set for a C++/CLI assembly

Scheduled Pinned Locked Moved Managed C++/CLI
c++csharphelpquestionannouncement
2 Posts 1 Posters 2 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    John Schroedl
    wrote on last edited by
    #1

    I have migrated a bunch of C++/CLI code out of my main mixed-mode executable into a DLL but Windows explorer is not showing the details for the DLL. I set them like this in my AssemblyInfo.cpp:

    [assembly:AssemblyTitleAttribute("MyDLL")];
    [assembly:AssemblyDescriptionAttribute("A cool component")];
    [assembly:AssemblyConfigurationAttribute("")];
    [assembly:AssemblyCompanyAttribute("My Company")];
    [assembly:AssemblyProductAttribute("My Product")];
    [assembly:AssemblyCopyrightAttribute("Copyright © My Corp 2013")];
    [assembly:AssemblyTrademarkAttribute("")];
    [assembly:AssemblyCultureAttribute("")];
    [assembly:AssemblyVersionAttribute("2.0.0.0")];

    I also have a C# DLL with settings just like this in its AssemblyInfo.cs and they ARE shown in the Details pane of the Explorer Properties dialog. I suspect I'll need to add a .rc file with VERSIONINFO but was hoping to avoid duplicating info like that (and it's a small hassle to hook into the build). Has anyone here faced and solved this issue? John

    J 1 Reply Last reply
    0
    • J John Schroedl

      I have migrated a bunch of C++/CLI code out of my main mixed-mode executable into a DLL but Windows explorer is not showing the details for the DLL. I set them like this in my AssemblyInfo.cpp:

      [assembly:AssemblyTitleAttribute("MyDLL")];
      [assembly:AssemblyDescriptionAttribute("A cool component")];
      [assembly:AssemblyConfigurationAttribute("")];
      [assembly:AssemblyCompanyAttribute("My Company")];
      [assembly:AssemblyProductAttribute("My Product")];
      [assembly:AssemblyCopyrightAttribute("Copyright © My Corp 2013")];
      [assembly:AssemblyTrademarkAttribute("")];
      [assembly:AssemblyCultureAttribute("")];
      [assembly:AssemblyVersionAttribute("2.0.0.0")];

      I also have a C# DLL with settings just like this in its AssemblyInfo.cs and they ARE shown in the Details pane of the Explorer Properties dialog. I suspect I'll need to add a .rc file with VERSIONINFO but was hoping to avoid duplicating info like that (and it's a small hassle to hook into the build). Has anyone here faced and solved this issue? John

      J Offline
      J Offline
      John Schroedl
      wrote on last edited by
      #2

      I'll answer my own question for future visitors. Yes, adding the VERSIONINFO resource was necessary. And, it was easier than I thought - just right-click on Resource Files folder in Solution Explorer, Add > Resource... and select VERSIONINFO. John

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups