c# - Reading assembly attribute from other file -
i have project in
[assembly: assemblyproduct("meteor viewer")] [assembly: assemblyversion("2.1.0.0")] [assembly: assemblyfileversion("2.1.0.0")]
exist not in assembly.info, in xyz.cs file. how can assembly attribute xyz.cs @ other page of product?
the attributes mentioned valid @ code file long part of project , compiled. if have multiple projects in solution should share e.g. version information assemblies can use 1 file , link in projects instead of copying infos.
right click on project --> add existing item --> select file --> add link
when included file in project(s) can see answer how values out of it: https://stackoverflow.com/a/909583/254797
Comments
Post a Comment