Skip to content

Commit 20f4bc1

Browse files
committed
Remove CS1591 nowarn from concrete test projects as this is already defined in the Directory.Build.props that is in the test folder.
1 parent 1cc6846 commit 20f4bc1

File tree

4 files changed

+7
-48
lines changed

4 files changed

+7
-48
lines changed
Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,9 @@
11
<Project Sdk="Microsoft.NET.Sdk">
2-
32
<PropertyGroup>
43
<OutputType>Exe</OutputType>
54
<TargetFramework>net7.0</TargetFramework>
65
<ImplicitUsings>enable</ImplicitUsings>
76
<Nullable>enable</Nullable>
8-
<!--
9-
Even though we're not interested in producing XML docs for test projects, we have to enable this in order to have the .NET Compiler
10-
Platform analyzers produce the IDE0005 (Remove unnecessary import) diagnostic.
11-
12-
To avoid warnings for missing XML docs, we add CS1591 (Missing XML comment for publicly visible type or member) to the NoWarn property.
13-
We can stop producing XML docs for test projects (and remove the NoWarn for CS1591) once the following issue is fixed:
14-
https://github.com/dotnet/roslyn/issues/41640.
15-
-->
16-
<NoWarn>$(NoWarn);CS1591</NoWarn>
177
</PropertyGroup>
188

199
<ItemGroup>
@@ -27,5 +17,4 @@
2717
<ItemGroup>
2818
<EmbeddedResource Include="..\Data\*.txt" LinkBase="Data" />
2919
</ItemGroup>
30-
3120
</Project>

test/Renci.SshNet.IntegrationTests/Renci.SshNet.IntegrationTests.csproj

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,9 @@
33
<PropertyGroup>
44
<TargetFramework>net7.0</TargetFramework>
55
<ImplicitUsings>enable</ImplicitUsings>
6-
76
<IsPackable>false</IsPackable>
87
<IsTestProject>true</IsTestProject>
9-
<!--
10-
Even though we're not interested in producing XML docs for test projects, we have to enable this in order to have the .NET Compiler
11-
Platform analyzers produce the IDE0005 (Remove unnecessary import) diagnostic.
12-
13-
To avoid warnings for missing XML docs, we add CS1591 (Missing XML comment for publicly visible type or member) to the NoWarn property.
14-
15-
We can stop producing XML docs for test projects (and remove the NoWarn for CS1591) once the following issue is fixed:
16-
https://github.com/dotnet/roslyn/issues/41640.
17-
-->
18-
<NoWarn>$(NoWarn);CS1591;SYSLIB0021;SYSLIB1045;SYSLIB0014;IDE0220;IDE0010</NoWarn>
19-
8+
<NoWarn>$(NoWarn);SYSLIB0021;SYSLIB1045;SYSLIB0014;IDE0220;IDE0010</NoWarn>
209
</PropertyGroup>
2110

2211
<PropertyGroup Condition=" '$(TargetFramework)' == 'net7.0' ">
@@ -27,7 +16,6 @@
2716
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
2817
<PackageReference Include="MSTest.TestAdapter" Version="3.1.1" />
2918
<PackageReference Include="MSTest.TestFramework" Version="3.1.1" />
30-
3119
<PackageReference Include="Testcontainers" Version="3.4.0" />
3220
<PackageReference Include="System.Management" Version="4.7.0" />
3321
<!--
@@ -40,7 +28,6 @@
4028
To fix, we explicitly exclude the SSH.NET nuget package from this project's dependencies.
4129
-->
4230
<PackageReference Include="SSH.NET" Version="2020.0.2" ExcludeAssets="All" />
43-
4431
<PackageReference Include="coverlet.collector" Version="6.0.0">
4532
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
4633
<PrivateAssets>all</PrivateAssets>
@@ -51,6 +38,7 @@
5138
<ProjectReference Include="..\Renci.SshNet.TestTools.OpenSSH\Renci.SshNet.TestTools.OpenSSH.csproj" />
5239
<ProjectReference Include="..\..\src\Renci.SshNet\Renci.SshNet.csproj" />
5340
</ItemGroup>
41+
5442
<ItemGroup>
5543
<EmbeddedResource Include="resources\client\id_dsa" />
5644
<EmbeddedResource Include="resources\client\id_dsa.ppk" />

test/Renci.SshNet.TestTools.OpenSSH/Renci.SshNet.TestTools.OpenSSH.csproj

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,11 @@
33
<TargetFramework>net7.0</TargetFramework>
44
<ImplicitUsings>enable</ImplicitUsings>
55
<Nullable>enable</Nullable>
6-
7-
<!--
8-
Even though we're not interested in producing XML docs for test projects, we have to enable this in order to have the .NET Compiler
9-
Platform analyzers produce the IDE0005 (Remove unnecessary import) diagnostic.
10-
11-
To avoid warnings for missing XML docs, we add CS1591 (Missing XML comment for publicly visible type or member) to the NoWarn property.
12-
13-
We can stop producing XML docs for test projects (and remove the NoWarn for CS1591) once the following issue is fixed:
14-
https://github.com/dotnet/roslyn/issues/41640.
15-
-->
16-
<NoWarn>$(NoWarn);CS1591;SYSLIB0021;SYSLIB1045</NoWarn>
6+
<NoWarn>$(NoWarn);SYSLIB0021;SYSLIB1045</NoWarn>
177
</PropertyGroup>
188
<ItemGroup>
19-
<Folder Include="Properties\" />
9+
<Compile Remove="Properties\**" />
10+
<EmbeddedResource Remove="Properties\**" />
11+
<None Remove="Properties\**" />
2012
</ItemGroup>
2113
</Project>

test/Renci.SshNet.Tests/Renci.SshNet.Tests.csproj

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,6 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<TargetFrameworks>net462;net6.0;net7.0</TargetFrameworks>
4-
<!--
5-
Even though we're not interested in producing XML docs for test projects, we have to enable this in order to have the .NET Compiler
6-
Platform analyzers produce the IDE0005 (Remove unnecessary import) diagnostic.
7-
8-
To avoid warnings for missing XML docs, we add CS1591 (Missing XML comment for publicly visible type or member) to the NoWarn property.
9-
10-
We can stop producing XML docs for test projects (and remove the NoWarn for CS1591) once the following issue is fixed:
11-
https://github.com/dotnet/roslyn/issues/41640.
12-
-->
13-
<NoWarn>$(NoWarn);CS1591</NoWarn>
144
</PropertyGroup>
155

166
<ItemGroup>
@@ -32,13 +22,13 @@
3222
<MSTestV1UnitTestFrameworkAssembly Condition="'$(MSTestV1UnitTestFrameworkAssembly)' == '' and Exists('$(MSTestV1UnitTestFrameworkAssemblyCandidate)')">$(MSTestV1UnitTestFrameworkAssemblyCandidate)</MSTestV1UnitTestFrameworkAssembly>
3323
</PropertyGroup>
3424

35-
3625
<ItemGroup>
3726
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.7.2" />
3827
<PackageReference Include="MSTest.TestAdapter" Version="3.1.1" />
3928
<PackageReference Include="MSTest.TestFramework" Version="3.1.1" />
4029
<PackageReference Include="Moq" Version="4.18.4" />
4130
</ItemGroup>
31+
4232
<ItemGroup>
4333
<ProjectReference Include="..\..\src\Renci.SshNet\Renci.SshNet.csproj" />
4434
</ItemGroup>

0 commit comments

Comments
 (0)