E
Eddie
I tried a few more thing.
I found that I can access the AssemblyInfo.cpp like follows.(This is
from the VS help system.)
Type^ clsType = Form1::typeid;
Assembly^ assy = clsType->Assembly;
AssemblyProductAttribute^ apAttr =
dynamic_cast<AssemblyProductAttribute^>(Attribute::GetCustomAttribute(assy,
AssemblyProductAttribute::typeid));
AssemblyVersionAttribute^ avAttr =
dynamic_cast<AssemblyVersionAttribute^>(Attribute::GetCustomAttribute(assy,
AssemblyVersionAttribute::typeid));
MessageBox::Show(apAttr->Product + L" " + avAttr->Version);
This code works well with AssemblyProductCode, ... and all only except
AssemblyVersionAttribute.
avAttr always gets nothing.
Do you have any idea on this?
I spend a lot of time for this meaningless thing. ;-(
I found that I can access the AssemblyInfo.cpp like follows.(This is
from the VS help system.)
Type^ clsType = Form1::typeid;
Assembly^ assy = clsType->Assembly;
AssemblyProductAttribute^ apAttr =
dynamic_cast<AssemblyProductAttribute^>(Attribute::GetCustomAttribute(assy,
AssemblyProductAttribute::typeid));
AssemblyVersionAttribute^ avAttr =
dynamic_cast<AssemblyVersionAttribute^>(Attribute::GetCustomAttribute(assy,
AssemblyVersionAttribute::typeid));
MessageBox::Show(apAttr->Product + L" " + avAttr->Version);
This code works well with AssemblyProductCode, ... and all only except
AssemblyVersionAttribute.
avAttr always gets nothing.
Do you have any idea on this?
I spend a lot of time for this meaningless thing. ;-(