omnisharp-roslyn: Build failure on BuildTest task

Just did a clean clone (branch dev) and executed ./build.sh. Got an error during BuildTest task.

Downloading NuGet...
Feeds used:
  /Users/d12frosted/.local/share/NuGet/Cache
  /Users/d12frosted/.nuget/packages/
  https://dotnet.myget.org/F/dotnet-buildtools/api/v3/index.json
  https://api.nuget.org/v3/index.json

Restoring NuGet package Cake.0.10.1.
Adding package 'Cake.0.10.1' to folder '/Users/d12frosted/Developer/Other/omnisharp-roslyn/.tools'
Added package 'Cake.0.10.1' to folder '/Users/d12frosted/Developer/Other/omnisharp-roslyn/.tools'
Restoring NuGet package Newtonsoft.Json.8.0.3.
Adding package 'Newtonsoft.Json.8.0.3' to folder '/Users/d12frosted/Developer/Other/omnisharp-roslyn/.tools'
Added package 'Newtonsoft.Json.8.0.3' to folder '/Users/d12frosted/Developer/Other/omnisharp-roslyn/.tools'
Analyzing build script...
Processing build script...
Installing addins...
Compiling build script...

========================================
Cleanup
========================================
Executing task: Cleanup
Finished executing task: Cleanup

========================================
BuildEnvironment
========================================
Executing task: BuildEnvironment
dotnet-install: Downloading https://dotnetcli.blob.core.windows.net/dotnet/preview/Binaries/1.0.0-preview2-003131/dotnet-dev-osx-x64.1.0.0-preview2-003131.tar.gz
dotnet-install: Extracting zip
dotnet-install: Adding to current process PATH: /Users/d12frosted/Developer/Other/omnisharp-roslyn/.dotnet. Note: This change will be visible only when sourcing script.
dotnet-install: Installation finished successfully.
.NET Command Line Tools (1.0.0-preview2-003131)

Product Information:
 Version:            1.0.0-preview2-003131
 Commit SHA-1 hash:  635cf40e58

Runtime Environment:
 OS Name:     Mac OS X
 OS Version:  10.12
 OS Platform: Darwin
 RID:         osx.10.12-x64
Feeds used:
  https://dotnet.myget.org/F/dotnet-buildtools/api/v3/index.json
  https://api.nuget.org/v3/index.json

Attempting to gather dependencies information for package 'xunit.runner.console.2.2.0-beta3-build3402' with respect to project '/Users/d12frosted/Developer/Other/omnisharp-roslyn/.tools', targeting 'Any,Version=v0.0'
Attempting to resolve dependencies for package 'xunit.runner.console.2.2.0-beta3-build3402' with DependencyBehavior 'Lowest'
Resolving actions to install package 'xunit.runner.console.2.2.0-beta3-build3402'
Resolved actions to install package 'xunit.runner.console.2.2.0-beta3-build3402'
Adding package 'xunit.runner.console.2.2.0-beta3-build3402' to folder '/Users/d12frosted/Developer/Other/omnisharp-roslyn/.tools'
Added package 'xunit.runner.console.2.2.0-beta3-build3402' to folder '/Users/d12frosted/Developer/Other/omnisharp-roslyn/.tools'
Successfully installed 'xunit.runner.console 2.2.0-beta3-build3402' to /Users/d12frosted/Developer/Other/omnisharp-roslyn/.tools
Finished executing task: BuildEnvironment

========================================
PopulateRuntimes
========================================
Executing task: PopulateRuntimes
Finished executing task: PopulateRuntimes

========================================
Setup
========================================
Executing task: Setup
Finished executing task: Setup

========================================
Restore
========================================
Executing task: Restore
Restoring packages in /Users/d12frosted/Developer/Other/omnisharp-roslyn....
Package restore successful!
Finished executing task: Restore

========================================
BuildTest
========================================
Executing task: BuildTest
Building OmniSharp.MSBuild.Tests on netcoreapp1.0...
Building OmniSharp.Roslyn.CSharp.Tests on netcoreapp1.0...
Building OmniSharp.Stdio.Tests on netcoreapp1.0...
Building OmniSharp.Stdio.Tests on net46...
/Users/d12frosted/Developer/Other/omnisharp-roslyn/src/OmniSharp.Abstractions/project.json(19,14): error DOTNET1011: Framework not installed: .NETFramework,Version=v4.6 in 
/Users/d12frosted/Developer/Other/omnisharp-roslyn/src/OmniSharp.Abstractions/project.json(21,28): error NU1001: The dependency System.Runtime could not be resolved.
/Users/d12frosted/Developer/Other/omnisharp-roslyn/src/OmniSharp.Abstractions/project.json(22,30): error NU1001: The dependency System.Threading could not be resolved.
/Users/d12frosted/Developer/Other/omnisharp-roslyn/src/OmniSharp.Abstractions/project.json(23,36): error NU1001: The dependency System.Threading.Tasks could not be resolved.
/Users/d12frosted/Developer/Other/omnisharp-roslyn/src/OmniSharp.Abstractions/project.json(24,32): error NU1001: The dependency System.Collections could not be resolved.
/Users/d12frosted/Developer/Other/omnisharp-roslyn/src/OmniSharp.Abstractions/project.json(25,25): error NU1001: The dependency System.Linq could not be resolved.
/Users/d12frosted/Developer/Other/omnisharp-roslyn/src/OmniSharp.Abstractions/project.json(26,34): error NU1001: The dependency System.Text.Encoding could not be resolved.
/Users/d12frosted/Developer/Other/omnisharp-roslyn/src/OmniSharp.Abstractions/project.json(27,31): error NU1001: The dependency System.Reflection could not be resolved.
/Users/d12frosted/Developer/Other/omnisharp-roslyn/src/OmniSharp.Abstractions/project.json(28,29): error NU1001: The dependency System.Security could not be resolved.
/Users/d12frosted/Developer/Other/omnisharp-roslyn/src/OmniSharp.Abstractions/project.json(29,34): error NU1001: The dependency System.Globalization could not be resolved.
/Users/d12frosted/Developer/Other/omnisharp-roslyn/src/OmniSharp.Abstractions/project.json(30,24): error NU1001: The dependency System.Xml could not be resolved.
/Users/d12frosted/Developer/Other/omnisharp-roslyn/src/OmniSharp.Abstractions/project.json(8,43): error NU1001: The dependency System.Xml could not be resolved.
/Users/d12frosted/Developer/Other/omnisharp-roslyn/src/OmniSharp.Abstractions/project.json(30,24): error NU1001: The dependency System.Xml could not be resolved.
/Users/d12frosted/Developer/Other/omnisharp-roslyn/src/OmniSharp.Abstractions/project.json(8,43): error NU1001: The dependency System.Xml could not be resolved.
/Users/d12frosted/Developer/Other/omnisharp-roslyn/src/OmniSharp.Abstractions/project.json(31,29): error NU1001: The dependency System.Xml.Linq could not be resolved.
/Users/d12frosted/Developer/Other/omnisharp-roslyn/src/OmniSharp.Abstractions/project.json(8,43): error NU1001: The dependency System.Xml.Linq could not be resolved.
/Users/d12frosted/Developer/Other/omnisharp-roslyn/src/OmniSharp.Abstractions/project.json(31,29): error NU1001: The dependency System.Xml.Linq could not be resolved.
/Users/d12frosted/Developer/Other/omnisharp-roslyn/src/OmniSharp.Abstractions/project.json(8,43): error NU1001: The dependency System.Xml.Linq could not be resolved.
/Users/d12frosted/Developer/Other/omnisharp-roslyn/src/OmniSharp.Abstractions/project.json(8,43): error NU1001: The dependency mscorlib could not be resolved.
/Users/d12frosted/Developer/Other/omnisharp-roslyn/src/OmniSharp.Abstractions/project.json(12,56): error NU1001: The dependency mscorlib could not be resolved.
/Users/d12frosted/Developer/Other/omnisharp-roslyn/src/OmniSharp.Abstractions/project.json(8,43): error NU1001: The dependency mscorlib could not be resolved.
/Users/d12frosted/Developer/Other/omnisharp-roslyn/src/OmniSharp.Abstractions/project.json(12,56): error NU1001: The dependency mscorlib could not be resolved.
/Users/d12frosted/Developer/Other/omnisharp-roslyn/src/OmniSharp.Abstractions/project.json(8,43): error NU1001: The dependency System could not be resolved.
/Users/d12frosted/Developer/Other/omnisharp-roslyn/src/OmniSharp.Abstractions/project.json(10,50): error NU1001: The dependency System could not be resolved.
/Users/d12frosted/Developer/Other/omnisharp-roslyn/src/OmniSharp.Abstractions/project.json(11,49): error NU1001: The dependency System could not be resolved.
/Users/d12frosted/Developer/Other/omnisharp-roslyn/src/OmniSharp.Abstractions/project.json(12,56): error NU1001: The dependency System could not be resolved.
/Users/d12frosted/Developer/Other/omnisharp-roslyn/src/OmniSharp.Abstractions/project.json(14,51): error NU1001: The dependency System could not be resolved.
/Users/d12frosted/Developer/Other/omnisharp-roslyn/src/OmniSharp.Abstractions/project.json(8,43): error NU1001: The dependency System could not be resolved.
/Users/d12frosted/Developer/Other/omnisharp-roslyn/src/OmniSharp.Abstractions/project.json(10,50): error NU1001: The dependency System could not be resolved.
/Users/d12frosted/Developer/Other/omnisharp-roslyn/src/OmniSharp.Abstractions/project.json(11,49): error NU1001: The dependency System could not be resolved.
/Users/d12frosted/Developer/Other/omnisharp-roslyn/src/OmniSharp.Abstractions/project.json(12,56): error NU1001: The dependency System could not be resolved.
/Users/d12frosted/Developer/Other/omnisharp-roslyn/src/OmniSharp.Abstractions/project.json(14,51): error NU1001: The dependency System could not be resolved.
/Users/d12frosted/Developer/Other/omnisharp-roslyn/src/OmniSharp.Abstractions/project.json(8,43): error NU1001: The dependency System.Core could not be resolved.
/Users/d12frosted/Developer/Other/omnisharp-roslyn/src/OmniSharp.Abstractions/project.json(10,50): error NU1001: The dependency System.Core could not be resolved.
/Users/d12frosted/Developer/Other/omnisharp-roslyn/src/OmniSharp.Abstractions/project.json(11,49): error NU1001: The dependency System.Core could not be resolved.
/Users/d12frosted/Developer/Other/omnisharp-roslyn/src/OmniSharp.Abstractions/project.json(12,56): error NU1001: The dependency System.Core could not be resolved.
/Users/d12frosted/Developer/Other/omnisharp-roslyn/src/OmniSharp.Abstractions/project.json(14,51): error NU1001: The dependency System.Core could not be resolved.
/Users/d12frosted/Developer/Other/omnisharp-roslyn/src/OmniSharp.Abstractions/project.json(8,43): error NU1001: The dependency System.Core could not be resolved.
/Users/d12frosted/Developer/Other/omnisharp-roslyn/src/OmniSharp.Abstractions/project.json(10,50): error NU1001: The dependency System.Core could not be resolved.
/Users/d12frosted/Developer/Other/omnisharp-roslyn/src/OmniSharp.Abstractions/project.json(11,49): error NU1001: The dependency System.Core could not be resolved.
/Users/d12frosted/Developer/Other/omnisharp-roslyn/src/OmniSharp.Abstractions/project.json(12,56): error NU1001: The dependency System.Core could not be resolved.
/Users/d12frosted/Developer/Other/omnisharp-roslyn/src/OmniSharp.Abstractions/project.json(14,51): error NU1001: The dependency System.Core could not be resolved.
/Users/d12frosted/Developer/Other/omnisharp-roslyn/src/OmniSharp.Abstractions/project.json(8,43): error NU1001: The dependency System.ComponentModel.Composition could not be resolved.
/Users/d12frosted/Developer/Other/omnisharp-roslyn/src/OmniSharp.Abstractions/project.json(10,50): error NU1001: The dependency System.ComponentModel.Composition could not be resolved.
/Users/d12frosted/Developer/Other/omnisharp-roslyn/src/OmniSharp.Abstractions/project.json(11,49): error NU1001: The dependency System.ComponentModel.Composition could not be resolved.
/Users/d12frosted/Developer/Other/omnisharp-roslyn/src/OmniSharp.Abstractions/project.json(12,56): error NU1001: The dependency System.ComponentModel.Composition could not be resolved.
/Users/d12frosted/Developer/Other/omnisharp-roslyn/src/OmniSharp.Abstractions/project.json(14,51): error NU1001: The dependency System.ComponentModel.Composition could not be resolved.
/Users/d12frosted/Developer/Other/omnisharp-roslyn/src/OmniSharp.Abstractions/project.json(8,43): error NU1001: The dependency System.Numerics could not be resolved.
An error occured when executing task 'BuildTest'.
Error: Building test OmniSharp.Stdio.Tests failed for net46.

Am I doing something wrong?

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 19 (10 by maintainers)

Most upvoted comments

I was just curious. From the code I linked to, it seemed like it wouldn’t get produced, but I wanted to be sure since I’m not 100% familiar with Cake scripts.

I’m surprised that didn’t do the trick for you and I wonder if there’s a path issue or something causing the issue.

When I first submitted the PR to move OmniSharp from net451 to net46, I got the exact same error in Travis: https://travis-ci.org/OmniSharp/omnisharp-roslyn/jobs/170815359. Then, I submitted this commit the problem: https://github.com/OmniSharp/omnisharp-roslyn/pull/652/commits/2ecd5e1c1b0831544ff4eaaae5141f409b62388f

Actually, it may be that you need to update Mono on your machine to build against net46. What version do you have installed? You can run mono --version to find out.