-
-
Notifications
You must be signed in to change notification settings - Fork 166
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
Allow changing the name or namespace of ThisAssembly class #555
Comments
If projects can change the name or namespace of |
This does not produce an error. It is a warning:
You might see this as an error if you have This is the recommended mitigation when you're using InternalsVisibleTo, so I'm closing this issue as Won't Fix. |
Hi @AArnott, sorry to comment on a closed issue but we're also hitting this issue in our CI builds but with error Would you consider a contribution to the project that enables a way to change either the name or the namespace for the |
@DavidObando If you're getting CS0433 that suggests the failing project does not generate its own CS0436 would happen if you have your own and access to another project's class. This is suppressible as discussed above. This is all educated guessing. Am I on track though? |
@AArnott Considering the generator already has code to emit the namespace (for F#), would it be reasonable to introduce a property that could indicate to NBGV that the user always wants |
I don't think we'd add a boolean switch to forcibly link the namespace of |
@AArnott Given the above, can we reopen this? (I'll try to find time to do a PR for this eventually, but in the meantime, someone might come across this and feel like contributing the enhancement.) |
Sure. But if no one contributes a fix in a few months, I may re-close it. |
We encountered the following scenario where `ThisAssembly caused a build break.
ThisAssembly
generated and also[InternalsVisibleTo]
for project BThisAssembly
. When it tries to use it, build fails because of ambiguous ThisAssembly class.The solution to this issue may be either naming ThisAssembly class differently, or placing it inside a namespace (root namespace of the project, perhaps). For backward compatibility, this should be opt-in.
The text was updated successfully, but these errors were encountered: