VitalElement / AvalonStudio

Cross platform IDE and Shell
GNU Lesser General Public License v3.0
1.62k stars 237 forks source link

Build error on Linux Mint 20.3 #773

Closed TrevorDArcyEvans closed 2 years ago

TrevorDArcyEvans commented 2 years ago
/home/trevorde/.nuget/packages/sharpgentools.sdk/1.2.0/build/SharpGenTools.Sdk.targets(315,5): error : MissingMethodException: Method not found: 'Void System.IO.FileStream..ctor(System.String, System.IO.FileMode, System.IO.FileAccess, System.IO.FileShare)'. [/home/trevorde/dev/AvalonStudio/AvalonStudio/CorApi.Portable/CorApi.Portable.csproj]
/home/trevorde/.nuget/packages/sharpgentools.sdk/1.2.0/build/SharpGenTools.Sdk.targets(315,5): error :    at Mono.Cecil.ModuleDefinition.GetFileStream(String fileName, FileMode mode, FileAccess access, FileShare share) [/home/trevorde/dev/AvalonStudio/AvalonStudio/CorApi.Portable/CorApi.Portable.csproj]
/home/trevorde/.nuget/packages/sharpgentools.sdk/1.2.0/build/SharpGenTools.Sdk.targets(315,5): error :    at Mono.Cecil.ModuleDefinition.ReadModule(String fileName, ReaderParameters parameters) [/home/trevorde/dev/AvalonStudio/AvalonStudio/CorApi.Portable/CorApi.Portable.csproj]
/home/trevorde/.nuget/packages/sharpgentools.sdk/1.2.0/build/SharpGenTools.Sdk.targets(315,5): error :    at SharpPatch.InteropApp.PatchFile(String file) [/home/trevorde/dev/AvalonStudio/AvalonStudio/CorApi.Portable/CorApi.Portable.csproj]
/home/trevorde/.nuget/packages/sharpgentools.sdk/1.2.0/build/SharpGenTools.Sdk.targets(315,5): error :    at SharpGenTools.Sdk.SharpPatch.Execute() [/home/trevorde/dev/AvalonStudio/AvalonStudio/CorApi.Portable/CorApi.Portable.csproj]
/home/trevorde/.nuget/packages/sharpgentools.sdk/1.2.0/build/SharpGenTools.Sdk.targets(315,5): error :  [/home/trevorde/dev/AvalonStudio/AvalonStudio/CorApi.Portable/CorApi.Portable.csproj]
    0 Warning(s)
    1 Error(s)
$ lsb_release -a
No LSB modules are available.
Distributor ID: Linuxmint
Description:    Linux Mint 20.3
Release:    20.3
Codename:   una
$ dotnet --version
6.0.201
riQQ commented 2 years ago

Workaround: Use SDK version 5.x by adding the file global.json in the root of the repository with following content:

{
  "sdk": {
    "version": "5.0.406"
  }
}
TrevorDArcyEvans commented 2 years ago

Thanks for the prompt response and workaround. Would you please add this to the repo?

riQQ commented 2 years ago

This seems to be tracked here https://github.com/SharpGenTools/SharpGenTools/issues/164.