OSDN Git Service

WinGui:
authorsr55 <sr55@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sat, 12 Jun 2010 11:16:39 +0000 (11:16 +0000)
committersr55 <sr55@b64f7644-9d1e-0410-96f1-a4d463321fa5>
Sat, 12 Jun 2010 11:16:39 +0000 (11:16 +0000)
- Svn Rev added to services dll.

git-svn-id: svn://localhost/HandBrake/trunk@3379 b64f7644-9d1e-0410-96f1-a4d463321fa5

win/C#/HandBrake.ApplicationServices/HandBrake.ApplicationServices.csproj
win/C#/HandBrake.ApplicationServices/Init.cs
win/C#/HandBrake.ApplicationServices/Properties/AssemblyInfo.cs.tmpl [moved from win/C#/HandBrake.ApplicationServices/Properties/AssemblyInfo.cs with 59% similarity]

index c2496e9..16a8432 100644 (file)
@@ -83,7 +83,6 @@
     <Compile Include="Parsing\Parser.cs" />\r
     <Compile Include="Parsing\Subtitle.cs" />\r
     <Compile Include="Parsing\Title.cs" />\r
-    <Compile Include="Properties\AssemblyInfo.cs" />\r
     <Compile Include="Properties\Resources.Designer.cs">\r
       <AutoGen>True</AutoGen>\r
       <DesignTime>True</DesignTime>\r
     <None Include="Resources\ErrorX.png" />\r
   </ItemGroup>\r
   <ItemGroup>\r
+    <None Include="Properties\AssemblyInfo.cs.tmpl" />\r
     <None Include="Resources\copy.png" />\r
   </ItemGroup>\r
   <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />\r
   <Target Name="AfterBuild">\r
   </Target>\r
   -->\r
+  <PropertyGroup>\r
+    <PreBuildEvent>\r
+       subwcrev.exe "$(ProjectDir)." "$(ProjectDir)Properties\AssemblyInfo.cs.tmpl" "$(ProjectDir)Properties\AssemblyInfo.cs"\r
+       subwcrev.exe "$(ProjectDir)." "$(ProjectDir)Properties\AssemblyInfo.cs.tmpl" "$(ProjectDir)Properties\AssemblyInfo.cs"\r
+       </PreBuildEvent>\r
+  </PropertyGroup>\r
 </Project>
\ No newline at end of file
index a0a85d4..2808276 100644 (file)
@@ -5,6 +5,9 @@
 \r
 namespace HandBrake.ApplicationServices\r
 {\r
+    using System;\r
+    using System.Reflection;\r
+\r
     /// <summary>\r
     /// Initialize ApplicationServices\r
     /// </summary>\r
@@ -65,5 +68,15 @@ namespace HandBrake.ApplicationServices
             Properties.Settings.Default.Save();\r
         }\r
 \r
+        /// <summary>\r
+        /// Gets the Assembly version.\r
+        /// </summary>\r
+        /// <returns>\r
+        /// Version data\r
+        /// </returns>\r
+        public static Version AssemblyVersion()\r
+        {\r
+            return Assembly.GetExecutingAssembly().GetName().Version;\r
+        }\r
     }\r
 }\r
@@ -1,16 +1,22 @@
-using System.Reflection;\r
+/*  AssemblyInfo.cs $\r
+    This file is part of the HandBrake source code.\r
+    Homepage: <http://handbrake.fr>.\r
+    It may be used under the terms of the GNU General Public License. */\r
+\r
+using System.Reflection;\r
+using System.Resources;\r
 using System.Runtime.CompilerServices;\r
 using System.Runtime.InteropServices;\r
 \r
 // General Information about an assembly is controlled through the following \r
 // set of attributes. Change these attribute values to modify the information\r
 // associated with an assembly.\r
-[assembly: AssemblyTitle("HandBrake.ApplicationServices")]\r
-[assembly: AssemblyDescription("")]\r
+[assembly: AssemblyTitle("HandBrake")]\r
+[assembly: AssemblyDescription("HandBrake is a GPL-licensed, multiplatform, multithreaded video transcoder.")]\r
 [assembly: AssemblyConfiguration("")]\r
-[assembly: AssemblyCompany("HandBrake Team")]\r
-[assembly: AssemblyProduct("HandBrake.ApplicationServices")]\r
-[assembly: AssemblyCopyright("Copyright © HandBrake Team 2010")]\r
+[assembly: AssemblyCompany("HandBrake")]\r
+[assembly: AssemblyProduct("HandBrake")]\r
+[assembly: AssemblyCopyright("Copyright ©  2010")]\r
 [assembly: AssemblyTrademark("")]\r
 [assembly: AssemblyCulture("")]\r
 \r
@@ -20,7 +26,7 @@ using System.Runtime.InteropServices;
 [assembly: ComVisible(false)]\r
 \r
 // The following GUID is for the ID of the typelib if this project is exposed to COM\r
-[assembly: Guid("1fe2c0f6-53e0-4633-88ef-c3cbd8be02a7")]\r
+[assembly: Guid("5e4e3f97-5252-41f6-aae9-3846f62cbc66")]\r
 \r
 // Version information for an assembly consists of the following four values:\r
 //\r
@@ -32,5 +38,5 @@ using System.Runtime.InteropServices;
 // You can specify all the values or you can default the Build and Revision Numbers \r
 // by using the '*' as shown below:\r
 // [assembly: AssemblyVersion("1.0.*")]\r
-[assembly: AssemblyVersion("1.0.0.0")]\r
-[assembly: AssemblyFileVersion("1.0.0.0")]\r
+[assembly: AssemblyVersion("0.9.4.$WCREV$")]\r
+[assembly: NeutralResourcesLanguage("")]\r