Skip to content

Commit

Permalink
Add auto-generated to EmbeddedResource.cs
Browse files Browse the repository at this point in the history
This update should improve the behavior of this file when referenced as source in `ThisAssembly.Resources`, such that it does not fail any analyzer or style changes.
  • Loading branch information
viceroypenguin authored and kzu committed Jan 30, 2024
1 parent 920c671 commit f38e889
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/EmbeddedResource.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
using System;
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

using System;
using System.IO;
using System.Linq;
using System.Reflection;
Expand Down Expand Up @@ -44,4 +53,4 @@ public static Stream GetStream(string relativePath)
Assembly.GetExecutingAssembly().GetManifestResourceStream(manifestResourceName) ??
throw new InvalidOperationException($"Did not find required resource '{manifestResourceName}' in assembly '{baseName}'.");
}
}
}

0 comments on commit f38e889

Please sign in to comment.