2019-08-16 20:39:35 +02:00
|
|
|
<Project>
|
|
|
|
<!-- Common to all Sonarr Projects -->
|
|
|
|
<PropertyGroup>
|
|
|
|
<SonarrRootDir>$(MSBuildThisFileDirectory)..\</SonarrRootDir>
|
2021-11-03 23:27:31 +02:00
|
|
|
|
|
|
|
<!-- Whether we want TargetFramework switching in Visual Studio -->
|
|
|
|
<TargetMultiple>false</TargetMultiple>
|
2019-08-16 20:39:35 +02:00
|
|
|
|
|
|
|
<!-- 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>
|
|
|
|
|
2021-11-03 23:27:31 +02:00
|
|
|
<!-- Pick default RuntimeIdentifier for our compilation environment -->
|
|
|
|
<PropertyGroup Condition=" '$(TargetMultiple)'!='true' ">
|
|
|
|
<RuntimeIdentifiers></RuntimeIdentifiers>
|
|
|
|
<RuntimeIdentifier>win-x86</RuntimeIdentifier>
|
|
|
|
<TargetFrameworks></TargetFrameworks>
|
|
|
|
<TargetFramework>net462</TargetFramework>
|
|
|
|
</PropertyGroup>
|
|
|
|
|
2019-08-16 20:39:35 +02:00
|
|
|
<PropertyGroup>
|
2019-08-24 12:17:28 +02:00
|
|
|
<Configuration Condition="'$(Configuration)'==''">Release</Configuration>
|
2021-11-03 23:27:31 +02:00
|
|
|
|
|
|
|
<TargetFrameworkPath>$(TargetFramework)\</TargetFrameworkPath>
|
|
|
|
<TargetFrameworkPath Condition="'$(Platform)'!='x64'">$(TargetFrameworkPath)$(Platform)\</TargetFrameworkPath>
|
|
|
|
<TargetFrameworkPath>$(TargetFrameworkPath)$(Configuration)\</TargetFrameworkPath>
|
|
|
|
|
2019-08-16 20:39:35 +02:00
|
|
|
<!-- Centralize intermediate and default outputs -->
|
2019-08-24 12:17:28 +02:00
|
|
|
<BaseIntermediateOutputPath>$(SonarrRootDir)_temp\obj\$(MSBuildProjectName)\</BaseIntermediateOutputPath>
|
2021-11-03 23:27:31 +02:00
|
|
|
<IntermediateOutputPath>$(SonarrRootDir)_temp\obj\$(MSBuildProjectName)\$(TargetFrameworkPath)</IntermediateOutputPath>
|
|
|
|
<OutputPath>$(SonarrRootDir)_temp\bin\$(TargetFrameworkPath)$(MSBuildProjectName)\</OutputPath>
|
2019-08-16 20:39:35 +02:00
|
|
|
|
2021-11-03 23:27:31 +02:00
|
|
|
<!-- Flatten the 'real' output paths for backward compat -->
|
|
|
|
<OutputTargetFrameworkPath>$(TargetFrameworkPath)</OutputTargetFrameworkPath>
|
|
|
|
<OutputTargetFrameworkPath Condition=" '$(TargetMultiple)'!='true' "></OutputTargetFrameworkPath>
|
|
|
|
|
2019-08-16 20:39:35 +02:00
|
|
|
<!-- Output to _output and _tests respectively -->
|
2021-11-03 23:27:31 +02:00
|
|
|
<OutputPath Condition="'$(SonarrProject)'=='true'">$(SonarrRootDir)_output\$(OutputTargetFrameworkPath)</OutputPath>
|
|
|
|
<OutputPath Condition="'$(SonarrOutputType)'=='Test'">$(SonarrRootDir)_tests\$(OutputTargetFrameworkPath)</OutputPath>
|
|
|
|
<OutputPath Condition="'$(SonarrOutputType)'=='Update'">$(OutputPath)Sonarr.Update\</OutputPath>
|
2019-08-16 20:39:35 +02:00
|
|
|
|
|
|
|
<!-- Paths relative to project file for better readability -->
|
2019-08-24 12:17:28 +02:00
|
|
|
<BaseIntermediateOutputPath>$([MSBuild]::MakeRelative('$(MSBuildProjectDirectory)', '$(BaseIntermediateOutputPath)'))</BaseIntermediateOutputPath>
|
2019-08-16 20:39:35 +02: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 20:18:01 +02:00
|
|
|
<Copyright>Copyright 2010-$([System.DateTime]::Now.ToString('yyyy')) sonarr.tv (GNU General Public v3)</Copyright>
|
2019-08-16 20:39:35 +02:00
|
|
|
|
|
|
|
<!-- Should be replaced by CI -->
|
|
|
|
<AssemblyVersion>10.0.0.*</AssemblyVersion>
|
2019-08-21 20:18:01 +02:00
|
|
|
<AssemblyConfiguration>$(Configuration)-dev</AssemblyConfiguration>
|
2019-08-16 20:39:35 +02:00
|
|
|
|
|
|
|
<GenerateAssemblyFileVersionAttribute>false</GenerateAssemblyFileVersionAttribute>
|
|
|
|
<GenerateAssemblyInformationalVersionAttribute>false</GenerateAssemblyInformationalVersionAttribute>
|
2019-08-21 20:18:01 +02:00
|
|
|
<GenerateAssemblyConfigurationAttribute>false</GenerateAssemblyConfigurationAttribute>
|
2019-08-16 20:39:35 +02:00
|
|
|
|
|
|
|
<Deterministic Condition="$(AssemblyVersion.EndsWith('*'))">False</Deterministic>
|
|
|
|
</PropertyGroup>
|
2019-08-21 20:18:01 +02:00
|
|
|
<!-- Set the AssemblyConfiguration attribute for projects -->
|
|
|
|
<ItemGroup Condition="'$(SonarrProject)'=='true'">
|
|
|
|
<AssemblyAttribute Include="System.Reflection.AssemblyConfigurationAttribute">
|
|
|
|
<_Parameter1>$(AssemblyConfiguration)</_Parameter1>
|
|
|
|
</AssemblyAttribute>
|
|
|
|
</ItemGroup>
|
2019-08-16 20:39:35 +02:00
|
|
|
|
|
|
|
<PropertyGroup>
|
|
|
|
<!-- We don't want separate framework directories till we go dotnet core -->
|
|
|
|
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
|
2021-11-03 23:27:31 +02:00
|
|
|
<AppendRuntimeIdentifierToOutputPath>false</AppendRuntimeIdentifierToOutputPath>
|
2019-08-16 20:39:35 +02:00
|
|
|
|
|
|
|
<!-- For now keep the NzbDrone namespace -->
|
|
|
|
<RootNamespace Condition="'$(SonarrProject)'=='true'">$(MSBuildProjectName.Replace('Sonarr','NzbDrone'))</RootNamespace>
|
|
|
|
</PropertyGroup>
|
|
|
|
</Project>
|