mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Improving error message when a reference is not found
--HG-- branch : autoroute
This commit is contained in:
@@ -94,14 +94,14 @@ namespace Orchard.Environment.Extensions.Compilers {
|
|||||||
else {
|
else {
|
||||||
Logger.Error("Assembly reference '{0}' for project '{1}' cannot be loaded", assemblyReference.FullName, context.VirtualPath);
|
Logger.Error("Assembly reference '{0}' for project '{1}' cannot be loaded", assemblyReference.FullName, context.VirtualPath);
|
||||||
_criticalErrorProvider.RegisterErrorMessage(T(
|
_criticalErrorProvider.RegisterErrorMessage(T(
|
||||||
"The assembly reference '{0}' could not be loaded.\r\n\r\n" +
|
"The assembly reference '{0}' could not be loaded for module '{1}'.\r\n\r\n" +
|
||||||
"There are generally a few ways to solve this issue:\r\n" +
|
"There are generally a few ways to solve this issue:\r\n" +
|
||||||
"1. Install any dependent module.\r\n" +
|
"1. Install any dependent module.\r\n" +
|
||||||
"2. Remove the assembly reference from the project file if it's not needed.\r\n" +
|
"2. Remove the assembly reference from the project file if it's not needed.\r\n" +
|
||||||
"3. Ensure the assembly reference is present in the 'bin' directory of the module.\r\n" +
|
"3. Ensure the assembly reference is present in the 'bin' directory of the module.\r\n" +
|
||||||
"4. Ensure the assembly reference is present in the 'bin' directory of the application.\r\n" +
|
"4. Ensure the assembly reference is present in the 'bin' directory of the application.\r\n" +
|
||||||
"5. Specify the strong name of the assembly (name, version, culture, publickey) if the assembly is present in the GAC.",
|
"5. Specify the strong name of the assembly (name, version, culture, publickey) if the assembly is present in the GAC.",
|
||||||
assemblyReference.FullName));
|
assemblyReference.FullName, moduleName));
|
||||||
throw new OrchardCoreException(T("Assembly reference '{0}' for project '{1}' cannot be loaded", assemblyReference.FullName, context.VirtualPath));
|
throw new OrchardCoreException(T("Assembly reference '{0}' for project '{1}' cannot be loaded", assemblyReference.FullName, context.VirtualPath));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user