diff --git a/src/Build/BackEnd/TaskExecutionHost/TaskExecutionHost.cs b/src/Build/BackEnd/TaskExecutionHost/TaskExecutionHost.cs
index 2a98b2fdf32..9a329a707b5 100644
--- a/src/Build/BackEnd/TaskExecutionHost/TaskExecutionHost.cs
+++ b/src/Build/BackEnd/TaskExecutionHost/TaskExecutionHost.cs
@@ -1098,13 +1098,30 @@ out parameterSet
else
{
// flag an error if we find a parameter that has no .NET property equivalent
- _taskLoggingContext.LogError
- (
- new BuildEventFileInfo(parameterLocation),
- "UnexpectedTaskAttribute",
- parameterName,
- _taskName
- );
+ if (_taskFactoryWrapper.TaskFactoryLoadedType.LoadedAssembly is null)
+ {
+ _taskLoggingContext.LogError
+ (
+ new BuildEventFileInfo( parameterLocation ),
+ "UnexpectedTaskAttribute",
+ parameterName,
+ _taskName,
+ _taskFactoryWrapper.TaskFactoryLoadedType.Type.Assembly.FullName,
+ _taskFactoryWrapper.TaskFactoryLoadedType.Type.Assembly.Location
+ );
+ }
+ else
+ {
+ _taskLoggingContext.LogError
+ (
+ new BuildEventFileInfo( parameterLocation ),
+ "UnexpectedTaskAttribute",
+ parameterName,
+ _taskName,
+ _taskFactoryWrapper.TaskFactoryLoadedType.LoadedAssembly.FullName,
+ _taskFactoryWrapper.TaskFactoryLoadedType.LoadedAssembly.Location
+ );
+ }
}
}
catch (AmbiguousMatchException)
diff --git a/src/Build/Resources/Strings.resx b/src/Build/Resources/Strings.resx
index d05465726d2..5b737e6d5f0 100644
--- a/src/Build/Resources/Strings.resx
+++ b/src/Build/Resources/Strings.resx
@@ -1225,7 +1225,7 @@
{StrBegin="MSB4091: "}
- MSB4064: The "{0}" parameter is not supported by the "{1}" task. Verify the parameter exists on the task, and it is a settable public instance property.
+ MSB4064: The "{0}" parameter is not supported by the "{1}" task loaded from assembly: {2} from the path: {3}. Verify that the parameter exists on the task, the <UsingTask> points to the correct assembly, and it is a settable public instance property.{StrBegin="MSB4064: "}
diff --git a/src/Build/Resources/xlf/Strings.cs.xlf b/src/Build/Resources/xlf/Strings.cs.xlf
index 06e56e7d178..157443afc16 100644
--- a/src/Build/Resources/xlf/Strings.cs.xlf
+++ b/src/Build/Resources/xlf/Strings.cs.xlf
@@ -1670,8 +1670,8 @@
{StrBegin="MSB4091: "}
-
- MSB4064: Parametr {0} není podporován úlohou {1}. Zkontrolujte, zda parametr úlohy existuje a zda se jedná o nastavitelnou vlastnost veřejné instance.
+
+ MSB4064: The "{0}" parameter is not supported by the "{1}" task loaded from assembly: {2} from the path: {3}. Verify that the parameter exists on the task, the <UsingTask> points to the correct assembly, and it is a settable public instance property.{StrBegin="MSB4064: "}
diff --git a/src/Build/Resources/xlf/Strings.de.xlf b/src/Build/Resources/xlf/Strings.de.xlf
index 31d339fbdfe..895d6839645 100644
--- a/src/Build/Resources/xlf/Strings.de.xlf
+++ b/src/Build/Resources/xlf/Strings.de.xlf
@@ -1670,8 +1670,8 @@
{StrBegin="MSB4091: "}
-
- MSB4064: Der "{0}"-Parameter wird von der "{1}"-Aufgabe nicht unterstützt. Vergewissern Sie sich, dass der Parameter in der Aufgabe vorhanden ist und es sich um eine festlegbare öffentliche Instanzeigenschaft handelt.
+
+ MSB4064: The "{0}" parameter is not supported by the "{1}" task loaded from assembly: {2} from the path: {3}. Verify that the parameter exists on the task, the <UsingTask> points to the correct assembly, and it is a settable public instance property.{StrBegin="MSB4064: "}
diff --git a/src/Build/Resources/xlf/Strings.en.xlf b/src/Build/Resources/xlf/Strings.en.xlf
index 8e2bde072ed..444ca3a5542 100644
--- a/src/Build/Resources/xlf/Strings.en.xlf
+++ b/src/Build/Resources/xlf/Strings.en.xlf
@@ -1715,8 +1715,8 @@
{StrBegin="MSB4091: "}
-
- MSB4064: The "{0}" parameter is not supported by the "{1}" task. Verify the parameter exists on the task, and it is a settable public instance property.
+
+ MSB4064: The "{0}" parameter is not supported by the "{1}" task loaded from assembly: {2} from the path: {3}. Verify that the parameter exists on the task, the <UsingTask> points to the correct assembly, and it is a settable public instance property.{StrBegin="MSB4064: "}
diff --git a/src/Build/Resources/xlf/Strings.es.xlf b/src/Build/Resources/xlf/Strings.es.xlf
index 370575d719c..36a2729aa8b 100644
--- a/src/Build/Resources/xlf/Strings.es.xlf
+++ b/src/Build/Resources/xlf/Strings.es.xlf
@@ -1670,8 +1670,8 @@
{StrBegin="MSB4091: "}
-
- MSB4064: El parámetro "{0}" no es compatible con la tarea "{1}". Compruebe que el parámetro existe en la tarea y que es una propiedad de instancia Public que se puede establecer.
+
+ MSB4064: The "{0}" parameter is not supported by the "{1}" task loaded from assembly: {2} from the path: {3}. Verify that the parameter exists on the task, the <UsingTask> points to the correct assembly, and it is a settable public instance property.{StrBegin="MSB4064: "}
diff --git a/src/Build/Resources/xlf/Strings.fr.xlf b/src/Build/Resources/xlf/Strings.fr.xlf
index f31ff7d8648..26c0b149b57 100644
--- a/src/Build/Resources/xlf/Strings.fr.xlf
+++ b/src/Build/Resources/xlf/Strings.fr.xlf
@@ -1670,8 +1670,8 @@
{StrBegin="MSB4091: "}
-
- MSB4064: Le paramètre "{0}" n'est pas pris en charge par la tâche "{1}". Vérifiez que le paramètre existe pour la tâche et qu'il représente une propriété d'instance publique définissable.
+
+ MSB4064: The "{0}" parameter is not supported by the "{1}" task loaded from assembly: {2} from the path: {3}. Verify that the parameter exists on the task, the <UsingTask> points to the correct assembly, and it is a settable public instance property.{StrBegin="MSB4064: "}
diff --git a/src/Build/Resources/xlf/Strings.it.xlf b/src/Build/Resources/xlf/Strings.it.xlf
index b473c7d078b..86a00974a5f 100644
--- a/src/Build/Resources/xlf/Strings.it.xlf
+++ b/src/Build/Resources/xlf/Strings.it.xlf
@@ -1670,8 +1670,8 @@
{StrBegin="MSB4091: "}
-
- MSB4064: il parametro "{0}" non è supportato dall'attività "{1}". Verificare che il parametro sia presente per l'attività e che si tratti di un'istanza pubblica e impostabile della proprietà.
+
+ MSB4064: The "{0}" parameter is not supported by the "{1}" task loaded from assembly: {2} from the path: {3}. Verify that the parameter exists on the task, the <UsingTask> points to the correct assembly, and it is a settable public instance property.{StrBegin="MSB4064: "}
diff --git a/src/Build/Resources/xlf/Strings.ja.xlf b/src/Build/Resources/xlf/Strings.ja.xlf
index ffae30d2c77..27c3d3f6130 100644
--- a/src/Build/Resources/xlf/Strings.ja.xlf
+++ b/src/Build/Resources/xlf/Strings.ja.xlf
@@ -1670,8 +1670,8 @@
{StrBegin="MSB4091: "}
-
- MSB4064: "{0}" パラメーターは "{1}" タスクではサポートされていません。タスク上にパラメーターが存在し、設定可能なパブリック インスタンス プロパティであることを確認してください。
+
+ MSB4064: The "{0}" parameter is not supported by the "{1}" task loaded from assembly: {2} from the path: {3}. Verify that the parameter exists on the task, the <UsingTask> points to the correct assembly, and it is a settable public instance property.{StrBegin="MSB4064: "}
diff --git a/src/Build/Resources/xlf/Strings.ko.xlf b/src/Build/Resources/xlf/Strings.ko.xlf
index 2ae79b0fc10..367cf54895e 100644
--- a/src/Build/Resources/xlf/Strings.ko.xlf
+++ b/src/Build/Resources/xlf/Strings.ko.xlf
@@ -1670,8 +1670,8 @@
{StrBegin="MSB4091: "}
-
- MSB4064: "{1}" 작업에서 "{0}" 매개 변수를 지원하지 않습니다. 해당 매개 변수가 작업에 있는지 그리고 설정 가능한 public 인스턴스 속성인지 확인하세요.
+
+ MSB4064: The "{0}" parameter is not supported by the "{1}" task loaded from assembly: {2} from the path: {3}. Verify that the parameter exists on the task, the <UsingTask> points to the correct assembly, and it is a settable public instance property.{StrBegin="MSB4064: "}
diff --git a/src/Build/Resources/xlf/Strings.pl.xlf b/src/Build/Resources/xlf/Strings.pl.xlf
index 3658751180c..b13eb7e424f 100644
--- a/src/Build/Resources/xlf/Strings.pl.xlf
+++ b/src/Build/Resources/xlf/Strings.pl.xlf
@@ -1670,8 +1670,8 @@
{StrBegin="MSB4091: "}
-
- MSB4064: Parametr „{0}” nie jest obsługiwany przez zadanie „{1}”. Sprawdź, czy parametr istnieje w zadaniu i czy jest właściwością wystąpienia publicznego, którą można ustawić.
+
+ MSB4064: The "{0}" parameter is not supported by the "{1}" task loaded from assembly: {2} from the path: {3}. Verify that the parameter exists on the task, the <UsingTask> points to the correct assembly, and it is a settable public instance property.{StrBegin="MSB4064: "}
diff --git a/src/Build/Resources/xlf/Strings.pt-BR.xlf b/src/Build/Resources/xlf/Strings.pt-BR.xlf
index d3e21242ac4..188df5f9cf3 100644
--- a/src/Build/Resources/xlf/Strings.pt-BR.xlf
+++ b/src/Build/Resources/xlf/Strings.pt-BR.xlf
@@ -1670,8 +1670,8 @@
{StrBegin="MSB4091: "}
-
- MSB4064: O parâmetro "{0}" não tem suporte na tarefa "{1}". Verifique se o parâmetro existe na tarefa e se ele é uma propriedade de instância pública que pode ser definida.
+
+ MSB4064: The "{0}" parameter is not supported by the "{1}" task loaded from assembly: {2} from the path: {3}. Verify that the parameter exists on the task, the <UsingTask> points to the correct assembly, and it is a settable public instance property.{StrBegin="MSB4064: "}
diff --git a/src/Build/Resources/xlf/Strings.ru.xlf b/src/Build/Resources/xlf/Strings.ru.xlf
index 1175fd129da..508d9a08b28 100644
--- a/src/Build/Resources/xlf/Strings.ru.xlf
+++ b/src/Build/Resources/xlf/Strings.ru.xlf
@@ -1670,8 +1670,8 @@
{StrBegin="MSB4091: "}
-
- MSB4064: параметр "{0}" не поддерживается задачей "{1}". Убедитесь, что параметр существует в задаче и является открытым задаваемым свойством экземпляра.
+
+ MSB4064: The "{0}" parameter is not supported by the "{1}" task loaded from assembly: {2} from the path: {3}. Verify that the parameter exists on the task, the <UsingTask> points to the correct assembly, and it is a settable public instance property.{StrBegin="MSB4064: "}
diff --git a/src/Build/Resources/xlf/Strings.tr.xlf b/src/Build/Resources/xlf/Strings.tr.xlf
index a052cb83ee2..9bcd9bde59b 100644
--- a/src/Build/Resources/xlf/Strings.tr.xlf
+++ b/src/Build/Resources/xlf/Strings.tr.xlf
@@ -1670,8 +1670,8 @@
{StrBegin="MSB4091: "}
-
- MSB4064: "{0}" parametresi "{1}" görevi tarafından desteklenmiyor. Parametrenin görevde bulunduğunu ve ayarlanabilir bir genel örnek özelliği olduğunu doğrulayın.
+
+ MSB4064: The "{0}" parameter is not supported by the "{1}" task loaded from assembly: {2} from the path: {3}. Verify that the parameter exists on the task, the <UsingTask> points to the correct assembly, and it is a settable public instance property.{StrBegin="MSB4064: "}
diff --git a/src/Build/Resources/xlf/Strings.zh-Hans.xlf b/src/Build/Resources/xlf/Strings.zh-Hans.xlf
index b9d2afdacd3..942ffe8d692 100644
--- a/src/Build/Resources/xlf/Strings.zh-Hans.xlf
+++ b/src/Build/Resources/xlf/Strings.zh-Hans.xlf
@@ -1670,8 +1670,8 @@
{StrBegin="MSB4091: "}
-
- MSB4064: “{1}”任务不支持“{0}”参数。请确认该参数存在于此任务中,并且是可设置的公共实例属性。
+
+ MSB4064: The "{0}" parameter is not supported by the "{1}" task loaded from assembly: {2} from the path: {3}. Verify that the parameter exists on the task, the <UsingTask> points to the correct assembly, and it is a settable public instance property.{StrBegin="MSB4064: "}
diff --git a/src/Build/Resources/xlf/Strings.zh-Hant.xlf b/src/Build/Resources/xlf/Strings.zh-Hant.xlf
index 0ed0fb9d4a0..eadd2f2e6cc 100644
--- a/src/Build/Resources/xlf/Strings.zh-Hant.xlf
+++ b/src/Build/Resources/xlf/Strings.zh-Hant.xlf
@@ -1670,8 +1670,8 @@
{StrBegin="MSB4091: "}
-
- MSB4064: "{1}" 工作不支援 "{0}" 參數。請驗證參數位於工作上,且為可設定的公用執行個體屬性。
+
+ MSB4064: The "{0}" parameter is not supported by the "{1}" task loaded from assembly: {2} from the path: {3}. Verify that the parameter exists on the task, the <UsingTask> points to the correct assembly, and it is a settable public instance property.{StrBegin="MSB4064: "}