How to get assembly version of a project in a visual studio 2008 deployment project <p>I have a deployment project in visual studio 2008 that installs several C# projects. Among other things, I'd like it to write projects assembly version to registry.</p> <p>Is there a way to automatically find out whats the projects assembly version (written in AssemblyInfo.cs) and write that as value of a registry property?</p> <p>If not, is there any way to do this better than by hand? It is important that these values are correct because they are used by our updating software.</p> <p>Thank you.</p> <p><strong>EDIT</strong>: I'm not sure I was completely clear in my question. I don't want to get this number and store it to a string. I want to write it to registry with Deployment Projects Registry Editor (not sure if that's the official name, you can get to it by right clicking the deployment project in solution explorer and navigating to View->Registry)</p>