MediaBrowser.ServerApplication.csproj 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  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.69\lib\net45\MediaBrowser.IsoMounter.dll</HintPath>
  65. </Reference>
  66. <Reference Include="Mono.Posix, Version=4.0.0.0, Culture=neutral, PublicKeyToken=0738eb9f132ed756, processorArchitecture=MSIL">
  67. <SpecificVersion>False</SpecificVersion>
  68. <HintPath>..\packages\Mono.Posix.4.0.0.0\lib\net40\Mono.Posix.dll</HintPath>
  69. </Reference>
  70. <Reference Include="NLog, Version=3.1.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c, processorArchitecture=MSIL">
  71. <SpecificVersion>False</SpecificVersion>
  72. <HintPath>..\packages\NLog.3.1.0.0\lib\net45\NLog.dll</HintPath>
  73. </Reference>
  74. <Reference Include="pfmclrapi">
  75. <HintPath>..\packages\MediaBrowser.IsoMounting.3.0.69\lib\net45\pfmclrapi.dll</HintPath>
  76. </Reference>
  77. <Reference Include="ServiceStack.Interfaces">
  78. <HintPath>..\ThirdParty\ServiceStack\ServiceStack.Interfaces.dll</HintPath>
  79. </Reference>
  80. <Reference Include="System" />
  81. <Reference Include="System.Configuration" />
  82. <Reference Include="System.Configuration.Install" />
  83. <Reference Include="System.Core" />
  84. <Reference Include="System.Drawing" />
  85. <Reference Include="System.ServiceProcess" />
  86. <Reference Include="System.Windows.Forms" />
  87. <Reference Include="System.Xml.Linq" />
  88. <Reference Include="System.Data.DataSetExtensions" />
  89. <Reference Include="Microsoft.CSharp" />
  90. <Reference Include="System.Data" />
  91. <Reference Include="System.Xml" />
  92. </ItemGroup>
  93. <ItemGroup>
  94. <Compile Include="..\SharedVersion.cs">
  95. <Link>Properties\SharedVersion.cs</Link>
  96. </Compile>
  97. <Compile Include="ApplicationHost.cs" />
  98. <Compile Include="BackgroundService.cs">
  99. <SubType>Component</SubType>
  100. </Compile>
  101. <Compile Include="BackgroundServiceInstaller.cs">
  102. <SubType>Component</SubType>
  103. </Compile>
  104. <Compile Include="EntryPoints\KeepServerAwake.cs" />
  105. <Compile Include="EntryPoints\ResourceEntryPoint.cs" />
  106. <Compile Include="EntryPoints\StartupWizard.cs" />
  107. <Compile Include="FFMpeg\FFMpegDownloader.cs" />
  108. <Compile Include="FFMpeg\FFMpegDownloadInfo.cs" />
  109. <Compile Include="FFMpeg\FFMpegInfo.cs" />
  110. <Compile Include="IO\NativeFileSystem.cs" />
  111. <Compile Include="IO\StartupOptions.cs" />
  112. <Compile Include="Logging\LogForm.cs">
  113. <SubType>Form</SubType>
  114. </Compile>
  115. <Compile Include="Logging\LogForm.Designer.cs">
  116. <DependentUpon>LogForm.cs</DependentUpon>
  117. </Compile>
  118. <Compile Include="Logging\WindowTraceListener.cs" />
  119. <Compile Include="MainForm.cs">
  120. <SubType>Form</SubType>
  121. </Compile>
  122. <Compile Include="MainForm.Designer.cs">
  123. <DependentUpon>MainForm.cs</DependentUpon>
  124. </Compile>
  125. <Compile Include="MainStartup.cs" />
  126. <Compile Include="Native\Assemblies.cs" />
  127. <Compile Include="Native\Autorun.cs" />
  128. <Compile Include="Native\BrowserLauncher.cs" />
  129. <Compile Include="Native\NativeApp.cs" />
  130. <Compile Include="Native\ServerAuthorization.cs" />
  131. <Compile Include="Networking\NativeMethods.cs" />
  132. <Compile Include="Networking\NetworkManager.cs" />
  133. <Compile Include="Networking\NetworkShares.cs" />
  134. <Compile Include="Properties\AssemblyInfo.cs" />
  135. <Compile Include="Properties\Resources.Designer.cs">
  136. <AutoGen>True</AutoGen>
  137. <DesignTime>True</DesignTime>
  138. <DependentUpon>Resources.resx</DependentUpon>
  139. </Compile>
  140. <Compile Include="ServerNotifyIcon.cs" />
  141. <Compile Include="Splash\SplashForm.cs">
  142. <SubType>Form</SubType>
  143. </Compile>
  144. <Compile Include="Splash\SplashForm.Designer.cs">
  145. <DependentUpon>SplashForm.cs</DependentUpon>
  146. </Compile>
  147. <Compile Include="Updates\ApplicationUpdater.cs" />
  148. </ItemGroup>
  149. <ItemGroup>
  150. <None Include="App.config" />
  151. <None Include="app.manifest" />
  152. <EmbeddedResource Include="Native\RegisterServer.bat" />
  153. <None Include="packages.config" />
  154. </ItemGroup>
  155. <ItemGroup>
  156. <EmbeddedResource Include="Logging\LogForm.resx">
  157. <DependentUpon>LogForm.cs</DependentUpon>
  158. </EmbeddedResource>
  159. <EmbeddedResource Include="MainForm.resx">
  160. <DependentUpon>MainForm.cs</DependentUpon>
  161. </EmbeddedResource>
  162. <EmbeddedResource Include="Properties\Resources.resx">
  163. <Generator>ResXFileCodeGenerator</Generator>
  164. <LastGenOutput>Resources.Designer.cs</LastGenOutput>
  165. </EmbeddedResource>
  166. <EmbeddedResource Include="Splash\SplashForm.resx">
  167. <DependentUpon>SplashForm.cs</DependentUpon>
  168. </EmbeddedResource>
  169. </ItemGroup>
  170. <ItemGroup>
  171. <Content Include="Resources\Images\Icon.ico" />
  172. <Content Include="Resources\Images\mb3logo800.png" />
  173. </ItemGroup>
  174. <ItemGroup>
  175. <ProjectReference Include="..\MediaBrowser.Api\MediaBrowser.Api.csproj">
  176. <Project>{4fd51ac5-2c16-4308-a993-c3a84f3b4582}</Project>
  177. <Name>MediaBrowser.Api</Name>
  178. </ProjectReference>
  179. <ProjectReference Include="..\MediaBrowser.Common.Implementations\MediaBrowser.Common.Implementations.csproj">
  180. <Project>{c4d2573a-3fd3-441f-81af-174ac4cd4e1d}</Project>
  181. <Name>MediaBrowser.Common.Implementations</Name>
  182. </ProjectReference>
  183. <ProjectReference Include="..\MediaBrowser.Common\MediaBrowser.Common.csproj">
  184. <Project>{9142eefa-7570-41e1-bfcc-468bb571af2f}</Project>
  185. <Name>MediaBrowser.Common</Name>
  186. </ProjectReference>
  187. <ProjectReference Include="..\MediaBrowser.Controller\MediaBrowser.Controller.csproj">
  188. <Project>{17e1f4e6-8abd-4fe5-9ecf-43d4b6087ba2}</Project>
  189. <Name>MediaBrowser.Controller</Name>
  190. </ProjectReference>
  191. <ProjectReference Include="..\MediaBrowser.Dlna\MediaBrowser.Dlna.csproj">
  192. <Project>{734098eb-6dc1-4dd0-a1ca-3140dcd2737c}</Project>
  193. <Name>MediaBrowser.Dlna</Name>
  194. </ProjectReference>
  195. <ProjectReference Include="..\MediaBrowser.LocalMetadata\MediaBrowser.LocalMetadata.csproj">
  196. <Project>{7ef9f3e0-697d-42f3-a08f-19deb5f84392}</Project>
  197. <Name>MediaBrowser.LocalMetadata</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. <ProjectReference Include="..\MediaBrowser.XbmcMetadata\MediaBrowser.XbmcMetadata.csproj">
  220. <Project>{23499896-b135-4527-8574-c26e926ea99e}</Project>
  221. <Name>MediaBrowser.XbmcMetadata</Name>
  222. </ProjectReference>
  223. </ItemGroup>
  224. <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
  225. <PropertyGroup>
  226. <PostBuildEvent>if $(ConfigurationName) == Release (
  227. rmdir "$(SolutionDir)..\Deploy\Server\System" /s /q
  228. mkdir "$(SolutionDir)..\Deploy\Server\System"
  229. rmdir "$(SolutionDir)..\Deploy\Server\Pismo" /s /q
  230. xcopy "$(TargetDir)$(TargetFileName)" "$(SolutionDir)..\Deploy\Server\System\" /y
  231. xcopy "$(SolutionDir)Installation\MediaBrowser.Uninstaller.exe.config" "$(SolutionDir)..\Deploy\Server\System\" /y
  232. xcopy "$(SolutionDir)Installation\MediaBrowser.Uninstaller.exe" "$(SolutionDir)..\Deploy\Server\System\" /y
  233. xcopy "$(SolutionDir)Installation\MediaBrowser.InstallUtil.dll" "$(SolutionDir)..\Deploy\Server\System\" /y
  234. xcopy "$(SolutionDir)Installation\MediaBrowser.Updater.exe" "$(SolutionDir)..\Deploy\Server\System\" /y
  235. mkdir "$(SolutionDir)..\Deploy\Server\System\swagger-ui"
  236. xcopy "$(TargetDir)swagger-ui" "$(SolutionDir)..\Deploy\Server\System\swagger-ui" /y /s
  237. xcopy "$(TargetDir)$(TargetFileName).config" "$(SolutionDir)..\Deploy\Server\System\" /y
  238. xcopy "$(TargetDir)*.dll" "$(SolutionDir)..\Deploy\Server\System" /y
  239. mkdir "$(SolutionDir)..\Deploy\Server\System\dashboard-ui"
  240. xcopy "$(TargetDir)dashboard-ui" "$(SolutionDir)..\Deploy\Server\System\dashboard-ui" /y /s
  241. mkdir "$(SolutionDir)..\Deploy\Server\System\x86"
  242. xcopy "$(TargetDir)x86" "$(SolutionDir)..\Deploy\Server\System\x86" /y /s
  243. mkdir "$(SolutionDir)..\Deploy\Server\System\x64"
  244. xcopy "$(TargetDir)x64" "$(SolutionDir)..\Deploy\Server\System\x64" /y /s
  245. del "$(SolutionDir)..\Deploy\MBServer.zip"
  246. "$(SolutionDir)ThirdParty\7zip\7za" a -mx9 "$(SolutionDir)..\Deploy\MBServer.zip" "$(SolutionDir)..\Deploy\Server\*"
  247. )</PostBuildEvent>
  248. </PropertyGroup>
  249. <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
  250. Other similar extension points exist, see Microsoft.Common.targets.
  251. <Target Name="BeforeBuild">
  252. </Target>
  253. <Target Name="AfterBuild">
  254. </Target>
  255. -->
  256. <Target Name="AfterBuild">
  257. <GetAssemblyIdentity AssemblyFiles="$(TargetPath)">
  258. <Output TaskParameter="Assemblies" ItemName="CurrentAssembly" />
  259. </GetAssemblyIdentity>
  260. <Exec Command="copy &quot;$(SolutionDir)..\Deploy\MBServer.zip&quot; &quot;$(SolutionDir)..\Deploy\MBServer_%(CurrentAssembly.Version).zip&quot; /y" Condition="'$(ConfigurationName)' == 'Release'" />
  261. </Target>
  262. <Import Project="$(SolutionDir)\.nuget\NuGet.targets" Condition="Exists('$(SolutionDir)\.nuget\NuGet.targets')" />
  263. <Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
  264. <PropertyGroup>
  265. <ErrorText>This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
  266. </PropertyGroup>
  267. <Error Condition="!Exists('$(SolutionDir)\.nuget\NuGet.targets')" Text="$([System.String]::Format('$(ErrorText)', '$(SolutionDir)\.nuget\NuGet.targets'))" />
  268. </Target>
  269. </Project>