I have a solution with many components and eac开发者_如何学Goh component has its own version file (AssemblyInfo.cs). Currently each file as the standard structure:
[assembly: AssemblyVersion("1.0.0.0")] [assembly: AssemblyFileVersion("1.0.0.0")]
I would like to use the file version as the component version and keep that independent but I would like to have the "Product Version" be the same for all the components. I would like to do that by having a file at the solution level that is used by all the projects to get that version embedded.
Any suggestions Thanks Tony
Well, simply put AssemblyVersion
in a file shared by all projects, and AssemblyFileVersion
- in the project-local file.
Or do I misunderstand the question?
That's the way we do it. We have a solution wide file defining a global assemblyVersion and include by link in each subproject and a project file defining assemblyFileVersion in each project.
If you want to automatically update the version you could use '1.0.*' syntax.
精彩评论