-
Notifications
You must be signed in to change notification settings - Fork 14
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
Some automatically generated interfaces cannot reference other automatically generated interfaces #73
Comments
Can you show your code structure?
Gesendet von Outlook für Android<https://aka.ms/AAb9ysg>
…________________________________
From: AustinGrey ***@***.***>
Sent: Wednesday, March 5, 2025 4:51:39 PM
To: codecentric/net_automatic_interface ***@***.***>
Cc: Subscribed ***@***.***>
Subject: [codecentric/net_automatic_interface] Some automatically generated interfaces cannot reference other automatically generated interfaces (Issue #73)
Thanks for the amazing package. Saves me so much time.
Some interfaces though I cannot use it on, as it causes other automatically generated interfaces to produce invalid code. Here you can see in a service (which has an autogenerated interface) that I'm trying to reference IProjectDeployment , which is also an autogenerated interface.
image.png (view on web)<https://github.com/user-attachments/assets/2270e565-5b1e-4604-b2f8-403181070c94>
If I inspect the interface of the service, you can see it didn't give a full path to the IProjectDeployment interface
image.png (view on web)<https://github.com/user-attachments/assets/dc2b825b-7944-4384-8c3e-505f104e1f1a>
If I try to manually specify the global::Path.To.NameSpace etc in front of it, that doesn't change anything. If I change the service method to reference the class ProjectDeployment directly, no issues. And if I manually create the interface in the same file as the class, also no issues.
Is it possible because it's used as a generic argument?
Tried on the latest 5.1.3
—
Reply to this email directly, view it on GitHub<#73>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABXKCSONKMTFEQ6ZP3MAYB32S4MQXAVCNFSM6AAAAABYMOCL3OVHI2DSMVQWIX3LMV43ASLTON2WKOZSHA4TONZRHA3DCNA>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
[AustinGrey]AustinGrey created an issue (codecentric/net_automatic_interface#73)<#73>
Thanks for the amazing package. Saves me so much time.
Some interfaces though I cannot use it on, as it causes other automatically generated interfaces to produce invalid code. Here you can see in a service (which has an autogenerated interface) that I'm trying to reference IProjectDeployment , which is also an autogenerated interface.
image.png (view on web)<https://github.com/user-attachments/assets/2270e565-5b1e-4604-b2f8-403181070c94>
If I inspect the interface of the service, you can see it didn't give a full path to the IProjectDeployment interface
image.png (view on web)<https://github.com/user-attachments/assets/dc2b825b-7944-4384-8c3e-505f104e1f1a>
If I try to manually specify the global::Path.To.NameSpace etc in front of it, that doesn't change anything. If I change the service method to reference the class ProjectDeployment directly, no issues. And if I manually create the interface in the same file as the class, also no issues.
Is it possible because it's used as a generic argument?
Tried on the latest 5.1.3
—
Reply to this email directly, view it on GitHub<#73>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ABXKCSONKMTFEQ6ZP3MAYB32S4MQXAVCNFSM6AAAAABYMOCL3OVHI2DSMVQWIX3LMV43ASLTON2WKOZSHA4TONZRHA3DCNA>.
You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for the amazing package. Saves me so much time.
Some interfaces though I cannot use it on, as it causes other automatically generated interfaces to produce invalid code. Here you can see in a service (which has an autogenerated interface) that I'm trying to reference IProjectDeployment , which is also an autogenerated interface.
If I inspect the interface of the service, you can see it didn't give a full path to the IProjectDeployment interface
If I try to manually specify the global::Path.To.NameSpace etc in front of it, that doesn't change anything. If I change the service method to reference the class ProjectDeployment directly, no issues. And if I manually create the interface in the same file as the class, also no issues.
Is it possible because it's used as a generic argument?
Tried on the latest 5.1.3
The text was updated successfully, but these errors were encountered: