Click here to Skip to main content
15,887,027 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I'm updating the AssemblyInof.vb file during post build with new Info (version Number / File Info and so on ... ) for all my projects within a solution ..
This part seems to work just fine .. the problem is, that when building the project, the new info will not get copied "Anymore" to the output files

- This used to work earlier about 1 Years or so

It now seems , that the only way to update the AssemblyInfo.vb file is trough the Project settings ??? - It seems as if the actual data used in the output, is now pulled from another file?

The formatting seems OK as it is picked up properly by the My Project window ...(checked it a "million" times..)

Any ideas what's missing or how to get studio to use the updated AssemblyInfo.vb file ?


XML
<Assembly: AssemblyVersion("2.0.1.10")>
<Assembly: AssemblyFileVersion("2.0.1.9")>
Posted
Comments
Sergey Alexandrovich Kryukov 22-Oct-15 2:43am    
What do you feel is "not working"? What's supposed to "work"?
—SA

1 solution

What you are asking makes no sense at all. This is what you don't understand: this file is a regular source file, no different from any other source code file. It applies assembly-level attributes to your assembly. Nothing is supposed to go to output, or "update to output", except the PE file which is produced by your project (EXE, DLL, etc.). You can see the result of this part of source code on the file Properties you can see through the OS shell.

You have no functional problem here. You only problem is just understanding. You need to get clear understanding what is project, assembly, assembly modules, and what build really does. Please learn it, to overcome this confusing.

—SA
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900