2019-09-02 22:27:49 +02:00
|
|
|
<Project>
|
|
|
|
<!-- Common to all Radarr Projects -->
|
|
|
|
<PropertyGroup>
|
2019-12-22 22:24:11 +01:00
|
|
|
<CodeAnalysisRuleSet>$(SolutionDir)Stylecop.ruleset</CodeAnalysisRuleSet>
|
2019-12-22 23:08:53 +01:00
|
|
|
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
2019-10-14 23:07:40 +02:00
|
|
|
|
2019-10-14 22:20:59 +02:00
|
|
|
<PlatformTarget>AnyCPU</PlatformTarget>
|
|
|
|
<TargetLatestRuntimePatch>true</TargetLatestRuntimePatch>
|
2019-10-14 23:42:30 +02:00
|
|
|
<RuntimeIdentifiers>win-x64;osx-x64;linux-x64;linux-arm;linux-arm64</RuntimeIdentifiers>
|
|
|
|
<ExcludedRuntimeFrameworkPairs>win-x64:net462;osx-x64:net462;linux-arm:net462;linux-arm64:net462</ExcludedRuntimeFrameworkPairs>
|
2019-10-14 22:20:59 +02:00
|
|
|
|
2019-09-02 22:27:49 +02:00
|
|
|
<RadarrRootDir>$(MSBuildThisFileDirectory)..\</RadarrRootDir>
|
|
|
|
|
|
|
|
<!-- Specifies the type of output -->
|
|
|
|
<RadarrOutputType>Library</RadarrOutputType>
|
|
|
|
<RadarrOutputType Condition="$(MSBuildProjectName.Contains('.Test'))">Test</RadarrOutputType>
|
|
|
|
<RadarrOutputType Condition="'$(MSBuildProjectName)'=='ServiceInstall'">Exe</RadarrOutputType>
|
|
|
|
<RadarrOutputType Condition="'$(MSBuildProjectName)'=='ServiceUninstall'">Exe</RadarrOutputType>
|
|
|
|
<RadarrOutputType Condition="'$(MSBuildProjectName)'=='Radarr'">Exe</RadarrOutputType>
|
|
|
|
<RadarrOutputType Condition="'$(MSBuildProjectName)'=='Radarr.Console'">Exe</RadarrOutputType>
|
|
|
|
<RadarrOutputType Condition="'$(MSBuildProjectName)'=='Radarr.Update'">Update</RadarrOutputType>
|
|
|
|
|
|
|
|
<!-- Specifies whether it's one of our own libraries -->
|
|
|
|
<RadarrProject>false</RadarrProject>
|
|
|
|
<RadarrProject Condition="$(MSBuildProjectName.StartsWith('Radarr'))">true</RadarrProject>
|
|
|
|
<RadarrProject Condition="$(MSBuildProjectName.StartsWith('ServiceInstall'))">true</RadarrProject>
|
|
|
|
<RadarrProject Condition="$(MSBuildProjectName.StartsWith('ServiceUninstall'))">true</RadarrProject>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<PropertyGroup>
|
2019-09-03 04:22:25 +02:00
|
|
|
<Configuration Condition="'$(Configuration)'==''">Release</Configuration>
|
2019-09-02 22:27:49 +02:00
|
|
|
<!-- Centralize intermediate and default outputs -->
|
2019-09-03 04:22:25 +02:00
|
|
|
<BaseIntermediateOutputPath>$(RadarrRootDir)_temp\obj\$(MSBuildProjectName)\</BaseIntermediateOutputPath>
|
|
|
|
<IntermediateOutputPath>$(RadarrRootDir)_temp\obj\$(MSBuildProjectName)\$(Configuration)\</IntermediateOutputPath>
|
2019-09-02 22:27:49 +02:00
|
|
|
<OutputPath>$(RadarrRootDir)_temp\bin\$(Configuration)\$(MSBuildProjectName)\</OutputPath>
|
|
|
|
|
|
|
|
<!-- Output to _output and _tests respectively -->
|
|
|
|
<OutputPath Condition="'$(RadarrProject)'=='true'">$(RadarrRootDir)_output\</OutputPath>
|
|
|
|
<OutputPath Condition="'$(RadarrOutputType)'=='Test'">$(RadarrRootDir)_tests\</OutputPath>
|
|
|
|
<OutputPath Condition="'$(RadarrOutputType)'=='Update'">$(RadarrRootDir)_output\Radarr.Update\</OutputPath>
|
|
|
|
|
|
|
|
<!-- Paths relative to project file for better readability -->
|
2019-09-03 04:22:25 +02:00
|
|
|
<BaseIntermediateOutputPath>$([MSBuild]::MakeRelative('$(MSBuildProjectDirectory)', '$(BaseIntermediateOutputPath)'))</BaseIntermediateOutputPath>
|
2019-09-02 22:27:49 +02:00
|
|
|
<IntermediateOutputPath>$([MSBuild]::MakeRelative('$(MSBuildProjectDirectory)', '$(IntermediateOutputPath)'))</IntermediateOutputPath>
|
|
|
|
<OutputPath>$([MSBuild]::MakeRelative('$(MSBuildProjectDirectory)', '$(OutputPath)'))</OutputPath>
|
|
|
|
|
|
|
|
<DebugSymbols>true</DebugSymbols>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<!-- Test projects need bindingRedirects -->
|
|
|
|
<PropertyGroup Condition="'$(RadarrOutputType)'=='Test'">
|
|
|
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
|
|
|
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
|
2019-10-15 22:45:41 +02:00
|
|
|
<SelfContained>false</SelfContained>
|
2019-09-02 22:27:49 +02:00
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<!-- Set the Product and Version info for our own projects -->
|
|
|
|
<PropertyGroup Condition="'$(RadarrProject)'=='true'">
|
|
|
|
<Product>Radarr</Product>
|
|
|
|
<Company>radarr.video</Company>
|
|
|
|
<Copyright>Copyright 2014-$([System.DateTime]::Now.ToString('yyyy')) radarr.video (GNU General Public v3)</Copyright>
|
|
|
|
|
|
|
|
<!-- Should be replaced by CI -->
|
|
|
|
<AssemblyVersion>10.0.0.*</AssemblyVersion>
|
|
|
|
<AssemblyConfiguration>$(Configuration)-dev</AssemblyConfiguration>
|
|
|
|
|
|
|
|
<GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>
|
|
|
|
<GenerateAssemblyInformationalVersionAttribute>false</GenerateAssemblyInformationalVersionAttribute>
|
|
|
|
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
|
|
|
|
|
|
|
|
<Deterministic Condition="$(AssemblyVersion.EndsWith('*'))">False</Deterministic>
|
|
|
|
</PropertyGroup>
|
2019-10-14 22:20:59 +02:00
|
|
|
|
2019-09-02 22:27:49 +02:00
|
|
|
<!-- Set the AssemblyConfiguration attribute for projects -->
|
|
|
|
<ItemGroup Condition="'$(RadarrProject)'=='true'">
|
|
|
|
<AssemblyAttribute Include="System.Reflection.AssemblyConfigurationAttribute">
|
|
|
|
<_Parameter1>$(AssemblyConfiguration)</_Parameter1>
|
|
|
|
</AssemblyAttribute>
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
<PropertyGroup>
|
|
|
|
<!-- For now keep the NzbDrone namespace -->
|
|
|
|
<RootNamespace Condition="'$(RadarrProject)'=='true'">$(MSBuildProjectName.Replace('Radarr','NzbDrone'))</RootNamespace>
|
|
|
|
</PropertyGroup>
|
2019-10-14 22:20:59 +02:00
|
|
|
|
|
|
|
<!-- Allow building net framework using mono -->
|
|
|
|
<ItemGroup>
|
2019-12-05 22:41:55 +01:00
|
|
|
<PackageReference Include="Microsoft.NETFramework.ReferenceAssemblies" Version="1.0.0">
|
2019-10-14 22:20:59 +02:00
|
|
|
<PrivateAssets>all</PrivateAssets>
|
|
|
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
|
|
|
|
</PackageReference>
|
|
|
|
</ItemGroup>
|
|
|
|
|
2019-12-22 22:24:11 +01:00
|
|
|
<!-- Set up stylecop -->
|
2019-12-22 23:08:53 +01:00
|
|
|
<ItemGroup Condition="'$(RadarrProject)'=='true'">
|
2019-12-22 22:24:11 +01:00
|
|
|
<!-- StyleCop analysis -->
|
|
|
|
<PackageReference Include="StyleCop.Analyzers" Version="1.1.118">
|
|
|
|
<PrivateAssets>all</PrivateAssets>
|
|
|
|
<IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
|
|
|
|
</PackageReference>
|
|
|
|
<AdditionalFiles Include="$(SolutionDir)stylecop.json" />
|
|
|
|
</ItemGroup>
|
|
|
|
|
2019-10-14 22:20:59 +02:00
|
|
|
<!--
|
|
|
|
Set runtime identifier to local system type if not specified
|
|
|
|
-->
|
|
|
|
<Choose>
|
|
|
|
<When Condition="'$(OS)' == 'Windows_NT'">
|
|
|
|
<PropertyGroup>
|
|
|
|
<IsWindows>true</IsWindows>
|
|
|
|
</PropertyGroup>
|
|
|
|
</When>
|
|
|
|
<When Condition="'$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::OSX)))' == 'true'">
|
|
|
|
<PropertyGroup>
|
|
|
|
<IsOSX>true</IsOSX>
|
|
|
|
</PropertyGroup>
|
|
|
|
</When>
|
|
|
|
<Otherwise>
|
|
|
|
<PropertyGroup>
|
|
|
|
<IsLinux>true</IsLinux>
|
|
|
|
</PropertyGroup>
|
|
|
|
</Otherwise>
|
|
|
|
</Choose>
|
|
|
|
|
|
|
|
<PropertyGroup Condition="'$(IsWindows)' == 'true' and
|
|
|
|
'$(RuntimeIdentifier)' == ''">
|
|
|
|
<_UsingDefaultRuntimeIdentifier>true</_UsingDefaultRuntimeIdentifier>
|
|
|
|
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<PropertyGroup Condition="'$(IsLinux)' == 'true' and
|
|
|
|
'$(RuntimeIdentifier)' == ''">
|
|
|
|
<_UsingDefaultRuntimeIdentifier>true</_UsingDefaultRuntimeIdentifier>
|
|
|
|
<RuntimeIdentifier>linux-x64</RuntimeIdentifier>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<PropertyGroup Condition="'$(IsOSX)' == 'true' and
|
|
|
|
'$(RuntimeIdentifier)' == ''">
|
|
|
|
<_UsingDefaultRuntimeIdentifier>true</_UsingDefaultRuntimeIdentifier>
|
|
|
|
<RuntimeIdentifier>osx-x64</RuntimeIdentifier>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
2019-09-02 23:03:41 +02:00
|
|
|
</Project>
|