summaryrefslogtreecommitdiffstats
path: root/win/C#
diff options
context:
space:
mode:
authorsr55 <[email protected]>2010-06-12 11:16:39 +0000
committersr55 <[email protected]>2010-06-12 11:16:39 +0000
commite30d3faa77a878394b195c651f4b495bb2f60e2d (patch)
tree1f20d877d63b74e7eafd9a5e0219d219d7298324 /win/C#
parentb837a99d5bc4dea6eb35ae98766c780912093f92 (diff)
WinGui:
- Svn Rev added to services dll. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@3379 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'win/C#')
-rw-r--r--win/C#/HandBrake.ApplicationServices/HandBrake.ApplicationServices.csproj8
-rw-r--r--win/C#/HandBrake.ApplicationServices/Init.cs13
-rw-r--r--win/C#/HandBrake.ApplicationServices/Properties/AssemblyInfo.cs.tmpl (renamed from win/C#/HandBrake.ApplicationServices/Properties/AssemblyInfo.cs)24
3 files changed, 35 insertions, 10 deletions
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 @@
<Compile Include="Parsing\Parser.cs" />
<Compile Include="Parsing\Subtitle.cs" />
<Compile Include="Parsing\Title.cs" />
- <Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
@@ -126,6 +125,7 @@
<None Include="Resources\ErrorX.png" />
</ItemGroup>
<ItemGroup>
+ <None Include="Properties\AssemblyInfo.cs.tmpl" />
<None Include="Resources\copy.png" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
@@ -137,4 +137,10 @@
<Target Name="AfterBuild">
</Target>
-->
+ <PropertyGroup>
+ <PreBuildEvent>
+ subwcrev.exe "$(ProjectDir)." "$(ProjectDir)Properties\AssemblyInfo.cs.tmpl" "$(ProjectDir)Properties\AssemblyInfo.cs"
+ subwcrev.exe "$(ProjectDir)." "$(ProjectDir)Properties\AssemblyInfo.cs.tmpl" "$(ProjectDir)Properties\AssemblyInfo.cs"
+ </PreBuildEvent>
+ </PropertyGroup>
</Project> \ 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;
+
/// <summary>
/// Initialize ApplicationServices
/// </summary>
@@ -65,5 +68,15 @@ namespace HandBrake.ApplicationServices
Properties.Settings.Default.Save();
}
+ /// <summary>
+ /// Gets the Assembly version.
+ /// </summary>
+ /// <returns>
+ /// Version data
+ /// </returns>
+ 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.tmpl
index dea8e3e9d..e939dcfdf 100644
--- a/win/C#/HandBrake.ApplicationServices/Properties/AssemblyInfo.cs
+++ b/win/C#/HandBrake.ApplicationServices/Properties/AssemblyInfo.cs.tmpl
@@ -1,16 +1,22 @@
-using System.Reflection;
+/* AssemblyInfo.cs $
+ This file is part of the HandBrake source code.
+ Homepage: <http://handbrake.fr>.
+ 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.ApplicationServices")]
-[assembly: AssemblyDescription("")]
+[assembly: AssemblyTitle("HandBrake")]
+[assembly: AssemblyDescription("HandBrake is a GPL-licensed, multiplatform, multithreaded video transcoder.")]
[assembly: AssemblyConfiguration("")]
-[assembly: AssemblyCompany("HandBrake Team")]
-[assembly: AssemblyProduct("HandBrake.ApplicationServices")]
-[assembly: AssemblyCopyright("Copyright © HandBrake Team 2010")]
+[assembly: AssemblyCompany("HandBrake")]
+[assembly: AssemblyProduct("HandBrake")]
+[assembly: AssemblyCopyright("Copyright © 2010")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
@@ -20,7 +26,7 @@ using System.Runtime.InteropServices;
[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")]
+[assembly: Guid("5e4e3f97-5252-41f6-aae9-3846f62cbc66")]
// Version information for an assembly consists of the following four values:
//
@@ -32,5 +38,5 @@ using System.Runtime.InteropServices;
// 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")]
+[assembly: AssemblyVersion("0.9.4.$WCREV$")]
+[assembly: NeutralResourcesLanguage("")]