|
|
|
@ -23,6 +23,10 @@
|
|
|
|
|
<ReadarrProject Condition="$(MSBuildProjectName.StartsWith('Readarr'))">true</ReadarrProject>
|
|
|
|
|
<ReadarrProject Condition="$(MSBuildProjectName.StartsWith('ServiceInstall'))">true</ReadarrProject>
|
|
|
|
|
<ReadarrProject Condition="$(MSBuildProjectName.StartsWith('ServiceUninstall'))">true</ReadarrProject>
|
|
|
|
|
|
|
|
|
|
<!-- A test project gets the test sdk packages automatically added -->
|
|
|
|
|
<TestProject>false</TestProject>
|
|
|
|
|
<TestProject Condition="$(MSBuildProjectName.EndsWith('.Test'))">true</TestProject>
|
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
|
|
<PropertyGroup>
|
|
|
|
@ -82,6 +86,15 @@
|
|
|
|
|
<RootNamespace Condition="'$(ReadarrProject)'=='true'">$(MSBuildProjectName.Replace('Readarr','NzbDrone'))</RootNamespace>
|
|
|
|
|
</PropertyGroup>
|
|
|
|
|
|
|
|
|
|
<!-- Standard testing packages -->
|
|
|
|
|
<ItemGroup Condition="'$(TestProject)'=='true'">
|
|
|
|
|
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.8.3" />
|
|
|
|
|
<PackageReference Include="NUnit" Version="3.13.1" />
|
|
|
|
|
<PackageReference Include="NUnit3TestAdapter" Version="3.17.0" />
|
|
|
|
|
<PackageReference Include="NunitXml.TestLogger" Version="2.1.62" />
|
|
|
|
|
<PackageReference Include="coverlet.collector" Version="1.2.1" PrivateAssets="all" />
|
|
|
|
|
</ItemGroup>
|
|
|
|
|
|
|
|
|
|
<!-- Set up stylecop -->
|
|
|
|
|
<ItemGroup Condition="'$(ReadarrProject)'=='true' and '$(EnableAnalyzers)'!='false'">
|
|
|
|
|
<!-- StyleCop analysis -->
|
|
|
|
|