hadashiA / VContainer

The extra fast, minimum code size, GC-free DI (Dependency Injection) library running on Unity Game Engine.
https://vcontainer.hadashikick.jp
MIT License
1.89k stars 165 forks source link

Throwing DC0061 error when install entities package #494

Closed chikacc closed 1 year ago

chikacc commented 1 year ago

Description

  1. Create unity project and add VContainer package
  2. Install Entities 1.0.0-pre.65

Expected Behaviour

All clean, everything is happy.

Current Behaviour

Unity console shown as follows:

Assets\VContainer\Runtime\Annotations\IAsyncStartable.cs(13,1): error DC0061: Assembly VContainer relies on Unity.Entities which uses the Unity.Collections AllocatorHandle type but does not have a reference to Unity.Collections.  Please add an assembly reference to `Unity.Collections` in the asmdef for VContainer.

Environment

nicloay commented 1 year ago

I have the same issue. thanks for the PR. hope it will be merged soon. for now, I use git reference in the manifest.json with this fix.