Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

coreclr build failure: "GetTargetMachineInfo" task could not be loaded #181

Closed
BruceForstall opened this issue Nov 21, 2019 · 5 comments
Closed

Comments

@BruceForstall
Copy link
Member

With a new, clean runtime clone, src\coreclr\build.cmd fails with:

C:\gh\runtime\tools-local\tasks\installer.tasks\installer.tasks.csproj(42,5): error MSB4062: The "GetTargetMachineInfo" task could not be loaded from the assembly C:\gh\runtime\artifacts\bin\installer.tasks\Debug\netstandard2.0\installer.tasks.dll. Could not load file or assembly 'C:\gh\runtime\artifacts\bin\installer.tasks\Debug\netstandard2.0\installer.tasks.dll'. The system cannot find the path specified. 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.

@dotnet/runtime-infrastructure

@Dotnet-GitSync-Bot Dotnet-GitSync-Bot added the untriaged New issue has not been triaged by the area owner label Nov 21, 2019
@ViktorHofer
Copy link
Member

I have a PR open that fixes this: #178

@sandreenko
Copy link
Contributor

I have hit this issue, I have the fix from #178. Is git clean required?

Log:

Restore completed in 37.61 ms for F:\git\runtime\tools-local\tasks\installer.tasks\installer.tasks.csproj.
  installer.tasks -> F:\git\runtime\artifacts\bin\installer.tasks\x86\Debug\netstandard2.0\installer.tasks.dll
  installer.tasks -> F:\git\runtime\artifacts\bin\installer.tasks\x86\Debug\net46\installer.tasks.dll
F:\git\runtime\tools-local\tasks\installer.tasks\installer.tasks.csproj(54,5): error MSB4062: The "GetTargetMachineInfo" task could not be loaded from the assembly F:\git\runtime\artifacts\bin\installer.tasks\Debug\netstandard2.0\installer.tasks.dll. Could not load file or assembly 'F:\git\runtime\artifacts\bin\installer.tasks\Debug\netstandard2.0\installer.tasks.dll'. The system cannot find the path specified. 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.

Build FAILED.

F:\git\runtime\tools-local\tasks\installer.tasks\installer.tasks.csproj(54,5): error MSB4062: The "GetTargetMachineInfo" task could not be loaded from the assembly F:\git\runtime\artifacts\bin\installer.tasks\Debug\netstandard2.0\installer.tasks.dll. Could not load file or assembly 'F:\git\runtime\artifacts\bin\installer.tasks\Debug\netstandard2.0\installer.tasks.dll'. The system cannot find the path specified. 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.
    0 Warning(s)
    1 Error(s)

Time Elapsed 00:00:02.05
Build failed.
See log: F:\git\runtime\src\coreclr\..\..\artifacts\log\Nuget_Windows_NT__x86__Checked.binlog
BUILD: Error: Nuget package generation failed. Refer to the build log file for details.
    "F:\git\runtime\src\coreclr\..\..\artifacts\log\Nuget_Windows_NT__x86__Checked.binlog"

seandree@SEANDREEPC F:\git\runtime\src\coreclr
$ git log
commit 651050edd98daaf5ef7bc78164c5b43b3646c139 (dotnet/master)
Author: Viktor Hofer <viktor.hofer@microsoft.com>
Date:   Thu Nov 21 23:16:58 2019 +0100

    Update Version.Details.xml (#197)

commit 1d5de1533ad35b39f776701c4d22b68a3def2dd8
Author: Viktor Hofer <viktor.hofer@microsoft.com>
Date:   Thu Nov 21 23:13:26 2019 +0100

    Libraries testing (#178)

    * Add Libraries Testing framework package as inline

@ViktorHofer
Copy link
Member

I hope that this will now really fix it: #205

@ViktorHofer
Copy link
Member

After this is merged please do a .\build.cmd/sh -clean

@sandreenko
Copy link
Contributor

Thanks @ViktorHofer

@ghost ghost locked as resolved and limited conversation to collaborators Dec 11, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants