icsharpcode/AvaloniaILSpy

Can't build from source on Linux

greenozon opened this issue · 3 comments

Steps executed according to readme for Linux

OS: Ubuntu 18.04.5 LTS
mono:

mono --version
Mono JIT compiler version 6.12.0.122 (tarball Mon Feb 22 17:29:18 UTC 2021)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
	TLS:           __thread
	SIGSEGV:       altstack
	Notifications: epoll
	Architecture:  amd64
	Disabled:      none
	Misc:          softdebug 
	Interpreter:   yes
	LLVM:          yes(610)
	Suspend:       hybrid
	GC:            sgen (concurrent by default)

error:

 ./build.sh 
Feeds used:
  https://api.nuget.org/v3/index.json
  https://www.myget.org/F/avalonia-ci/api/v2
  https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json

Restoring NuGet package Cake.1.3.0.
  GET https://www.myget.org/F/avalonia-ci/api/v2/Packages(Id='Cake',Version='1.3.0')
  NotFound https://www.myget.org/F/avalonia-ci/api/v2/Packages(Id='Cake',Version='1.3.0') 145ms
  GET https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/d1622942-d16f-48e5-bc83-96f4539e7601/nuget/v3/flat2/cake/1.3.0/cake.1.3.0.nupkg
  NotFound https://pkgs.dev.azure.com/dnceng/9ee6d478-d288-47f7-aacc-f6e6d082ae6d/_packaging/d1622942-d16f-48e5-bc83-96f4539e7601/nuget/v3/flat2/cake/1.3.0/cake.1.3.0.nupkg 275ms
  GET https://api.nuget.org/v3-flatcontainer/cake/1.3.0/cake.1.3.0.nupkg
  OK https://api.nuget.org/v3-flatcontainer/cake/1.3.0/cake.1.3.0.nupkg 17ms
Installed Cake 1.3.0 from https://api.nuget.org/v3/index.json with content hash pNGfUkViAN6+90acHBSK4CWno+/OHVCVPpykXbLjJauJOuZrSnpQ2NxLmkRGXzbHpXeKFRAQM0r7peFxkUZx0w==.
  GET https://www.myget.org/F/avalonia-ci/api/v2/FindPackagesById()?id='Cake'&semVerLevel=2.0.0
Adding package 'Cake.1.3.0' to folder '/home/oshpek/Downloads/ILSpy/AvaloniaILSpy/tools'
Added package 'Cake.1.3.0' to folder '/home/oshpek/Downloads/ILSpy/AvaloniaILSpy/tools'

========================================
Clean
========================================

========================================
Restore-NetCore
========================================
An error occurred when executing task 'Restore-NetCore'.
Error: One or more errors occurred. (.NET Core CLI: Could not locate executable.)
	.NET Core CLI: Could not locate executable.

I haven't tested if it works on mono. Could you try .net core?

Thanks for tip, I"ll give it a try and update here

Confirmed

Used steps for Ubuntu 18.04 from here:
https://docs.microsoft.com/en-us/dotnet/core/install/linux-ubuntu#1804-

then ./build.sh
run ILSpy from linux-x64 dir and voila:

image

Question: does it make sense to update readme file (w/.net install steps) for upcoming usages?