2019-08-16 18:39:35 +00:00
|
|
|
<Project>
|
|
|
|
<!-- Common to all Sonarr Projects -->
|
|
|
|
<PropertyGroup>
|
|
|
|
<SonarrRootDir>$(MSBuildThisFileDirectory)..\</SonarrRootDir>
|
|
|
|
|
|
|
|
<!-- Specifies the type of output -->
|
|
|
|
<SonarrOutputType>Library</SonarrOutputType>
|
|
|
|
<SonarrOutputType Condition="$(MSBuildProjectName.Contains('.Test'))">Test</SonarrOutputType>
|
|
|
|
<SonarrOutputType Condition="'$(MSBuildProjectName)'=='ServiceInstall'">Exe</SonarrOutputType>
|
|
|
|
<SonarrOutputType Condition="'$(MSBuildProjectName)'=='ServiceUninstall'">Exe</SonarrOutputType>
|
|
|
|
<SonarrOutputType Condition="'$(MSBuildProjectName)'=='Sonarr'">Exe</SonarrOutputType>
|
|
|
|
<SonarrOutputType Condition="'$(MSBuildProjectName)'=='Sonarr.Console'">Exe</SonarrOutputType>
|
|
|
|
<SonarrOutputType Condition="'$(MSBuildProjectName)'=='Sonarr.Update'">Update</SonarrOutputType>
|
|
|
|
|
|
|
|
<!-- Specifies whether it's one of our own libraries -->
|
|
|
|
<SonarrProject>false</SonarrProject>
|
|
|
|
<SonarrProject Condition="$(MSBuildProjectName.StartsWith('Sonarr'))">true</SonarrProject>
|
|
|
|
<SonarrProject Condition="$(MSBuildProjectName.StartsWith('ServiceInstall'))">true</SonarrProject>
|
|
|
|
<SonarrProject Condition="$(MSBuildProjectName.StartsWith('ServiceUninstall'))">true</SonarrProject>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<PropertyGroup>
|
2019-08-24 10:17:28 +00:00
|
|
|
<Configuration Condition="'$(Configuration)'==''">Release</Configuration>
|
2019-08-16 18:39:35 +00:00
|
|
|
<!-- Centralize intermediate and default outputs -->
|
2019-08-24 10:17:28 +00:00
|
|
|
<BaseIntermediateOutputPath>$(SonarrRootDir)_temp\obj\$(MSBuildProjectName)\</BaseIntermediateOutputPath>
|
2021-12-20 02:27:43 +00:00
|
|
|
<IntermediateOutputPath>$(SonarrRootDir)_temp\obj\$(MSBuildProjectName)\$(Configuration)\</IntermediateOutputPath>
|
|
|
|
<OutputPath>$(SonarrRootDir)_temp\bin\$(Configuration)\$(MSBuildProjectName)\</OutputPath>
|
2019-08-16 18:39:35 +00:00
|
|
|
|
|
|
|
<!-- Output to _output and _tests respectively -->
|
2021-12-20 02:27:43 +00:00
|
|
|
<OutputPath Condition="'$(SonarrProject)'=='true'">$(SonarrRootDir)_output\</OutputPath>
|
|
|
|
<OutputPath Condition="'$(SonarrOutputType)'=='Test'">$(SonarrRootDir)_tests\</OutputPath>
|
|
|
|
<OutputPath Condition="'$(SonarrOutputType)'=='Update'">$(SonarrRootDir)_output\Sonarr.Update\</OutputPath>
|
2019-08-16 18:39:35 +00:00
|
|
|
|
|
|
|
<!-- Paths relative to project file for better readability -->
|
2019-08-24 10:17:28 +00:00
|
|
|
<BaseIntermediateOutputPath>$([MSBuild]::MakeRelative('$(MSBuildProjectDirectory)', '$(BaseIntermediateOutputPath)'))</BaseIntermediateOutputPath>
|
2019-08-16 18:39:35 +00:00
|
|
|
<IntermediateOutputPath>$([MSBuild]::MakeRelative('$(MSBuildProjectDirectory)', '$(IntermediateOutputPath)'))</IntermediateOutputPath>
|
|
|
|
<OutputPath>$([MSBuild]::MakeRelative('$(MSBuildProjectDirectory)', '$(OutputPath)'))</OutputPath>
|
|
|
|
|
|
|
|
<!-- below net4.7.1 the new portable pdb format has no line numbers, pdb to mdb probably doesn't like it either -->
|
|
|
|
<DebugType>full</DebugType>
|
|
|
|
<DebugSymbols>true</DebugSymbols>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<!-- Test projects need bindingRedirects -->
|
|
|
|
<PropertyGroup Condition="'$(SonarrOutputType)'=='Test'">
|
|
|
|
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
|
|
|
|
<GenerateBindingRedirectsOutputType>true</GenerateBindingRedirectsOutputType>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
<!-- Set the Product and Version info for our own projects -->
|
|
|
|
<PropertyGroup Condition="'$(SonarrProject)'=='true'">
|
|
|
|
<Product>Sonarr</Product>
|
|
|
|
<Company>sonarr.tv</Company>
|
2019-08-21 18:18:01 +00:00
|
|
|
<Copyright>Copyright 2010-$([System.DateTime]::Now.ToString('yyyy')) sonarr.tv (GNU General Public v3)</Copyright>
|
2019-08-16 18:39:35 +00:00
|
|
|
|
|
|
|
<!-- Should be replaced by CI -->
|
|
|
|
<AssemblyVersion>10.0.0.*</AssemblyVersion>
|
2019-08-21 18:18:01 +00:00
|
|
|
<AssemblyConfiguration>$(Configuration)-dev</AssemblyConfiguration>
|
2019-08-16 18:39:35 +00:00
|
|
|
|
|
|
|
<GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>
|
|
|
|
<GenerateAssemblyInformationalVersionAttribute>false</GenerateAssemblyInformationalVersionAttribute>
|
2019-08-21 18:18:01 +00:00
|
|
|
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
|
2019-08-16 18:39:35 +00:00
|
|
|
|
|
|
|
<Deterministic Condition="$(AssemblyVersion.EndsWith('*'))">False</Deterministic>
|
|
|
|
</PropertyGroup>
|
2019-08-21 18:18:01 +00:00
|
|
|
<!-- Set the AssemblyConfiguration attribute for projects -->
|
|
|
|
<ItemGroup Condition="'$(SonarrProject)'=='true'">
|
|
|
|
<AssemblyAttribute Include="System.Reflection.AssemblyConfigurationAttribute">
|
|
|
|
<_Parameter1>$(AssemblyConfiguration)</_Parameter1>
|
|
|
|
</AssemblyAttribute>
|
|
|
|
</ItemGroup>
|
2019-08-16 18:39:35 +00:00
|
|
|
|
|
|
|
<PropertyGroup>
|
|
|
|
<!-- We don't want separate framework directories till we go dotnet core -->
|
|
|
|
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
|
|
|
|
|
|
|
<!-- For now keep the NzbDrone namespace -->
|
|
|
|
<RootNamespace Condition="'$(SonarrProject)'=='true'">$(MSBuildProjectName.Replace('Sonarr','NzbDrone'))</RootNamespace>
|
|
|
|
</PropertyGroup>
|
|
|
|
</Project>
|