-
Notifications
You must be signed in to change notification settings - Fork 21
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
Suggestion #18
Comments
Sorry I'm not sure I follow. Can you give a complete example? Like assembly A uses the task, depends on assembly B, etc. |
I try to use this to create our own VS project system, based on the DotNet/ProjectSystem code. Btw: many of the Visual Studio Project System assemblies contain internal (compilergenerated) attributes, such as System.Diagnostics.CodeAnalysis.NotNullAttribute. |
Re As for the use case you mentioned, if I understand correctly IVT won't help here. IACTG uses Cecil to read the assembly metadata. Can you provide a stack trace for the error? And the .csproj |
I think the suggestion is to offer an alternative way of generating the reference assemblies for intellisense: you often can just add an InternalsVisibleToAttribute to the referenced assembly instead of modifying the visibility of everything (which you still need to inject via Cecil) - but for runtime you also need the IgnoresAccessChecksToAttribute because you can't deploy modified assemblies with IVT injected (when they are signed the signature won't match) The suggestion being that this approach may be easier to implement, though I don't know if at this point it is worth to switch, considering there already is an implementation of changing visibility modifiers. |
When an assembly that we depend on has many other dependencies, then loading that assembly by this task may fail.
Wouldn't it be easier to add a new global InternalsVisibleTo attribute to the generated assembly that contains the name of our assembly?
Something like:
This should generate
The text was updated successfully, but these errors were encountered: