-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Add support for .asmref files #1406
Comments
As requested in #1398 (comment), this is a sample asmref file. For now, they are incredibly simple: There file content is the following
|
I would really love to see .asmref support happening in Rider. Unity.Mathematics library is full of partial classes that makes it really easy to be extensible just by putting an Assembly Definition Reference inside an external folder. Seems like Unity is happy with that approach but Rider goes crazy with asmref being around and does not even see the symbols in original asmdef for some reason. For starters, at least just a basic support to prevent these errors would be great. Here is a simple example project: |
Oh? I thought it worked fine with asmrefs, just didn't have proper support to create them, but it seems it's not working properly when being used with packages? I use them extensively on my current project, and never noticed anything strange in Rider. But, I only use them for "Editor" folders. Never used them to extend a package. That's super neat and I hadn't thought about it at all. (thanks!) |
Or maybe Rider breaks when used with partial classes in particular? Did you have trouble with using an asmref but not using a partial class? Just doing something with something "internal" on a package, for example. I'll see if I can make time to do a quick test on this. |
@CanBaycay Sorry for delay. I have just downloaded your example, open with Unity 2019.3.0f5 with Rider package 1.2.1 and Rider 2019.3.3 and it is all green, except slow SWEA (https://youtrack.jetbrains.com/issue/RIDER-22945). You may try to build your solution in Rider, and if it builds, but Rider is still showing errors - then try the last resort |
@van800 I have the same issue with both my project and sample project mentioned above. Rider just does not see the original assembly. Anyway, Unity3d can compile this code without errors. Tried both build the solution and "invalidate caches and restart" Didn't help. Unity3d version: |
@diomich try to update Rider package to latest (3.0.7) |
I'm going to reopen this. We don't need to do anything to support projects that contain |
We should also look at what happens with non-user code in projects generated from |
Closing this. #2252 adds support for |
Unity 2019.2 added
.asmref
files - Assembly Definition References Files.From the release notes to 2019.2.0a6:
There doesn't seem to be much documentation:
Add support, e.g. syntax highlighting, JSON schema, and whatever else is needed. Also look at how this affects showing the project name in the Unity Explorer tree view (#1398)
The text was updated successfully, but these errors were encountered: