1
votes

I have a solution with many components and each 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

2

2 Answers

1
votes

Well, simply put AssemblyVersion in a file shared by all projects, and AssemblyFileVersion - in the project-local file.

Or do I misunderstand the question?

0
votes

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.