-
Notifications
You must be signed in to change notification settings - Fork 461
fix: Fixed compile failure when compiled against com.unity.nuget.mono-cecil >= 1.11.4 #1920
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
Changes from 1 commit
931cad7
bd4a258
d26eeae
d2522e5
5622643
0232970
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,5 +15,12 @@ | |
| "Mono.Cecil.Pdb.dll", | ||
| "Mono.Cecil.Rocks.dll" | ||
| ], | ||
| "autoReferenced": false | ||
| } | ||
| "autoReferenced": false, | ||
| "versionDefines": [ | ||
| { | ||
| "name": "Unity", | ||
| "expression": "(0,2022.2.0a11)", | ||
| "define": "UNITY_CECIL_CONSTRAINTS_ARE_TYPE_REFERENCES" | ||
| } | ||
| ] | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I checked our internal thread on Slack and looks like the update is coming from
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is there a reason why we target a package from an alpha release in the first place? I would think it'd be safest to use whatever was in the last stable version (21 LTS), and then after the next final stable version comes out, we upgrade to that (and in this case implement the if/else) |
||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Curious why use the indirect directive like this instead of just doing
UNITY_2022_2_OR_NEWER?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because the breaking change in Unity happened in a patch version. Unity 2022.2.0a11 needs one implementation, Unity 2022.2.0a12 needs another. I'm a little miffed about that.
UNITY_2022_2_OR_NEWERwas what I wanted to use, but they threw versioning protocol to the wind and broke a patch version so that doesn't work...There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, interesting. Why are we bothering having support for different alpha versions? Shouldn't we just expect people to use the latest alpha? Or at the very least this should be cleaned up after alpha versions are irrelevant.
Maybe you guys are already thinking of this, just wanted to call it out. Thanks for explaining!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Honestly I have no idea what's publicly available and what isn't. This just feels like the safest way to do it to me.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
alpha versions are not public, betas are.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so, we can get away with
UNITY_2022_2_OR_NEWERor the next whatever 2022 LTS, we don't need to cover >0.a12 here.