Reinforced.Typings: [MSB6003] The specified task executable "" could not be run.

I have recently updated to version 1.5.0 and am now receiving the following error:

Reinforced.Typings.targets(59, 3): [MSB6003] The specified task executable "" could not be run. No such file or directory

Is there a known fix or anything I can do to get more information about what is happening?

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 15 (9 by maintainers)

Most upvoted comments

I have done some more research, let me know what you think.

The only reference to dotnet.exe I can find is in the file Reinforced.Typings/Reinforced.Typings.Integrate/RtCli.cs https://github.com/reinforced/Reinforced.Typings/blob/32597244e129b2939872686101d8d239c957197a/Reinforced.Typings.Integrate/RtCli.cs

I can be fairly confident that IsCore is returning correctly because rtcli.exe is not referenced.

Therefore, I think that the issue lies in #if NETCORE I have decompiled reinforced.typings.1.5.0.nupkg\build\netstandard2.0\Reinforced.Typings.Integrate.dll

and I see the following code

protected override string GenerateFullPathToTool()
{
    if (this.IsCore)
        return "dotnet.exe";
    return Path.Combine(this.GetProperRtcliPath(), this.ToolName);
}

This accurately maps to a false evaluation of the if directive when compiling for netstandard.

I have checked the Reinforced.Typings/cake/build.cake file and I notice that the IntegrateProject does NOT have a corresponding RtAdditionalConstants section like the other files do.

if (netCore.Contains(fw)){
    mbs = new DotNetCoreMSBuildSettings()
        .WithProperty("RtAdditionalConstants","NETCORE;" + fw.ToUpperInvariant().Replace(".","_"))
        .WithProperty("RtNetCore","True");
}

Is it possible that this just needs adding to the build process?