소스 검색

Create MBServer.zip with version number

Eric Reed 12 년 전
부모
커밋
795a6ccd9e
1개의 변경된 파일6개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      MediaBrowser.ServerApplication/MediaBrowser.ServerApplication.csproj

+ 6 - 0
MediaBrowser.ServerApplication/MediaBrowser.ServerApplication.csproj

@@ -402,4 +402,10 @@ del "$(SolutionDir)..\Deploy\MBServer.zip"
   <Target Name="AfterBuild">
   </Target>
   -->
+  <Target Name="AfterBuild">
+      <GetAssemblyIdentity AssemblyFiles="$(TargetPath)">
+         <Output TaskParameter="Assemblies" ItemName="CurrentAssembly" />
+      </GetAssemblyIdentity>
+      <Exec Command="ren $(SolutionDir)..\Deploy\MBServer.zip  MBServer_%(CurrentAssembly.Version).zip" Condition="'$(ConfigurationName)' == 'Release'"/>
+  </Target>
 </Project>