icsharpcode / AvaloniaILSpy

Avalonia-based .NET Decompiler (port of ILSpy)
1.52k stars 171 forks source link

Build error in Kubuntu 20.04: SharpTreeView.cs(19,7): error CS0246: The type or namespace name 'AvaloniaEdit' could not be found #39

Closed rybak closed 4 years ago

rybak commented 4 years ago

Build log:

$ ./build.sh 
Feeds used:
  /home/andrei/.nuget/packages/
  https://www.nuget.org/api/v2/
  https://www.myget.org/F/avalonia-ci/api/v2
  https://ci.appveyor.com/nuget/ilspy-masterfeed
  https://dotnet.myget.org/F/symreader-converter/api/v3/index.json

All packages listed in /home/andrei/repos/open-source/AvaloniaILSpy/tools/packages.config are already installed.

========================================
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.

OS info:

Operating System: Kubuntu 20.04
KDE Plasma Version: 5.18.5
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8
Kernel Version: 5.3.0-51-generic
OS Type: 64-bit
Processors: 8 × Intel® Core™ i5-8250U CPU @ 1.60GHz
Memory: 7.7 GiB of RAM

P.S. I have apt package mono-complete installed.

rybak commented 4 years ago

Investigation lead me to page https://docs.microsoft.com/en-us/dotnet/core/install/linux-ubuntu

Perhaps, a new section "Build" could be added to README.md with instructions?

rybak commented 4 years ago

After installing dotnet-sdk-3.1, I get this:

$ ./build.sh
...
Restored /home/andrei/repos/open-source/AvaloniaILSpy/ILSpy/ILSpy.csproj (in 1.34 sec).
/usr/share/dotnet/sdk/3.1.301/Microsoft.Common.CurrentVersion.targets(1850,5): warning : The referenced project '../AvaloniaEdit/src/AvaloniaEdit/AvaloniaEdit.csproj' does not exist. [/home/andrei/repos/open-source/AvaloniaILSpy/SharpTreeView/SharpTreeView.csproj]
SharpTreeView.cs(19,7): error CS0246: The type or namespace name 'AvaloniaEdit' could not be found (are you missing a using directive or an assembly reference?) [/home/andrei/repos/open-source/AvaloniaILSpy/SharpTreeView/SharpTreeView.csproj]
SharpTreeView.cs(23,52): error CS0246: The type or namespace name 'IRoutedCommandBindable' could not be found (are you missing a using directive or an assembly reference?) [/home/andrei/repos/open-source/AvaloniaILSpy/SharpTreeView/SharpTreeView.csproj]
SharpTreeView.cs(685,22): error CS0246: The type or namespace name 'RoutedCommandBinding' could not be found (are you missing a using directive or an assembly reference?) [/home/andrei/repos/open-source/AvaloniaILSpy/SharpTreeView/SharpTreeView.csproj]
SharpTreeView.cs(695,55): error CS0246: The type or namespace name 'ExecutedRoutedEventArgs' could not be found (are you missing a using directive or an assembly reference?) [/home/andrei/repos/open-source/AvaloniaILSpy/SharpTreeView/SharpTreeView.csproj]
SharpTreeView.cs(700,51): error CS0246: The type or namespace name 'CanExecuteRoutedEventArgs' could not be found (are you missing a using directive or an assembly reference?) [/home/andrei/repos/open-source/AvaloniaILSpy/SharpTreeView/SharpTreeView.csproj]
SharpTreeView.cs(705,50): error CS0246: The type or namespace name 'ExecutedRoutedEventArgs' could not be found (are you missing a using directive or an assembly reference?) [/home/andrei/repos/open-source/AvaloniaILSpy/SharpTreeView/SharpTreeView.csproj]
SharpTreeView.cs(710,52): error CS0246: The type or namespace name 'CanExecuteRoutedEventArgs' could not be found (are you missing a using directive or an assembly reference?) [/home/andrei/repos/open-source/AvaloniaILSpy/SharpTreeView/SharpTreeView.csproj]
SharpTreeView.cs(715,51): error CS0246: The type or namespace name 'ExecutedRoutedEventArgs' could not be found (are you missing a using directive or an assembly reference?) [/home/andrei/repos/open-source/AvaloniaILSpy/SharpTreeView/SharpTreeView.csproj]
SharpTreeView.cs(720,53): error CS0246: The type or namespace name 'CanExecuteRoutedEventArgs' could not be found (are you missing a using directive or an assembly reference?) [/home/andrei/repos/open-source/AvaloniaILSpy/SharpTreeView/SharpTreeView.csproj]
SharpTreeView.cs(725,52): error CS0246: The type or namespace name 'ExecutedRoutedEventArgs' could not be found (are you missing a using directive or an assembly reference?) [/home/andrei/repos/open-source/AvaloniaILSpy/SharpTreeView/SharpTreeView.csproj]
SharpTreeView.cs(742,54): error CS0246: The type or namespace name 'CanExecuteRoutedEventArgs' could not be found (are you missing a using directive or an assembly reference?) [/home/andrei/repos/open-source/AvaloniaILSpy/SharpTreeView/SharpTreeView.csproj]
SharpTreeView.cs(768,15): warning CS0108: 'SharpTreeView.UnselectAll()' hides inherited member 'ListBox.UnselectAll()'. Use the new keyword if hiding was intended. [/home/andrei/repos/open-source/AvaloniaILSpy/SharpTreeView/SharpTreeView.csproj]
  ICSharpCode.Decompiler.PdbProvider.Cecil -> /home/andrei/repos/open-source/AvaloniaILSpy/ICSharpCode.Decompiler.PdbProvider.Cecil/bin/Release/netstandard2.0/ICSharpCode.Decompiler.PdbProvider.Cecil.dll
An error occurred when executing task 'Publish-NetCore'.
Error: One or more errors occurred. (.NET Core CLI: Process returned an error (exit code 1).)
        .NET Core CLI: Process returned an error (exit code 1).
riQQ commented 4 years ago

You're missing the git submodules of this repository.

rybak commented 4 years ago

@riQQ thanks for the help. Closing.