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

Use assembly definitions #161

Closed
lemcheyWhite opened this issue Sep 11, 2019 · 6 comments
Closed

Use assembly definitions #161

lemcheyWhite opened this issue Sep 11, 2019 · 6 comments

Comments

@lemcheyWhite
Copy link

Hi, It would be nice to have assembly definitions (https://docs.unity3d.com/Manual/ScriptCompilationAssemblyDefinitionFiles.html) for the main project (Dissonance) and for integration as well. Do you have any plans to implement it?

Thank you!

@lemcheyWhite
Copy link
Author

Found related issue #101, but I can't see asmdef in package preview\import window.

@martindevans
Copy link
Member

Dissonance doesn't ship with asmdefs at the moment as not everyone uses them in their project and they're a bit inconvenient in that case. Instead we've made sure that it's relatively easy to add asmdefs to Dissonance if you need them - check out the instructions on how to add asmdefs here.

@martindevans
Copy link
Member

I should mention that #101 (when we made this decision) was almost a year ago. We'll probably add asmdefs to the package in the near future, as more and more people are using them.

@lemcheyWhite
Copy link
Author

I've tried to use the instruction but looks like it doesn't work anymore as excepted
For example:
NotNullAttribute class is internal in Dissonance\Core\Jetbrains, but it's used in Dissonance\Editor classes and when I add assembly definitions, class NotNullAttribute is not accessible anymore from Editor assembly.

It's only one example, as a workaround I can change accessor modified to public in this case, but it requires a lot of work after upgrade to a new version.

@martindevans
Copy link
Member

I'll investigate this soon and (hopefully) it'll all be fixed up by the next release :)

@martindevans
Copy link
Member

With Dissonance 6.4.3 we've added assembly definitions to Dissonance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants