Getting assembly details (descripton, version, etc) set for a C++/CLI assembly
-
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
-
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
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