From e30d3faa77a878394b195c651f4b495bb2f60e2d Mon Sep 17 00:00:00 2001 From: sr55 Date: Sat, 12 Jun 2010 11:16:39 +0000 Subject: WinGui: - Svn Rev added to services dll. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3379 b64f7644-9d1e-0410-96f1-a4d463321fa5 --- .../HandBrake.ApplicationServices.csproj | 8 ++++- win/C#/HandBrake.ApplicationServices/Init.cs | 13 +++++++ .../Properties/AssemblyInfo.cs | 36 ------------------- .../Properties/AssemblyInfo.cs.tmpl | 42 ++++++++++++++++++++++ 4 files changed, 62 insertions(+), 37 deletions(-) delete mode 100644 win/C#/HandBrake.ApplicationServices/Properties/AssemblyInfo.cs create mode 100644 win/C#/HandBrake.ApplicationServices/Properties/AssemblyInfo.cs.tmpl (limited to 'win/C#/HandBrake.ApplicationServices') diff --git a/win/C#/HandBrake.ApplicationServices/HandBrake.ApplicationServices.csproj b/win/C#/HandBrake.ApplicationServices/HandBrake.ApplicationServices.csproj index c2496e948..16a8432b4 100644 --- a/win/C#/HandBrake.ApplicationServices/HandBrake.ApplicationServices.csproj +++ b/win/C#/HandBrake.ApplicationServices/HandBrake.ApplicationServices.csproj @@ -83,7 +83,6 @@ - True True @@ -126,6 +125,7 @@ + @@ -137,4 +137,10 @@ --> + + + subwcrev.exe "$(ProjectDir)." "$(ProjectDir)Properties\AssemblyInfo.cs.tmpl" "$(ProjectDir)Properties\AssemblyInfo.cs" + subwcrev.exe "$(ProjectDir)." "$(ProjectDir)Properties\AssemblyInfo.cs.tmpl" "$(ProjectDir)Properties\AssemblyInfo.cs" + + \ No newline at end of file diff --git a/win/C#/HandBrake.ApplicationServices/Init.cs b/win/C#/HandBrake.ApplicationServices/Init.cs index a0a85d40e..280827605 100644 --- a/win/C#/HandBrake.ApplicationServices/Init.cs +++ b/win/C#/HandBrake.ApplicationServices/Init.cs @@ -5,6 +5,9 @@ namespace HandBrake.ApplicationServices { + using System; + using System.Reflection; + /// /// Initialize ApplicationServices /// @@ -65,5 +68,15 @@ namespace HandBrake.ApplicationServices Properties.Settings.Default.Save(); } + /// + /// Gets the Assembly version. + /// + /// + /// Version data + /// + public static Version AssemblyVersion() + { + return Assembly.GetExecutingAssembly().GetName().Version; + } } } diff --git a/win/C#/HandBrake.ApplicationServices/Properties/AssemblyInfo.cs b/win/C#/HandBrake.ApplicationServices/Properties/AssemblyInfo.cs deleted file mode 100644 index dea8e3e9d..000000000 --- a/win/C#/HandBrake.ApplicationServices/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; - -// General Information about an assembly is controlled through the following -// set of attributes. Change these attribute values to modify the information -// associated with an assembly. -[assembly: AssemblyTitle("HandBrake.ApplicationServices")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("HandBrake Team")] -[assembly: AssemblyProduct("HandBrake.ApplicationServices")] -[assembly: AssemblyCopyright("Copyright © HandBrake Team 2010")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] - -// Setting ComVisible to false makes the types in this assembly not visible -// to COM components. If you need to access a type in this assembly from -// COM, set the ComVisible attribute to true on that type. -[assembly: ComVisible(false)] - -// The following GUID is for the ID of the typelib if this project is exposed to COM -[assembly: Guid("1fe2c0f6-53e0-4633-88ef-c3cbd8be02a7")] - -// Version information for an assembly consists of the following four values: -// -// Major Version -// Minor Version -// Build Number -// Revision -// -// You can specify all the values or you can default the Build and Revision Numbers -// by using the '*' as shown below: -// [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/win/C#/HandBrake.ApplicationServices/Properties/AssemblyInfo.cs.tmpl b/win/C#/HandBrake.ApplicationServices/Properties/AssemblyInfo.cs.tmpl new file mode 100644 index 000000000..e939dcfdf --- /dev/null +++ b/win/C#/HandBrake.ApplicationServices/Properties/AssemblyInfo.cs.tmpl @@ -0,0 +1,42 @@ +/* AssemblyInfo.cs $ + This file is part of the HandBrake source code. + Homepage: . + It may be used under the terms of the GNU General Public License. */ + +using System.Reflection; +using System.Resources; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("HandBrake")] +[assembly: AssemblyDescription("HandBrake is a GPL-licensed, multiplatform, multithreaded video transcoder.")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("HandBrake")] +[assembly: AssemblyProduct("HandBrake")] +[assembly: AssemblyCopyright("Copyright © 2010")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("5e4e3f97-5252-41f6-aae9-3846f62cbc66")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("0.9.4.$WCREV$")] +[assembly: NeutralResourcesLanguage("")] -- cgit v1.2.3