mirror of
https://github.com/sshnet/SSH.NET.git
synced 2026-09-10 09:15:47 +00:00
71423c17f9
* Add an AOT compatibility test app
Following the guides at
https://learn.microsoft.com/en-us/dotnet/core/deploying/trimming/prepare-libraries-for-trimming?pivots=dotnet-8-0
and https://devblogs.microsoft.com/dotnet/creating-aot-compatible-libraries/,
add an application which is published for AOT in CI.
This process fully verifies all code-paths in the library and its dependencies
for trimming/AOT, which the analyzers are not themselves able to do.
(As a side benefit, now we are also checking the library builds in Release)
* Test failure scenario
* Revert "Test failure scenario"
This reverts commit 6ff943b502.
42 lines
1.4 KiB
XML
42 lines
1.4 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>
|
|
|
|
<!--
|
|
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>
|