none
VS 2010 fails to create visual studio add-in project

    Question

  • I'm trying to create a Visual Studio 2010 add-in, but when I'm finished with the wizard I get the error message

    "An error occurred, and the wizard could not generate the project. Verify that the programming language is properly installed"

    I've tried to install MSXML 6.0 as suggested here http://msmvps.com/blogs/carlosq/archive/2009/10/20/vs-2010-beta-2-dependency-on-msxml-6-0-to-create-add-ins-or-parse-addin-files.aspx

    But it doesn't help and now I'm stuck. (I've also checked Windows Update for additional updates)

    Even though I get the error message, project files are created and I can open up the project. However, the connect.cs class is filled with placeholders like <%=SAFEOBJNAME%> etc. I suppose this is placeholders from the project template.

    Also, in the References section there is a "Microsoft.CSharp" item with a yellow alert triangle. I've found that Microsoft.CSharp is not an assembly, just a namespace within the System.dll assembly. So why would the project try to reference this?

    The project is also lacking references to the assemblies extensibility.dll, envdte.dll and envdte80.dll (that includes namespaces referenced in the connect.cs file) (but I'm guessing this is due to the project creation for some reason being interrupted with the above error)

    I'm running on Windows 7 64-bit.

    Any ideas on this are greatly appreciated.

    Saturday, May 08, 2010 6:03 AM

Answers

  • I tried again today and now it seems to be working. Guess I'll have to read up on addin-creation once more... ;-)

    /Dan

    • Marked as answer by deap82 Friday, August 06, 2010 4:13 PM
    Friday, August 06, 2010 4:13 PM

All replies

  • Hi,

    It is hard to diagnose your issue, what’s your version of Visual studio 2010, is it beta2 or RTM?

    What’s your version of OS?

    Did you use ProcessMonitor to see what is the problem?

    I use VS2010 RTM, but I did not meet this issue.

    For Microsoft.CSharp, this is the new feature of VS2010, this is not the problem.

    Thanks

    Chao

    Wednesday, May 12, 2010 3:04 PM
    Moderator
  • I'm using the final release of vs2010, no beta.

    I use Windows 7, 64 bit

    I did download ProcessMonitor, but I've never used it before and didn't find it very intuitive... ;-) I.e. I really don't know what to look for or how to interpret the output of it...

    Sunday, May 16, 2010 7:35 AM
  • deap82,

     are you by any chance trying to create the add-in project inside a solution folder. I'm currently using Windows 7 x64 with Visual Studio 2010 and I get that error message when creating an add-in inside a solution folder, but if I create it on the solution root no error occurs.

    • Proposed as answer by João Angelo Saturday, June 12, 2010 10:59 AM
    Saturday, June 12, 2010 10:58 AM
  • I tried again today and now it seems to be working. Guess I'll have to read up on addin-creation once more... ;-)

    /Dan

    • Marked as answer by deap82 Friday, August 06, 2010 4:13 PM
    Friday, August 06, 2010 4:13 PM
  • How to create add-in ? please tel.

    in my Visual Studio 2010, Extensibility option

    there are 2options:

    1.Visual Studio Add-in

    2. Shared Add-in

    Sunday, May 20, 2012 5:22 PM
  • See:

    How to ask questions to increase your chances of an answer
    http://social.msdn.microsoft.com/Forums/en-US/vsx/thread/9307ca0b-d152-4c31-85f5-05b6166d7410

    and:

    VSX FAQ
    http://social.msdn.microsoft.com/Forums/en-US/vsx/thread/0be62d3d-84b2-4e17-a306-bcc460621192

    That said, the answer for Visual Studio add-ins is #1 and for Office add-ins is #2.


    MZ-Tools: Productivity add-ins for Visual Studio: http://www.mztools.com. My blog about developing add-ins: http://msmvps.com/blogs/carlosq/

    Monday, May 21, 2012 2:51 PM
    Moderator