-
Notifications
You must be signed in to change notification settings - Fork 635
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
public enum with [IsVisibleInDynamoLibrary(false)] still visible in library #8789
Comments
[IsVisibleInDynamoLibrary(false)]
still visible in library
well, this is not a class, but an enum, but I believe @ramramps and I touched enums here: I don't see anything obvious that would cause a regression though. @ksobon does this attribute work for you on classes? - can you hide this enum by making it internal? @alfarok do we know if this attribute is working? |
I mean yeah, that's an |
I'm not sure the enum is hidden by the [IsVisibleInDynamoLibrary(false)] or the [obsolete] attribute. I just want to be specific because enums and classes are imported differently into the VM. Looks to me like a regression. |
I can't make it internal because it's shared across projects. It's a utility Enum used in a couple of places. I was able to use a different attribute:
It would still make sense to look at re-enabling the original implementation. |
yes, lets keep this open. |
Hi @alvpickmans you can't suppress jObject as you're returning it directly, return an object or some other base class instead. |
oh I see, you want to hide JsonOption - can you share your code where this in defined or where you reference it. |
@alvpickmans - I see it now in your source, can you try making that class internal? You can cheat and give your other assemblies access to internal classes with: inside the assembly info cs |
Thanks @mjkkirschner for the tip, I will try it out and get back to you. |
I've tried this and it compiles ok without errors, but once a node needs the internal class Dynamo simply fails to find the method. |
This regression is being tracked with QNTM-4094. The issue came up in the Dynamo Samples and was also circumvented by suppressing the import into the VM but more investigation is required for a permanent solution. |
Tracked internally as QNTM-4094 |
This is fixed in: #9242. Closing. Let us know if you still experience issues. |
I thought that adding this attribute to a public class would hide it from the library:
Yet, it's still showing up. That was not an issue in previous version.
The text was updated successfully, but these errors were encountered: