stride3d / stride

Stride Game Engine (formerly Xenko)
https://stride3d.net
MIT License
6.32k stars 917 forks source link

Pack target crashes #2358

Open azeno opened 2 days ago

azeno commented 2 days ago

Release Type: Official Release

Version: 4.2.0.2188

Platform(s): Windows

Describe the bug Invoking the Pack target on a Stride based project crashes:

1>------ Build started: Project: VL.Stride.DefaultAssets, Configuration: Debug Any CPU ------
1>Assembly [VL.Stride.DefaultAssets, Version=2024.6.0.0, Culture=neutral, PublicKeyToken=null] has already been processed, skip it.
1>VL.Stride.DefaultAssets -> C:\Users\elias\source\repos\vvvv\VL.StandardLibs\VL.Stride.DefaultAssets\lib\net8.0\VL.Stride.DefaultAssets.dll
1>
1>Unhandled Exception: System.TypeInitializationException: The type initializer for '<Module>' threw an exception. ---> System.IO.FileNotFoundException: Could not load file or assembly 'System.Runtime, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
1>   at .cctor()
1>   --- End of inner exception stack trace ---
1>C:\Users\elias\.nuget\packages\stride.core.assets.compilerapp\4.2.0.2188\buildTransitive\Stride.Core.Assets.CompilerApp.targets(222,5): error MSB3073: The command ""C:\Users\elias\.nuget\packages\stride.core.assets.compilerapp\4.2.0.2188\buildTransitive\..\lib\net8.0\Stride.Core.Assets.CompilerApp.dll" --pack --package-file="C:\Users\elias\source\repos\vvvv\VL.StandardLibs\VL.Stride.DefaultAssets\VL.Stride.DefaultAssets.csproj" --build-path="C:\Users\elias\source\repos\vvvv\VL.StandardLibs\VL.Stride.DefaultAssets\obj\stride\pack"" exited with code -532462766.
1>Done building project "VL.Stride.DefaultAssets.csproj" -- FAILED.

I suspect this was introduced with #2279 - while the StrideCompileAsset target uses dotnet ...Stride.Core.Assets.CompilerApp.dll the _StridePrepareAssetsForPack does not and crashes @Jklawreszuk