Notatka
Dostęp do tej strony wymaga autoryzacji. Może spróbować zalogować się lub zmienić katalogi.
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować zmienić katalogi.
W tym artykule opisano kod błędu MSB4062.
Tekst wiadomości
MSB4062: The 'value' task could not be loaded from the assembly 'value'. 'value' Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.
Opis
Ten błąd jest emitowany, gdy program MSBuild nie może załadować zestawu zadań przed wykonaniem zadania.
Błąd MSB4062 może być spowodowany tym, że zadanie jest uruchamiane w środowisku, dla którego nie jest on przygotowany. Na przykład gdy zestaw zadań jest przeznaczony dla 32-bitowego x86, ale działa w 64-bitowym środowisku MSBuild.
S:\BitnessInMSBuild\ShowErrors.proj(13,5): error MSB4062: The "TaskCompiledForx86" task could not be loaded from the assembly S:\BitnessInMSBuild\TaskCompiledForx86\bin\Debug\net472\TaskCompiledForx86.dll. Could not load file or assembly 'file:///S:\BitnessInMSBuild\TaskCompiledForx86\bin\Debug\net472\TaskCompiledForx86.dll' or one of its dependencies. An attempt was made to load a program with an incorrect format. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask.
Rezolucja
Upewnij się, że zadanie wyraża zależność od środowiska uruchomieniowego, które jest wymagane w elemencie UsingTask zadania.
Odnosi się do
Wszystkie wersje programu MSBuild