diff options
Diffstat (limited to 'src/MessagePack.Generator/PseudoCompilation.cs')
-rw-r--r-- | src/MessagePack.Generator/PseudoCompilation.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/MessagePack.Generator/PseudoCompilation.cs b/src/MessagePack.Generator/PseudoCompilation.cs index a8daeacb..80d5a1ed 100644 --- a/src/MessagePack.Generator/PseudoCompilation.cs +++ b/src/MessagePack.Generator/PseudoCompilation.cs @@ -91,7 +91,7 @@ namespace MessagePack.Generator .Distinct() .ToList(); - var dir = new FileInfo(typeof(object).Assembly.Location).Directory; + var dir = new FileInfo(typeof(object).Assembly.Location).Directory ?? throw new NullReferenceException("Assembly location directory not found!"); { var path = Path.Combine(dir.FullName, "netstandard.dll"); if (File.Exists(path)) |