I have updater for my app. When i check for updates, i compare server version with local Assembly version of main .exe file of application. When from updater(updater is another .exe file) i get assembly version of my main .exe file of application, this file is blocked.. How i can get assembly version of my project without blocking for rewriting? Keep version of assembly in XML file is not good idea. Thanks
You just need the AssemblyName to get the version :
AssemblyName.GetAssemblyName(filename);