MediaBrowser.ServerApplication.csproj 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  3. <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
  4. <PropertyGroup>
  5. <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
  6. <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
  7. <ProjectGuid>{94ADE4D3-B7EC-45CD-A200-CC469433072B}</ProjectGuid>
  8. <OutputType>WinExe</OutputType>
  9. <AppDesignerFolder>Properties</AppDesignerFolder>
  10. <RootNamespace>MediaBrowser.ServerApplication</RootNamespace>
  11. <AssemblyName>MediaBrowser.ServerApplication</AssemblyName>
  12. <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
  13. <FileAlignment>512</FileAlignment>
  14. <SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
  15. <RestorePackages>true</RestorePackages>
  16. </PropertyGroup>
  17. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
  18. <PlatformTarget>AnyCPU</PlatformTarget>
  19. <DebugSymbols>true</DebugSymbols>
  20. <DebugType>full</DebugType>
  21. <Optimize>false</Optimize>
  22. <OutputPath>bin\Debug\</OutputPath>
  23. <DefineConstants>DEBUG;TRACE</DefineConstants>
  24. <ErrorReport>prompt</ErrorReport>
  25. <WarningLevel>4</WarningLevel>
  26. </PropertyGroup>
  27. <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
  28. <PlatformTarget>AnyCPU</PlatformTarget>
  29. <DebugType>pdbonly</DebugType>
  30. <Optimize>true</Optimize>
  31. <OutputPath>bin\Release\</OutputPath>
  32. <DefineConstants>TRACE</DefineConstants>
  33. <ErrorReport>prompt</ErrorReport>
  34. <WarningLevel>4</WarningLevel>
  35. </PropertyGroup>
  36. <PropertyGroup>
  37. <StartupObject>MediaBrowser.ServerApplication.MainStartup</StartupObject>
  38. </PropertyGroup>
  39. <PropertyGroup>
  40. <ApplicationIcon>Resources\Images\Icon.ico</ApplicationIcon>
  41. </PropertyGroup>
  42. <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
  43. <DebugSymbols>true</DebugSymbols>
  44. <OutputPath>bin\x86\Debug\</OutputPath>
  45. <DefineConstants>DEBUG;TRACE</DefineConstants>
  46. <DebugType>full</DebugType>
  47. <PlatformTarget>x86</PlatformTarget>
  48. <ErrorReport>prompt</ErrorReport>
  49. <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
  50. <Prefer32Bit>true</Prefer32Bit>
  51. </PropertyGroup>
  52. <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
  53. <OutputPath>bin\x86\Release\</OutputPath>
  54. <DefineConstants>TRACE</DefineConstants>
  55. <Optimize>true</Optimize>
  56. <DebugType>pdbonly</DebugType>
  57. <PlatformTarget>x86</PlatformTarget>
  58. <ErrorReport>prompt</ErrorReport>
  59. <CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
  60. <Prefer32Bit>true</Prefer32Bit>
  61. </PropertyGroup>
  62. <ItemGroup>
  63. <Reference Include="MediaBrowser.IsoMounter">
  64. <HintPath>..\packages\MediaBrowser.IsoMounting.3.0.65\lib\net45\MediaBrowser.IsoMounter.dll</HintPath>
  65. </Reference>
  66. <Reference Include="NLog">
  67. <HintPath>..\packages\NLog.2.1.0\lib\net45\NLog.dll</HintPath>
  68. </Reference>
  69. <Reference Include="pfmclrapi">
  70. <HintPath>..\packages\MediaBrowser.IsoMounting.3.0.65\lib\net45\pfmclrapi.dll</HintPath>
  71. </Reference>
  72. <Reference Include="ServiceStack.Interfaces">
  73. <HintPath>..\ThirdParty\ServiceStack\ServiceStack.Interfaces.dll</HintPath>
  74. </Reference>
  75. <Reference Include="System" />
  76. <Reference Include="System.Configuration" />
  77. <Reference Include="System.Configuration.Install" />
  78. <Reference Include="System.Core" />
  79. <Reference Include="System.Drawing" />
  80. <Reference Include="System.ServiceProcess" />
  81. <Reference Include="System.Windows.Forms" />
  82. <Reference Include="System.Xml.Linq" />
  83. <Reference Include="System.Data.DataSetExtensions" />
  84. <Reference Include="Microsoft.CSharp" />
  85. <Reference Include="System.Data" />
  86. <Reference Include="System.Xml" />
  87. </ItemGroup>
  88. <ItemGroup>
  89. <Compile Include="..\SharedVersion.cs">
  90. <Link>Properties\SharedVersion.cs</Link>
  91. </Compile>
  92. <Compile Include="ApplicationHost.cs" />
  93. <Compile Include="BackgroundService.cs">
  94. <SubType>Component</SubType>
  95. </Compile>
  96. <Compile Include="BackgroundServiceInstaller.cs">
  97. <SubType>Component</SubType>
  98. </Compile>
  99. <Compile Include="EntryPoints\ResourceEntryPoint.cs" />
  100. <Compile Include="EntryPoints\StartupWizard.cs" />
  101. <Compile Include="EntryPoints\WanAddressEntryPoint.cs" />
  102. <Compile Include="FFMpeg\FFMpegDownloader.cs" />
  103. <Compile Include="FFMpeg\FFMpegDownloadInfo.cs" />
  104. <Compile Include="FFMpeg\FFMpegInfo.cs" />
  105. <Compile Include="IO\FileSystemFactory.cs" />
  106. <Compile Include="IO\NativeFileSystem.cs" />
  107. <Compile Include="LibraryViewer.cs">
  108. <SubType>Form</SubType>
  109. </Compile>
  110. <Compile Include="LibraryViewer.Designer.cs">
  111. <DependentUpon>LibraryViewer.cs</DependentUpon>
  112. </Compile>
  113. <Compile Include="Logging\LogForm.cs">
  114. <SubType>Form</SubType>
  115. </Compile>
  116. <Compile Include="Logging\LogForm.Designer.cs">
  117. <DependentUpon>LogForm.cs</DependentUpon>
  118. </Compile>
  119. <Compile Include="Logging\WindowTraceListener.cs" />
  120. <Compile Include="MainForm.cs">
  121. <SubType>Form</SubType>
  122. </Compile>
  123. <Compile Include="MainForm.Designer.cs">
  124. <DependentUpon>MainForm.cs</DependentUpon>
  125. </Compile>
  126. <Compile Include="MainStartup.cs" />
  127. <Compile Include="Native\Assemblies.cs" />
  128. <Compile Include="Native\Autorun.cs" />
  129. <Compile Include="Native\BrowserLauncher.cs" />
  130. <Compile Include="Native\NativeApp.cs" />
  131. <Compile Include="Native\ServerAuthorization.cs" />
  132. <Compile Include="Networking\NativeMethods.cs" />
  133. <Compile Include="Networking\NetworkManager.cs" />
  134. <Compile Include="Networking\NetworkShares.cs" />
  135. <Compile Include="Properties\AssemblyInfo.cs" />
  136. <Compile Include="Properties\Resources.Designer.cs">
  137. <AutoGen>True</AutoGen>
  138. <DesignTime>True</DesignTime>
  139. <DependentUpon>Resources.resx</DependentUpon>
  140. </Compile>
  141. <Compile Include="ServerNotifyIcon.cs" />
  142. <Compile Include="Splash\SplashForm.cs">
  143. <SubType>Form</SubType>
  144. </Compile>
  145. <Compile Include="Splash\SplashForm.Designer.cs">
  146. <DependentUpon>SplashForm.cs</DependentUpon>
  147. </Compile>
  148. <Compile Include="Updates\ApplicationUpdater.cs" />
  149. </ItemGroup>
  150. <ItemGroup>
  151. <None Include="App.config" />
  152. <None Include="app.manifest" />
  153. <EmbeddedResource Include="Native\RegisterServer.bat" />
  154. <None Include="packages.config" />
  155. </ItemGroup>
  156. <ItemGroup>
  157. <EmbeddedResource Include="LibraryViewer.resx">
  158. <DependentUpon>LibraryViewer.cs</DependentUpon>
  159. </EmbeddedResource>
  160. <EmbeddedResource Include="Logging\LogForm.resx">
  161. <DependentUpon>LogForm.cs</DependentUpon>
  162. </EmbeddedResource>
  163. <EmbeddedResource Include="MainForm.resx">
  164. <DependentUpon>MainForm.cs</DependentUpon>
  165. </EmbeddedResource>
  166. <EmbeddedResource Include="Properties\Resources.resx">
  167. <Generator>ResXFileCodeGenerator</Generator>
  168. <LastGenOutput>Resources.Designer.cs</LastGenOutput>
  169. </EmbeddedResource>
  170. <EmbeddedResource Include="Splash\SplashForm.resx">
  171. <DependentUpon>SplashForm.cs</DependentUpon>
  172. </EmbeddedResource>
  173. </ItemGroup>
  174. <ItemGroup>
  175. <Content Include="Resources\Images\Icon.ico" />
  176. <Content Include="Resources\Images\mb3logo800.png" />
  177. </ItemGroup>
  178. <ItemGroup>
  179. <ProjectReference Include="..\MediaBrowser.Api\MediaBrowser.Api.csproj">
  180. <Project>{4fd51ac5-2c16-4308-a993-c3a84f3b4582}</Project>
  181. <Name>MediaBrowser.Api</Name>
  182. </ProjectReference>
  183. <ProjectReference Include="..\MediaBrowser.Common.Implementations\MediaBrowser.Common.Implementations.csproj">
  184. <Project>{c4d2573a-3fd3-441f-81af-174ac4cd4e1d}</Project>
  185. <Name>MediaBrowser.Common.Implementations</Name>
  186. </ProjectReference>
  187. <ProjectReference Include="..\MediaBrowser.Common\MediaBrowser.Common.csproj">
  188. <Project>{9142eefa-7570-41e1-bfcc-468bb571af2f}</Project>
  189. <Name>MediaBrowser.Common</Name>
  190. </ProjectReference>
  191. <ProjectReference Include="..\MediaBrowser.Controller\MediaBrowser.Controller.csproj">
  192. <Project>{17e1f4e6-8abd-4fe5-9ecf-43d4b6087ba2}</Project>
  193. <Name>MediaBrowser.Controller</Name>
  194. </ProjectReference>
  195. <ProjectReference Include="..\MediaBrowser.Dlna\MediaBrowser.Dlna.csproj">
  196. <Project>{734098eb-6dc1-4dd0-a1ca-3140dcd2737c}</Project>
  197. <Name>MediaBrowser.Dlna</Name>
  198. </ProjectReference>
  199. <ProjectReference Include="..\MediaBrowser.MediaEncoding\MediaBrowser.MediaEncoding.csproj">
  200. <Project>{0bd82fa6-eb8a-4452-8af5-74f9c3849451}</Project>
  201. <Name>MediaBrowser.MediaEncoding</Name>
  202. </ProjectReference>
  203. <ProjectReference Include="..\MediaBrowser.Model\MediaBrowser.Model.csproj">
  204. <Project>{7eeeb4bb-f3e8-48fc-b4c5-70f0fff8329b}</Project>
  205. <Name>MediaBrowser.Model</Name>
  206. </ProjectReference>
  207. <ProjectReference Include="..\MediaBrowser.Providers\MediaBrowser.Providers.csproj">
  208. <Project>{442b5058-dcaf-4263-bb6a-f21e31120a1b}</Project>
  209. <Name>MediaBrowser.Providers</Name>
  210. </ProjectReference>
  211. <ProjectReference Include="..\MediaBrowser.Server.Implementations\MediaBrowser.Server.Implementations.csproj">
  212. <Project>{2e781478-814d-4a48-9d80-bff206441a65}</Project>
  213. <Name>MediaBrowser.Server.Implementations</Name>
  214. </ProjectReference>
  215. <ProjectReference Include="..\MediaBrowser.WebDashboard\MediaBrowser.WebDashboard.csproj">
  216. <Project>{5624b7b5-b5a7-41d8-9f10-cc5611109619}</Project>
  217. <Name>MediaBrowser.WebDashboard</Name>
  218. </ProjectReference>
  219. </ItemGroup>
  220. <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
  221. <Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
  222. <PropertyGroup>
  223. <PostBuildEvent>if $(ConfigurationName) == Release (
  224. rmdir "$(SolutionDir)..\Deploy\Server\System" /s /q
  225. mkdir "$(SolutionDir)..\Deploy\Server\System"
  226. rmdir "$(SolutionDir)..\Deploy\Server\Pismo" /s /q
  227. xcopy "$(TargetDir)$(TargetFileName)" "$(SolutionDir)..\Deploy\Server\System\" /y
  228. xcopy "$(SolutionDir)Installation\MediaBrowser.Uninstaller.exe.config" "$(SolutionDir)..\Deploy\Server\System\" /y
  229. xcopy "$(SolutionDir)Installation\MediaBrowser.Uninstaller.exe" "$(SolutionDir)..\Deploy\Server\System\" /y
  230. xcopy "$(SolutionDir)Installation\MediaBrowser.InstallUtil.dll" "$(SolutionDir)..\Deploy\Server\System\" /y
  231. xcopy "$(SolutionDir)Installation\MediaBrowser.Updater.exe" "$(SolutionDir)..\Deploy\Server\System\" /y
  232. mkdir "$(SolutionDir)..\Deploy\Server\System\swagger-ui"
  233. xcopy "$(TargetDir)swagger-ui" "$(SolutionDir)..\Deploy\Server\System\swagger-ui" /y /s
  234. xcopy "$(TargetDir)$(TargetFileName).config" "$(SolutionDir)..\Deploy\Server\System\" /y
  235. xcopy "$(TargetDir)*.dll" "$(SolutionDir)..\Deploy\Server\System" /y
  236. mkdir "$(SolutionDir)..\Deploy\Server\System\dashboard-ui"
  237. xcopy "$(TargetDir)dashboard-ui" "$(SolutionDir)..\Deploy\Server\System\dashboard-ui" /y /s
  238. mkdir "$(SolutionDir)..\Deploy\Server\System\x86"
  239. xcopy "$(TargetDir)x86" "$(SolutionDir)..\Deploy\Server\System\x86" /y /s
  240. mkdir "$(SolutionDir)..\Deploy\Server\System\x64"
  241. xcopy "$(TargetDir)x64" "$(SolutionDir)..\Deploy\Server\System\x64" /y /s
  242. del "$(SolutionDir)..\Deploy\MBServer.zip"
  243. "$(SolutionDir)ThirdParty\7zip\7za" a -mx9 "$(SolutionDir)..\Deploy\MBServer.zip" "$(SolutionDir)..\Deploy\Server\*"
  244. )</PostBuildEvent>
  245. </PropertyGroup>
  246. <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
  247. Other similar extension points exist, see Microsoft.Common.targets.
  248. <Target Name="BeforeBuild">
  249. </Target>
  250. <Target Name="AfterBuild">
  251. </Target>
  252. -->
  253. <Target Name="AfterBuild">
  254. <GetAssemblyIdentity AssemblyFiles="$(TargetPath)">
  255. <Output TaskParameter="Assemblies" ItemName="CurrentAssembly" />
  256. </GetAssemblyIdentity>
  257. <Exec Command="copy &quot;$(SolutionDir)..\Deploy\MBServer.zip&quot; &quot;$(SolutionDir)..\Deploy\MBServer_%(CurrentAssembly.Version).zip&quot; /y" Condition="'$(ConfigurationName)' == 'Release'" />
  258. </Target>
  259. </Project>