Skip to content

Commit ddc79ae

Browse files
committed
Return AddExplicitInterfaceImplementation capability from agent
1 parent ce90906 commit ddc79ae

File tree

2 files changed

+183
-170
lines changed

2 files changed

+183
-170
lines changed

src/BuiltInTools/HotReloadAgent/HotReloadAgent.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,13 @@ private void GetUpdaterMethodsAndCapabilities(out ApplyUpdateDelegate? applyUpda
9595
{
9696
Reporter.Report($"Error retrieving capabilities: {e.Message}", AgentMessageSeverity.Error);
9797
}
98+
99+
// .NET Framework runtime does not support adding MethodImpl entries, therefore the capability is not in the baseline capability set.
100+
// All other runtimes (.NET and Mono) support it and rather than servicing all of them we include the capability here.
101+
if (!string.IsNullOrEmpty(capabilities))
102+
{
103+
capabilities += " AddExplicitInterfaceImplementation";
104+
}
98105
}
99106

100107
public string Capabilities => _capabilities ?? string.Empty;

0 commit comments

Comments
 (0)