mirror of
https://github.com/sshnet/SSH.NET.git
synced 2026-09-10 17:25:51 +00:00
f512a41a1b
.NET 9 Preview 6 now also scans transitive dependencies, which causes a build failure in the test projects: warning NU1902: Package 'BouncyCastle.Cryptography' 2.2.1 has a known moderate severity vulnerability, https://github.com/advisories/GHSA-8xfc-gm6g-vgpv Don't treat these as errors and update Testcontainers to fix the warning.
54 lines
1.8 KiB
XML
54 lines
1.8 KiB
XML
<Project>
|
|
<Import Project="$(MSBuildThisFileFullPath).user" Condition="Exists('$(MSBuildThisFileFullPath).user')" />
|
|
|
|
<!--
|
|
Assembly Info properties that apply to all projects/assemblies.
|
|
-->
|
|
<PropertyGroup>
|
|
<IsPackable>false</IsPackable>
|
|
<SignAssembly>true</SignAssembly>
|
|
<AssemblyOriginatorKeyFile>$(MSBuildThisFileDirectory)Renci.SshNet.snk</AssemblyOriginatorKeyFile>
|
|
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
|
<LangVersion>latest</LangVersion>
|
|
<WarningLevel>9999</WarningLevel>
|
|
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
|
|
</PropertyGroup>
|
|
|
|
<!--
|
|
Code analysis properties.
|
|
-->
|
|
<PropertyGroup>
|
|
<EnableNETAnalyzers>true</EnableNETAnalyzers>
|
|
<AnalysisLevel>preview-All</AnalysisLevel>
|
|
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
|
|
</PropertyGroup>
|
|
|
|
<!-- don't treat NuGet Audit warnings as errors -->
|
|
<PropertyGroup>
|
|
<WarningsNotAsErrors>NU1901;NU1902;NU1903;NU1904</WarningsNotAsErrors>
|
|
</PropertyGroup>
|
|
|
|
<!--
|
|
Disable nullable warnings on old frameworks because of missing annotations.
|
|
-->
|
|
<PropertyGroup Condition=" !$([MSBuild]::IsTargetFrameworkCompatible('$(TargetFramework)', 'net6.0')) ">
|
|
<NoWarn>$(NoWarn);CS8602</NoWarn>
|
|
</PropertyGroup>
|
|
|
|
<!--
|
|
Add the stylecop config to each project.
|
|
-->
|
|
<ItemGroup>
|
|
<AdditionalFiles Include="..\..\stylecop.json" Link="stylecop.json" Visible="false" />
|
|
</ItemGroup>
|
|
|
|
<!--
|
|
Use fixed version of analyzers.
|
|
-->
|
|
<ItemGroup>
|
|
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.556" PrivateAssets="all" />
|
|
<PackageReference Include="Meziantou.Analyzer" Version="2.0.141" PrivateAssets="all" />
|
|
<PackageReference Include="SonarAnalyzer.CSharp" Version="9.19.0.84025" PrivateAssets="all" />
|
|
</ItemGroup>
|
|
</Project>
|