Msbuild: Building msbuild for mono built from source fails

Created on 12 Aug 2017  路  5Comments  路  Source: dotnet/msbuild

Problem

When building msbuild targeting mono built from source fails. Here is the error I got when trying to do this with all the dotnet prerequisites installed.

packages/Microsoft.DotNet.BuildTools/1.0.27-prerelease-00927-05/lib/tool-runtime/project.lock.json(1,0): warning NU1006: Dependencies in project.json were modified. Please run "dotnet restore" to generate a new lock file.
Done initializing tools.

That error doesn't fail the build but it's the first indication that something is not right. adding a dotnet restore command in the script didn't fix the issue either.

I will add the entire error output tomorrow when I'm back on my main computer, just wanted to log this now.

Most helpful comment

Is there any solutions on this. I know, I know, this is not how I鈥檓 supposed to do it, but I can't think of something better. This is where it all begins...

All 5 comments

Here is the rest of the output:

 Building Project(s): build/dirs.proj : Configuration=Release-MONO, Platform=AnyCPU
  Building Project(s): src/dirs.proj : Configuration=Release-MONO, Platform=AnyCPU
  Building Project(s): Samples/dirs.proj : Configuration=Release-MONO, Platform=AnyCPU
  Building Project(s): mono/facades/build.proj : Configuration=Release-MONO, Platform=AnyCPU
/home/landon.butterworth/miniconda3/conda-bld/msbuild_1502640726960/work/packages/msbuild/Microsoft.CSharp.Core.targets(67,5): error MSB6003: The specified task executable "csc.exe" could not be run. ApplicationName='/home/landon.butterworth/miniconda3/conda-bld/msbuild_1502640726960/work/packages/msbuild/csc.exe', CommandLine=' /noconfig @"/tmp/tmp4aa2c01bea8f4fe69aca973398f8f74b.rsp"', CurrentDirectory='', Native error= Cannot find the specified file [/home/landon.butterworth/miniconda3/conda-bld/msbuild_1502640726960/work/src/Framework/Microsoft.Build.Framework.csproj]
/home/landon.butterworth/miniconda3/conda-bld/msbuild_1502640726960/work/packages/msbuild/Microsoft.CSharp.Core.targets(67,5): error MSB6003: The specified task executable "csc.exe" could not be run. ApplicationName='/home/landon.butterworth/miniconda3/conda-bld/msbuild_1502640726960/work/packages/msbuild/csc.exe', CommandLine=' /noconfig @"/tmp/tmp7eaafc4b151440038989ed4981db2c76.rsp"', CurrentDirectory='', Native error= Cannot find the specified file [/home/landon.butterworth/miniconda3/conda-bld/msbuild_1502640726960/work/Samples/TaskUsageLogger/TaskUsageLogger.csproj]
/home/landon.butterworth/miniconda3/conda-bld/msbuild_1502640726960/work/packages/msbuild/Microsoft.CSharp.Core.targets(67,5): error MSB6003: The specified task executable "csc.exe" could not be run. ApplicationName='/home/landon.butterworth/miniconda3/conda-bld/msbuild_1502640726960/work/packages/msbuild/csc.exe', CommandLine=' /noconfig @"/tmp/tmp72d573071c674010a1d566324d560f5c.rsp"', CurrentDirectory='', Native error= Cannot find the specified file [/home/landon.butterworth/miniconda3/conda-bld/msbuild_1502640726960/work/Samples/Dependency/Dependency.csproj]
/home/landon.butterworth/miniconda3/conda-bld/msbuild_1502640726960/work/mono/facades/build.proj(42,3): error MSB6003: The specified task executable "csc.exe" could not be run. ApplicationName='/home/landon.butterworth/miniconda3/conda-bld/msbuild_1502640726960/work/packages/msbuild/csc.exe', CommandLine=' @"/tmp/tmp071e4292691e44a0a1a72ec56630fe7e.rsp"', CurrentDirectory='', Native error= Cannot find the specified file
Makefile:2: recipe for target 'all-mono' failed
make: *** [all-mono] Error 1

The files it says it can't find are in the locations indicated.

ApplicationName='/home/landon.butterworth/miniconda3/conda-bld/msbuild_1502640726960/work/packages/msbuild/csc.exe

Did you set CscToolPath? I assume you have mono in PATH? And is that a recent one, with $mono_prefix/lib/mono/4.5/csc.exe ?

yeah, csc.exe is in the location you specified, mono is in the PATH, but I did not set CscToolPath. Just set that to the location of the csc.exe?

Anything new on this?

Is there any solutions on this. I know, I know, this is not how I鈥檓 supposed to do it, but I can't think of something better. This is where it all begins...

Was this page helpful?
0 / 5 - 0 ratings