We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91bee2e commit 4a64dfaCopy full SHA for 4a64dfa
1 file changed
shared/Hosting/ExtensionRegistrationUtility.cs
@@ -18,11 +18,9 @@ public static TExtensionInterface GetExtensionImplementation<TExtensionInterface
18
Type? implementationType = assembly.GetLoadableTypes().FirstOrDefault(contractType.IsAssignableFrom);
19
if (implementationType == null)
20
{
21
-#pragma warning disable IL3000 // Avoid accessing Assembly file path when publishing as a single file
22
throw new InvalidOperationException($@"{kind} does not contain an entrypoint. Please add an implementation for '{contractType}'.
23
{assembly}
24
-{assembly.Location}");
25
-#pragma warning restore IL3000 // Avoid accessing Assembly file path when publishing as a single file
+{filePath}");
26
}
27
28
TExtensionInterface instance = (TExtensionInterface)Activator.CreateInstance(implementationType)!;
0 commit comments