The Free Software Media System - Server Backend & API
Enable NetAnalyzers for more projects
Bond_00995327b842e9e
diff --git a/Emby.Drawing/NullImageEncoder.cs b/Emby.Drawing/NullImageEncoder.csindex 2a1cfd3da5..1c05aa9161 100644--- a/Emby.Drawing/NullImageEncoder.cs+++ b/Emby.Drawing/NullImageEncoder.cs@@ -32,7 +32,7 @@ namespace Emby.Drawing=> throw new NotImplementedException();/// <inheritdoc />- public string EncodeImage(string inputPath, DateTime dateModified, string outputPath, bool autoOrient, ImageOrientation? orientation, int quality, ImageProcessingOptions options, ImageFormat selectedOutputFormat)+ public string EncodeImage(string inputPath, DateTime dateModified, string outputPath, bool autoOrient, ImageOrientation? orientation, int quality, ImageProcessingOptions options, ImageFormat outputFormat){throw new NotImplementedException();}diff --git a/Emby.Notifications/Emby.Notifications.csproj b/Emby.Notifications/Emby.Notifications.csprojindex 526a27229f..5a2aea6423 100644--- a/Emby.Notifications/Emby.Notifications.csproj+++ b/Emby.Notifications/Emby.Notifications.csproj@@ -11,6 +11,8 @@<GenerateDocumentationFile>true</GenerateDocumentationFile><TreatWarningsAsErrors>true</TreatWarningsAsErrors><Nullable>enable</Nullable>+ <AnalysisMode>AllEnabledByDefault</AnalysisMode>+ <CodeAnalysisRuleSet>../jellyfin.ruleset</CodeAnalysisRuleSet></PropertyGroup><ItemGroup>@@ -30,8 +32,4 @@<PackageReference Include="SmartAnalyzers.MultithreadingAnalyzer" Version="1.1.31" PrivateAssets="All" /></ItemGroup>- <PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">- <CodeAnalysisRuleSet>../jellyfin.ruleset</CodeAnalysisRuleSet>- </PropertyGroup>-</Project>diff --git a/Emby.Photos/Emby.Photos.csproj b/Emby.Photos/Emby.Photos.csprojindex e64a658c51..2b66181599 100644--- a/Emby.Photos/Emby.Photos.csproj+++ b/Emby.Photos/Emby.Photos.csproj@@ -24,6 +24,8 @@<GenerateDocumentationFile>true</GenerateDocumentationFile><TreatWarningsAsErrors>true</TreatWarningsAsErrors><Nullable>enable</Nullable>+ <AnalysisMode>AllEnabledByDefault</AnalysisMode>+ <CodeAnalysisRuleSet>../jellyfin.ruleset</CodeAnalysisRuleSet></PropertyGroup><!-- Code Analyzers-->@@ -33,8 +35,4 @@<PackageReference Include="SmartAnalyzers.MultithreadingAnalyzer" Version="1.1.31" PrivateAssets="All" /></ItemGroup>- <PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">- <CodeAnalysisRuleSet>../jellyfin.ruleset</CodeAnalysisRuleSet>- </PropertyGroup>-</Project>diff --git a/Emby.Server.Implementations/Emby.Server.Implementations.csproj b/Emby.Server.Implementations/Emby.Server.Implementations.csprojindex be552ef93a..9248053f54 100644--- a/Emby.Server.Implementations/Emby.Server.Implementations.csproj+++ b/Emby.Server.Implementations/Emby.Server.Implementations.csproj@@ -46,6 +46,8 @@<TreatWarningsAsErrors Condition=" '$(Configuration)' == 'Release'">true</TreatWarningsAsErrors><!-- https://github.com/microsoft/ApplicationInsights-dotnet/issues/2047 --><NoWarn>AD0001</NoWarn>+ <AnalysisMode Condition=" '$(Configuration)' == 'Debug' ">AllEnabledByDefault</AnalysisMode>+ <CodeAnalysisRuleSet>../jellyfin.ruleset</CodeAnalysisRuleSet></PropertyGroup><!-- Code Analyzers-->@@ -55,10 +57,6 @@<PackageReference Include="SmartAnalyzers.MultithreadingAnalyzer" Version="1.1.31" PrivateAssets="All" /></ItemGroup>- <PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">- <CodeAnalysisRuleSet>../jellyfin.ruleset</CodeAnalysisRuleSet>- </PropertyGroup>-<ItemGroup><EmbeddedResource Include="Localization\iso6392.txt" /><EmbeddedResource Include="Localization\countries.json" />