-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(163): Update zenject.asmdef to specify all default values #164
base: master
Are you sure you want to change the base?
fix(163): Update zenject.asmdef to specify all default values #164
Conversation
8f9dafb
to
817e4ec
Compare
817e4ec
to
ca06f46
Compare
Reset project to 2019.3.0 |
... And by resetting the project version I've lost the actual fix. |
…ef which are required if Zenject.asmdef is not using auto reference (+2 squashed commit) [86a08a93] fix: Re-add Zenject.asmdef and rename to "Z"enject as the assembly should match the name for case sensitive systems. [ca06f46] fix: Reset project version to 2019.3.0f1 and remove all related changes (+1 squashed commits) [817e4ec] fix(build): Replace zenject.ref.asmref with Zenject.SampledBuilder.Editor.asmdef which is only included in the editor to avoid usage of UnityEditor outside of the editor (+1 squashed commits) [8f9dafb] fix(.gitignore): Ignore UnityProject/UserSettings/* which is a new user specific folder, which previously was stored in /Library (see https://forum.unity.com/threads/whats-the-usersettings-directory.754436/#post-5029937) fix(packages-lock.json): Should be checked in, but wasn't or did not exist in the old unity version (+1 squashed commits) [1f431e3] fix(161): Update zenject.asmdef to specify all default values
ca06f46
to
bd8ef11
Compare
This is a known Unity issue. Simply put: they messed up the assembly definitions starting with 2019.1 and changed it's behavior with every update. 2020 is for Unity a 'FIX' year. They changed their release cycle to two releases each year. So hopefully they have this right with 2020.2/LTS. |
Reapplied the original changes in 2020.1.2f1 but pushed without the project version upgrade to avoid failing to build. Added .asmdef for SampleGame1 and SampleGame2 which are required if Zenject is not set to auto reference, which no asmdef ever should be that is not required to be referenced everywhere. @Mathijs-Bakker thanks. Should this PR be declined and we wait for the Unity fix instead? |
The file Regarding the Unity-behavior regarding the asmdefs: I didn't do testing specifically to test this behavior, but based on my experience with the Unity serialization, I don't think this should negatively affect projects using an older version of Unity. I might test out what Untiy 2019 does if it's presented with the altered asmdef. |
Pull request checklist
Please check if your PR fulfills the following requirements:
Pull request type
Please check the type of change your PR introduces:
Issue Number
Issue Number: #163
What is the current behavior?
What is the new behavior?
zenject.asmdef is recognized by unity inspector and the project therefore can be referenced and used.
Does this introduce a breaking change?
Other information
On which Unity version has this been tested?
Scripting backend: