Skip to content

Cannot dotnet build ... #9

@thygrrr

Description

@thygrrr

The build fails:

C:\Program Files\dotnet\packs\Microsoft.NET.Runtime.WebAssembly.Sdk\10.0.1\Sdk\WasmApp.Common.targets(771,5): error The return type 'Silk.NET.SDL.GameControllerButtonBind' of pinvoke callback method 'Silk.NET.SDL.GameControllerButtonBind _WDE(Silk.NET.SDL.GameController*, Silk.NET.SDL.GameControllerAxis)' needs to be blittable.

The build Logs as follows:

c:\Projects\pollus> dotnet build
Restore complete (1.5s)
  Pollus.ECS.Generators netstandard2.0 succeeded (0.3s) → src\Pollus.ECS.Generators\bin\Debug\netstandard2.0\Pollus.ECS.Generators.dll
  Pollus.Generators netstandard2.0 succeeded with 1 warning(s) (0.3s) → src\Pollus.Generators\bin\Debug\netstandard2.0\Pollus.Generators.dll
    c:\Projects\pollus\src\Pollus.Generators\Common.cs(33,19): warning CS0649: Field 'Attribute.Name' is never assigned to, and will always have its default value null
  Pollus.Emscripten.WGPUGenerator net10.0 succeeded (0.3s) → src\Pollus.Emscripten.WGPUGenerator\bin\Debug\net10.0\Pollus.Emscripten.WGPUGenerator.dll
  Pollus.Core net10.0 succeeded with 4 warning(s) (0.7s) → src\Pollus.Core\bin\Debug\net10.0\Pollus.Core.dll
    c:\Projects\pollus\src\Pollus.Core\Utils\TypeLookup.cs(12,31): warning CS8602: Dereference of a possibly null reference.
    c:\Projects\pollus\src\Pollus.Core\Utils\TypeLookup.cs(12,31): warning CS8603: Possible null reference return.
    c:\Projects\pollus\src\Pollus.Core\Parser\Parser.cs(97,15): warning CS0169: The field 'Parser.Output.range' is never used
    c:\Projects\pollus\src\Pollus.Core\Utils\Color.cs(380,6): warning CA2255: The 'ModuleInitializer' attribute is only intended to be used in application code or advanced source generator scenarios (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2255)
  Pollus.Core net10.0-browser succeeded with 4 warning(s) (0.8s) → src\Pollus.Core\bin\Debug\net10.0-browser\Pollus.Core.dll
    c:\Projects\pollus\src\Pollus.Core\Utils\TypeLookup.cs(12,31): warning CS8602: Dereference of a possibly null reference.
    c:\Projects\pollus\src\Pollus.Core\Utils\TypeLookup.cs(12,31): warning CS8603: Possible null reference return.
    c:\Projects\pollus\src\Pollus.Core\Parser\Parser.cs(97,15): warning CS0169: The field 'Parser.Output.range' is never used
    c:\Projects\pollus\src\Pollus.Core\Utils\Color.cs(380,6): warning CA2255: The 'ModuleInitializer' attribute is only intended to be used in application code or advanced source generator scenarios (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2255)
  Pollus.Emscripten net10.0 succeeded (0.9s) → src\Pollus.Emscripten\bin\Debug\net10.0\Pollus.Emscripten.dll
  Pollus.Audio net10.0 succeeded (0.8s) → src\Pollus.Audio\bin\Debug\net10.0\Pollus.Audio.dll
  Pollus.Graphics net10.0 succeeded with 2 warning(s) (1.0s) → src\Pollus.Graphics\bin\Debug\net10.0\Pollus.Graphics.dll
    c:\Projects\pollus\src\Pollus.Graphics\WGPU\WGPUContextBrowser.cs(171,13): warning CS8602: Dereference of a possibly null reference.
    c:\Projects\pollus\src\Pollus.Graphics\WGPU\WGPUContextBrowser.cs(221,13): warning CS8602: Dereference of a possibly null reference.
  Pollus.ECS net10.0-browser succeeded with 3 warning(s) (2.3s) → src\Pollus.ECS\bin\Debug\net10.0-browser\Pollus.ECS.dll
    c:\Projects\pollus\src\Pollus.ECS\ComponentWrapper.cs(37,27): warning CS8618: Non-nullable field 'targetInfo' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.
    c:\Projects\pollus\src\Pollus.ECS\State.Yield.cs(49,9): warning CS9198: Reference kind modifier of parameter 'in Yield yield' doesn't match the corresponding parameter 'scoped ref Yield yield' in target.
    c:\Projects\pollus\src\Pollus.ECS\State.Yield.cs(12,9): warning CS9198: Reference kind modifier of parameter 'in Yield yield' doesn't match the corresponding parameter 'scoped ref Yield yield' in target.
  Pollus.Emscripten net10.0-browser succeeded (0.4s) → src\Pollus.Emscripten\bin\Debug\net10.0-browser\Pollus.Emscripten.dll
  Pollus.ECS net10.0 succeeded with 3 warning(s) (2.3s) → src\Pollus.ECS\bin\Debug\net10.0\Pollus.ECS.dll
    c:\Projects\pollus\src\Pollus.ECS\ComponentWrapper.cs(37,27): warning CS8618: Non-nullable field 'targetInfo' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.
    c:\Projects\pollus\src\Pollus.ECS\State.Yield.cs(12,9): warning CS9198: Reference kind modifier of parameter 'in Yield yield' doesn't match the corresponding parameter 'scoped ref Yield yield' in target.
    c:\Projects\pollus\src\Pollus.ECS\State.Yield.cs(49,9): warning CS9198: Reference kind modifier of parameter 'in Yield yield' doesn't match the corresponding parameter 'scoped ref Yield yield' in target.
  Pollus.Audio net10.0-browser succeeded (0.3s) → src\Pollus.Audio\bin\Debug\net10.0-browser\Pollus.Audio.dll
  Pollus.Graphics net10.0-browser succeeded with 2 warning(s) (0.7s) → src\Pollus.Graphics\bin\Debug\net10.0-browser\Pollus.Graphics.dll
    c:\Projects\pollus\src\Pollus.Graphics\WGPU\WGPUContextBrowser.cs(171,13): warning CS8602: Dereference of a possibly null reference.
    c:\Projects\pollus\src\Pollus.Graphics\WGPU\WGPUContextBrowser.cs(221,13): warning CS8602: Dereference of a possibly null reference.
  Pollus.Engine net10.0 succeeded with 5 warning(s) (0.8s) → src\Pollus.Engine\bin\Debug\net10.0\Pollus.Engine.dll
    c:\Projects\pollus\src\Pollus.Engine\obj\Debug\net10.0\generated\Pollus.Generators\Pollus.Generators.SerializeGenerator\Pollus_Engine_Rendering_root_SpriteMaterial.Serialize.gen.cs(40,11): warning CS8625: Cannot convert null literal to non-nullable reference type.
    c:\Projects\pollus\src\Pollus.Engine\obj\Debug\net10.0\generated\Pollus.Generators\Pollus.Generators.SerializeGenerator\Pollus_Engine_Rendering_root_SpriteMaterial.Serialize.gen.cs(41,11): warning CS8625: Cannot convert null literal to non-nullable reference type.
    c:\Projects\pollus\src\Pollus.Engine\Scene\ScenePlugin.cs(53,12): warning CS8618: Non-nullable property 'FileTypeMigrations' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
    c:\Projects\pollus\src\Pollus.Engine\Serialization\SnapshotSerialization.cs(127,37): warning CS8604: Possible null reference argument for parameter 'typeName' in 'Type? Type.GetType(string typeName)'.
    c:\Projects\pollus\src\Pollus.Engine\Rendering\Sampler\SamplerBinding.cs(82,6): warning CA2255: The 'ModuleInitializer' attribute is only intended to be used in application code or advanced source generator scenarios (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2255)
  Pollus.Benchmark net10.0 succeeded (0.4s) → src\Pollus.Benchmark\bin\Debug\net10.0\Pollus.Benchmark.dll
  Pollus.Engine net10.0-browser succeeded with 15 warning(s) (0.9s) → src\Pollus.Engine\bin\Debug\net10.0-browser\Pollus.Engine.dll
    c:\Projects\pollus\src\Pollus.Engine\obj\Debug\net10.0-browser\generated\Pollus.Generators\Pollus.Generators.SerializeGenerator\Pollus_Engine_Rendering_root_SpriteMaterial.Serialize.gen.cs(40,11): warning CS8625: Cannot convert null literal to non-nullable reference type.
    c:\Projects\pollus\src\Pollus.Engine\obj\Debug\net10.0-browser\generated\Pollus.Generators\Pollus.Generators.SerializeGenerator\Pollus_Engine_Rendering_root_SpriteMaterial.Serialize.gen.cs(41,11): warning CS8625: Cannot convert null literal to non-nullable reference type.
    c:\Projects\pollus\src\Pollus.Engine\Scene\ScenePlugin.cs(53,12): warning CS8618: Non-nullable property 'FileTypeMigrations' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the property as nullable.
    c:\Projects\pollus\src\Pollus.Engine\Serialization\SnapshotSerialization.cs(127,37): warning CS8604: Possible null reference argument for parameter 'typeName' in 'Type? Type.GetType(string typeName)'.
    c:\Projects\pollus\src\Pollus.Engine\Assets\DevelopmentAssetsWatch.cs(42,9): warning CA1416: This call site is reachable on: 'browser' 1.0 and later. 'FileSystemWatcher.Changed' is unsupported on: 'browser' all versions. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
    c:\Projects\pollus\src\Pollus.Engine\Assets\DevelopmentAssetsWatch.cs(40,9): warning CA1416: This call site is reachable on: 'browser' 1.0 and later. 'FileSystemWatcher.EnableRaisingEvents' is unsupported on: 'browser' all versions. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
    c:\Projects\pollus\src\Pollus.Engine\Assets\DevelopmentAssetsWatch.cs(37,19): warning CA1416: This call site is reachable on: 'browser' 1.0 and later. 'FileSystemWatcher' is unsupported on: 'browser' all versions. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
    c:\Projects\pollus\src\Pollus.Engine\Assets\DevelopmentAssetsWatch.cs(39,9): warning CA1416: This call site is reachable on: 'browser' 1.0 and later. 'FileSystemWatcher.IncludeSubdirectories' is unsupported on: 'browser' all versions. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
    c:\Projects\pollus\src\Pollus.Engine\Assets\DevelopmentAssetsWatch.cs(38,32): warning CA1416: This call site is reachable on: 'browser' 1.0 and later. 'NotifyFilters.LastWrite' is unsupported on: 'browser' all versions. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
    c:\Projects\pollus\src\Pollus.Engine\Assets\DevelopmentAssetsWatch.cs(38,9): warning CA1416: This call site is reachable on: 'browser' 1.0 and later. 'FileSystemWatcher.NotifyFilter' is unsupported on: 'browser' all versions. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
    c:\Projects\pollus\src\Pollus.Engine\Assets\DevelopmentAssetsWatch.cs(58,57): warning CA1416: This call site is reachable on: 'browser' 1.0 and later. 'FileSystemEventArgs.FullPath' is unsupported on: 'browser' all versions. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
    c:\Projects\pollus\src\Pollus.Engine\Assets\DevelopmentAssetsWatch.cs(64,26): warning CA1416: This call site is reachable on: 'browser' 1.0 and later. 'FileSystemEventArgs.FullPath' is unsupported on: 'browser' all versions. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
    c:\Projects\pollus\src\Pollus.Engine\Assets\DevelopmentAssetsWatch.cs(52,40): warning CA1416: This call site is reachable on: 'browser' 1.0 and later. 'FileSystemEventArgs.FullPath' is unsupported on: 'browser' all versions. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
    c:\Projects\pollus\src\Pollus.Engine\Assets\DevelopmentAssetsWatch.cs(62,31): warning CA1416: This call site is reachable on: 'browser' 1.0 and later. 'FileSystemEventArgs.FullPath' is unsupported on: 'browser' all versions. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
    c:\Projects\pollus\src\Pollus.Engine\Rendering\Sampler\SamplerBinding.cs(82,6): warning CA2255: The 'ModuleInitializer' attribute is only intended to be used in application code or advanced source generator scenarios (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca2255)
  Pollus.Tests net10.0 succeeded with 26 warning(s) (0.7s) → src\Pollus.Tests\bin\Debug\net10.0\Pollus.Tests.dll
    c:\Projects\pollus\src\Pollus.Tests\ECS\SystemParamTests.cs(31,23): warning CS8602: Dereference of a possibly null reference.
    c:\Projects\pollus\src\Pollus.Tests\ECS\SystemParamTests.cs(32,24): warning CS8602: Dereference of a possibly null reference.
    c:\Projects\pollus\src\Pollus.Tests\ECS\SystemParamTests.cs(33,23): warning CS8602: Dereference of a possibly null reference.
    c:\Projects\pollus\src\Pollus.Tests\ECS\SystemParamTests.cs(33,23): warning CS8602: Dereference of a possibly null reference.
    c:\Projects\pollus\src\Pollus.Tests\Scene\SceneAssetLoaderTests.cs(73,64): warning CS8602: Dereference of a possibly null reference.
    c:\Projects\pollus\src\Pollus.Tests\Scene\SceneReaderTests.cs(190,23): warning CS8604: Possible null reference argument for parameter 'collection' in 'EntityComponent Assert.Single<EntityComponent>(IEnumerable<EntityComponent> collection)'.
    c:\Projects\pollus\src\Pollus.Tests\Scene\SceneReaderTests.cs(192,20): warning CS8602: Dereference of a possibly null reference.
    c:\Projects\pollus\src\Pollus.Tests\Scene\SceneReaderTests.cs(223,23): warning CS8604: Possible null reference argument for parameter 'collection' in 'EntityComponent Assert.Single<EntityComponent>(IEnumerable<EntityComponent> collection)'.
    c:\Projects\pollus\src\Pollus.Tests\Scene\SceneReaderTests.cs(225,20): warning CS8602: Dereference of a possibly null reference.
    c:\Projects\pollus\src\Pollus.Tests\Scene\SceneReaderTests.cs(256,20): warning CS8602: Dereference of a possibly null reference.
    c:\Projects\pollus\src\Pollus.Tests\Scene\SceneReaderTests.cs(291,25): warning CS8602: Dereference of a possibly null reference.
    c:\Projects\pollus\src\Pollus.Tests\Scene\SceneReaderTests.cs(296,23): warning CS8604: Possible null reference argument for parameter 'collection' in 'SceneEntity Assert.Single<SceneEntity>(IEnumerable<SceneEntity> collection)'.
    c:\Projects\pollus\src\Pollus.Tests\Scene\SceneReaderTests.cs(297,36): warning CS8602: Dereference of a possibly null reference.
    c:\Projects\pollus\src\Pollus.Tests\Scene\SceneReaderTests.cs(332,20): warning CS8602: Dereference of a possibly null reference.
    c:\Projects\pollus\src\Pollus.Tests\Scene\SceneReaderTests.cs(380,23): warning CS8604: Possible null reference argument for parameter 'collection' in 'EntityComponent Assert.Single<EntityComponent>(IEnumerable<EntityComponent> collection)'.
    c:\Projects\pollus\src\Pollus.Tests\Scene\SceneReaderTests.cs(382,20): warning CS8602: Dereference of a possibly null reference.
    c:\Projects\pollus\src\Pollus.Tests\Scene\SceneReaderTests.cs(431,25): warning CS8602: Dereference of a possibly null reference.
    c:\Projects\pollus\src\Pollus.Tests\Scene\SceneReaderTests.cs(433,21): warning CS8602: Dereference of a possibly null reference.
    c:\Projects\pollus\src\Pollus.Tests\Scene\SceneReaderTests.cs(437,21): warning CS8602: Dereference of a possibly null reference.
    c:\Projects\pollus\src\Pollus.Tests\Scene\SceneReaderTests.cs(474,20): warning CS8602: Dereference of a possibly null reference.
    c:\Projects\pollus\src\Pollus.Tests\Scene\SceneReaderTests.cs(506,20): warning CS8602: Dereference of a possibly null reference.
    c:\Projects\pollus\src\Pollus.Tests\Scene\SceneReaderTests.cs(538,20): warning CS8602: Dereference of a possibly null reference.
    c:\Projects\pollus\src\Pollus.Tests\Scene\SceneReaderTests.cs(588,26): warning CS8602: Dereference of a possibly null reference.
    c:\Projects\pollus\src\Pollus.Tests\Scene\SceneWriterTests.cs(352,37): warning CS8604: Possible null reference argument for parameter 'collection' in 'KeyValuePair<string, JsonElement> Assert.Single<KeyValuePair<string, JsonElement>>(IEnumerable<KeyValuePair<string, JsonElement>> collection)'.
    c:\Projects\pollus\src\Pollus.Tests\Scene\SceneWriterTests.cs(353,37): warning CS8604: Possible null reference argument for parameter 'collection' in 'KeyValuePair<string, JsonElement> Assert.Single<KeyValuePair<string, JsonElement>>(IEnumerable<KeyValuePair<string, JsonElement>> collection)'.
    c:\Projects\pollus\src\Pollus.Tests\obj\Debug\net10.0\generated\Pollus.Generators\Pollus.Generators.ComponentGenerator\Pollus_Tests_Scene_SceneReaderTests_TestInnerComponent.Component.gen.cs(101,22): warning xUnit1013: Public method 'TestInnerComponentSerializer_ModuleInitializer' on test class 'SceneReaderTests' should be marked as a Fact. Reduce the visibility of the method, or add a Fact attribute to the method. (https://xunit.net/xunit.analyzers/rules/xUnit1013)
  Pollus.Examples.Application net10.0 succeeded with 1 warning(s) (1.1s) → examples\Application\bin\Debug\net10.0\Pollus.Examples.Application.dll
    c:\Projects\pollus\examples\Application\Examples\FrameGraphExample.cs(28,48): warning CS0649: Field 'FrameGraphExample.BlitPassData.MSAAColorAttachment' is never assigned to, and will always have its default value
  Pollus.Benchmark net10.0-browser succeeded (0.5s) → src\Pollus.Benchmark\bin\Debug\net10.0-browser\Pollus.Benchmark.dll
  Pollus.Examples.Application net10.0-browser succeeded with 1 warning(s) (0.5s) → examples\Application\bin\Debug\net10.0-browser\Pollus.Examples.Application.dll
    c:\Projects\pollus\examples\Application\Examples\FrameGraphExample.cs(28,48): warning CS0649: Field 'FrameGraphExample.BlitPassData.MSAAColorAttachment' is never assigned to, and will always have its default value
  Pollus.Examples.Desktop net10.0 succeeded (0.2s) → examples\Desktop\bin\Debug\net10.0\Pollus.Examples.Desktop.dll
  Pollus.Examples.Browser net10.0-browser browser-wasm failed with 1 error(s) and 2 warning(s) (2.2s) → examples\Browser\bin\Debug\net10.0-browser\browser-wasm\Pollus.Examples.Browser.dll
    C:\Program Files\dotnet\packs\Microsoft.NET.Runtime.WebAssembly.Sdk\10.0.1\Sdk\WasmApp.Common.targets(771,5): warning WASM0001:
      Could not get pinvoke, or callbacks for method 'Silk.NET.SDL.Sdl+_HGS::_ICH' because 'System.NotSupportedException: Unsupported parameter type in method 'Silk.NET.SDL.Sdl+_HGS._ICH'
         at PInvokeCollector.<CollectPInvokes>g__CollectPInvokesForMethod|6_0(MethodInfo method, <>c__DisplayClass6_0&)
         at PInvokeCollector.CollectPInvokes(List`1 pinvokes, List`1 callbacks, HashSet`1 signatures, Type type)'
    C:\Program Files\dotnet\packs\Microsoft.NET.Runtime.WebAssembly.Sdk\10.0.1\Sdk\WasmApp.Common.targets(771,5): warning WASM0001:
      Could not get pinvoke, or callbacks for method 'Silk.NET.SDL.Sdl+_HGS::_ICM' because 'System.NotSupportedException: Unsupported parameter type in method 'Silk.NET.SDL.Sdl+_HGS._ICM'
         at PInvokeCollector.<CollectPInvokes>g__CollectPInvokesForMethod|6_0(MethodInfo method, <>c__DisplayClass6_0&)
         at PInvokeCollector.CollectPInvokes(List`1 pinvokes, List`1 callbacks, HashSet`1 signatures, Type type)'
    C:\Program Files\dotnet\packs\Microsoft.NET.Runtime.WebAssembly.Sdk\10.0.1\Sdk\WasmApp.Common.targets(771,5): error The return type 'Silk.NET.SDL.GameControllerButtonBind' of pinvoke callback method 'Silk.NET.SDL.GameControllerButtonBind _WDE(Silk.NET.SDL.GameController*, Silk.NET.SDL.GameControllerAxis)' needs to be blittable.

Build failed with 1 error(s) and 69 warning(s) in 9.7s

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions