Closed gsomix closed 11 months ago
Repro steps
Create project using Aardvark template.
$ mkdir TestApp $ cd TestApp $ dotnet new aardvark.rendering --backend opengl
Update Paket to latest in dotnet-tools.json.
dotnet-tools.json
{ "version": 1, "isRoot": true, "tools": { "paket": { "version": "7.0.0-alpha003", "commands": [ "paket" ] } } }
Update TestApp.fsproj to .NET 6
TestApp.fsproj
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>net6.0</TargetFramework> </PropertyGroup> <ItemGroup> <Compile Include="Program.fs" /> </ItemGroup> <Import Project="..\..\.paket\Paket.Restore.targets" /> </Project>
Update Aardvark to latest in paket.dependencies
paket.dependencies
source https://api.nuget.org/v3/index.json framework: net6.0 storage: none
nuget FSharp.Core >= 5.0.0 lowest_matching: true
nuget Aardvark.Base ~> 5.1.25 nuget Aardvark.Base.Incremental ~> 5.1.25 nuget Aardvark.Base.FSharp ~> 5.1.25
nuget Aardvark.Rendering ~> 5.1.22 nuget Aardvark.SceneGraph ~> 5.1.22 nuget Aardvark.SceneGraph.IO ~> 5.1.22 nuget Aardvark.Application.Slim ~> 5.1.22 nuget Aardvark.Application.Slim.GL ~> 5.1.22
5. Install packages and run application
$ dotnet tool restore $ dotnet paket install $ dotnet run -c Release --project .\src\TestApp\TestApp.fsproj
Full project: [TestApp.zip](https://github.com/aardvark-platform/aardvark.templates/files/7799489/TestApp.zip) **Expected behavior** Application runs. **Actual behavior** [UnhandledException.](https://github.com/aardvark-platform/aardvark.templates/files/7799490/UnhandledException.log)
System.PlatformNotSupportedException: Unmanaged indirect call emission is not supported on this platform.
**Known workarounds** Use .NET 5 instead. **Related information**
$ dotnet --version 6.0.100
Repro steps
Create project using Aardvark template.
Update Paket to latest in
dotnet-tools.json
.Update
TestApp.fsproj
to .NET 6Update Aardvark to latest in
paket.dependencies
nuget FSharp.Core >= 5.0.0 lowest_matching: true
nuget Aardvark.Base ~> 5.1.25 nuget Aardvark.Base.Incremental ~> 5.1.25 nuget Aardvark.Base.FSharp ~> 5.1.25
nuget Aardvark.Rendering ~> 5.1.22 nuget Aardvark.SceneGraph ~> 5.1.22 nuget Aardvark.SceneGraph.IO ~> 5.1.22 nuget Aardvark.Application.Slim ~> 5.1.22 nuget Aardvark.Application.Slim.GL ~> 5.1.22
$ dotnet tool restore $ dotnet paket install $ dotnet run -c Release --project .\src\TestApp\TestApp.fsproj
System.PlatformNotSupportedException: Unmanaged indirect call emission is not supported on this platform.
$ dotnet --version 6.0.100