Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/aspnet/MessagePack-CSharp.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/MessagePack.Generator/PseudoCompilation.cs')
-rw-r--r--src/MessagePack.Generator/PseudoCompilation.cs2
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))