Skip to content

Commit 049a61f

Browse files
committed
Clean-up deprWarning
1 parent b4710fc commit 049a61f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/runtime/assemblymanager.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -322,10 +322,10 @@ public static bool LoadImplicit(string name, bool warn = true)
322322
// Deprecation warning
323323
if (warn && loaded)
324324
{
325-
string deprWarning = string.Format(
326-
"\nThe module was found, but not in a referenced namespace.\n" +
327-
"Implicit loading is deprecated. Please use clr.AddReference(\"{0}\").",
328-
Path.GetFileNameWithoutExtension(lastAssembly.Location));
325+
string location = Path.GetFileNameWithoutExtension(lastAssembly.Location);
326+
string deprWarning = $@"
327+
The module was found, but not in a referenced namespace.
328+
Implicit loading is deprecated. Please use clr.AddReference(""{location}"").";
329329
Exceptions.deprecation(deprWarning);
330330
}
331331

0 commit comments

Comments
 (0)