S Sylvie Oct 24, 2007 #1 How can I get my Dotnet application and my class library DLL's Assembly version infos in my app ? Thanks
How can I get my Dotnet application and my class library DLL's Assembly version infos in my app ? Thanks
G Guest Oct 24, 2007 #2 Your assembly (while executing) can be returned from System.Reflection.Assembly.GetExecutingAssembly(). Example: Assembly Version: Assembly.GetExecutingAssembly().GetName().Version File Version: System.Diagnostics.FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location) -- Peter Recursion: see Recursion site: http://www.eggheadcafe.com unBlog: http://petesbloggerama.blogspot.com BlogMetaFinder: http://www.blogmetafinder.com
Your assembly (while executing) can be returned from System.Reflection.Assembly.GetExecutingAssembly(). Example: Assembly Version: Assembly.GetExecutingAssembly().GetName().Version File Version: System.Diagnostics.FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location) -- Peter Recursion: see Recursion site: http://www.eggheadcafe.com unBlog: http://petesbloggerama.blogspot.com BlogMetaFinder: http://www.blogmetafinder.com