I'm using Visual Studio 2010 to create an add-in. Using the wizard, I went through the dialog and selected fairly standard options (target 4.0, load in startup). The project was then generated, but when I try to debug the add-in, a new instance of VS starts up, and then an exception is thrown:
"ArgumentException crossed a native/managed boundary"
"Cannot find the requested resource"
The StackTrace is sparse:
at Microsoft.VisualStudio.CommonIDE.ResourceLoader.FindResource[T](String resourceName, Int32 lcid, Func`2 fnConvert)
at Microsoft.VisualStudio.CommonIDE.ResourceLoader.GetBlob(String resourceName, Int32 lcid, Byte[]& bytes, Int32& count)
Even though I'm attached, this doesn't seem to occur in any of the cs code that exists in the new project.
Any ideas?
Edit the .AddIn file found in your documents folder, somewhere like: C:\Users\USERNAME\Documents\Visual Studio 2010\Addins\
Remove the path information in AddIn/Assembly
Close Visual Studio (it might ask you to disable the new add in - that is ok)
Copy your AddIn's dll from your project folder into this add-in folder.
Now you can at least run your add-in - but debugging straight into it using F5 still doesn't work.
– soslo Jan 17 '11 at 21:55