Skip to content

Commit

Permalink
Merge pull request #37 from ByronMayne/35-compiler-error-when-using-e…
Browse files Browse the repository at this point in the history
…nforceextendedanalyzerrules-due-to-console-ussage

Fixed the compiler error due to using the console api
  • Loading branch information
ByronMayne authored Dec 23, 2024
2 parents 322c3ef + 167393f commit 3ee3678
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,9 @@ private static void AddAssembly(Assembly assembly)
foreach (string resource in resources)
{
#pragma warning disable RS1035 // Do not use APIs banned for analyzers
System.Console.WriteLine($"Extracting {resource} assembly from {assemblyName.Name}'s resources.");
#pragma warning restore RS1035 // Do not use APIs banned for analyzers
if (TryExtractingAssembly(assembly, resource, out Assembly? loadedAssembly))
{
AddAssembly(loadedAssembly!);
Expand Down

0 comments on commit 3ee3678

Please sign in to comment.