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 

enter image description here

when included file in project(s) can see answer how values out of it: https://stackoverflow.com/a/909583/254797


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -