Auburn / FastNoiseLite

Fast Portable Noise Library - C# C++ C Java HLSL GLSL JavaScript Rust Go
http://auburn.github.io/FastNoiseLite/
MIT License
2.79k stars 328 forks source link

PreviewApp faild to build/launch on Ubuntu 22.04 #106

Closed mastir closed 1 year ago

mastir commented 2 years ago

I`ve found only dotnet6 available for linux, by simple updating dotnet to version 6 and Eto.Form to 2.7.2 fixed build and launch. I guess windows and mac versions should be updated too.

my csproj:

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <OutputType>WinExe</OutputType>
    <TargetFramework>net6.0</TargetFramework>
  </PropertyGroup>

  <ItemGroup>
    <PackageReference Include="Eto.Forms" Version="2.7.2" />    
  </ItemGroup>

  <Choose>
    <When Condition="$(RuntimeIdentifier) != ''">
      <ItemGroup>
        <PackageReference Condition="$(RuntimeIdentifier.StartsWith('win'))" Include="Eto.Platform.Wpf" Version="2.5.10" />
        <PackageReference Condition="$(RuntimeIdentifier.StartsWith('osx'))" Include="Eto.Platform.Mac64" Version="2.5.10" />
        <PackageReference Condition="$(RuntimeIdentifier.StartsWith('linux'))" Include="Eto.Platform.Gtk" Version="2.7.2" />
      </ItemGroup>
    </When>
    <Otherwise>
      <ItemGroup>
        <PackageReference Condition="$([MSBuild]::IsOSPlatform('Windows'))" Include="Eto.Platform.Wpf" Version="2.5.10" />
        <PackageReference Condition="$([MSBuild]::IsOSPlatform('OSX'))" Include="Eto.Platform.Mac64" Version="2.5.10" />
        <PackageReference Condition="$([MSBuild]::IsOSPlatform('Linux'))" Include="Eto.Platform.Gtk" Version="2.7.2" />
      </ItemGroup>
    </Otherwise>
  </Choose>

  <ItemGroup>
    <Compile Include="..\CSharp\FastNoiseLite.cs" Link="FastNoiseLite.cs" />
  </ItemGroup>
</Project>

Thanks for a nice tool!

Auburn commented 1 year ago

Fixed in v1.1.0 with new web app