-
Notifications
You must be signed in to change notification settings - Fork 295
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
Microsoft.Vbe.Interop missing #460
Comments
So... the solution is to package every possible version of the DLL? |
I think there are some less drastic options (but I'll admit this is not my area of expertise). |
Option A: Embed Interop Types |
Hmm.... Embedding interop types might undo our ability to package the unit testing as a separate dll. Which, is okay I suppose. |
Option B: Use NetOffice instead of the Office Primary Interop Assemblies |
We've discussed NetOffice before. There wasn't a need at the time. @retailcoder perhaps we should revisit. Although, I'd still like to know why RD isn't finding the extensiblity library. Shouldn't it be installed with every office installation? |
This isn't an ordinary interop assembly here, it's the VBE Extensibility library. Does NetOffice package that? |
That's a good question. I don't know off-hand. |
Option C: If possible, use an older version of the 'Microsoft.Vbe.Interop' library Depending on what functionality you are relying on, this is a possibility. I don't know what this would require as far as Rubberduck developers having this older copy. This may or may not be practical. |
Option D: Tell me (and all the other laggards) to get a recent version of Office already ;) This is not an unreasonable approach by any means. |
LOL! 😆 I was getting there @mwolfe02! haha.. seriously, I think the first thing to check is whether we're embedding the interop types for that assembly. |
I can confirm that we're not. I was just looking at it the other day when I was splitting RD into multiple projects. Maybe we should be. FYI: [NetOffice has a VBIDE library](http://netoffice.codeplex.com/SourceControl/latest#Assemblies/Any CPU/VBIDEApi.xml) and has an MIT license. |
@mwolfe02 I just noticed why it used to work for you, but doesn't now. The machine that I built the installer on has Office 2007 installed on it. @retailcoder built that last installer on his machine, which has a newer version installed than my dev machine. |
@ckuhn203 eh, tag 1.3.0.1 was created by you, remember 😉 |
I absolve myself of all responsibility for the 1.3 release. 😸 |
The VBIDE dependency wasn't embedding its interop types in all projects (only the |
Embedding all interop types causes build issues. @mwolfe02 is not embedding interop types and turning "copy local" to true an option? Having |
@retailcoder we can always just fold the unit testing back into the main project. That should resolve the build issue you saw. |
Per this conversation, the idea was to make it so that the references required for unit testing would stop breaking on each update, so folding it back into the Rubberduck.dll might not be a great idea. Idk. |
Added this to 1.4. I think we have no choice but to deal with this before the next release. |
Now that the unit tests are back in Rubberduck.dll, is this issue also fixed? |
Office Core and VBIDE don't seem to have an issue with embedded interop types anymore, so I'm closing this issue. |
So, is this issue resolved? Because I have exactly the same setup as the OP and I am getting exactly the same messages ("Rubberduck could not be loaded" inside VBE and the Interop missing stuff when trying to run regasm from the command prompt). |
@retailcoder have you seen @nemphys' reply here? I was just wondering if anyone's looked at this recently. |
@ckuhn203 this issue predates the switching over to NetOffice PIA's, no? |
Yeah, which we never actually did because the NetOffice PIAs broke the office interface contract. |
I just changed my development user account from "Standard user" to "Administrator" and re-installed Rubberduck. The install seemed to go OK, but the first time I tried to open the VBA IDE, I got the following error message:
I did some digging and it looks like the problem originated with the
RegAsm.exe /codebase
command. There was no error during installation, so I tried running the RegAsm command directly from a command window. Here are the results:The key part is the following:
My environment:
The text was updated successfully, but these errors were encountered: