Skip to content
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 exception when saving AsmDef file template #2073

Merged
merged 2 commits into from
Apr 19, 2021

Conversation

citizenmatt
Copy link
Member

The AsmDef file template uses the MustBeInProjectWithUnityVersion scope point that is parameterised with a Unity version. The default value is 2017.3, because that's the first version that supported .asmdef files. Unfortunately, saving the template tries to save the scope point with the version serialised in 3 parts (major.minor.build) and if there are only 2 parts (2017.3) then it will throw an exception and the macros aren't saved.

This is a problem if the file template is modified to add a macro - the text content is saved, but the macro isn't. When evaluating, the macro placeholder is left in place. See RIDER-61376

@citizenmatt citizenmatt added this to the Rider 2021.1.2 milestone Apr 19, 2021
@citizenmatt citizenmatt self-assigned this Apr 19, 2021
@citizenmatt citizenmatt merged commit a1f003f into net211 Apr 19, 2021
@citizenmatt citizenmatt deleted the net211-mte-asmdef-macros branch April 19, 2021 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant