when calling _Solution.AddFromFile.., one exception is thrown. RRS feed

  • Question

  • Hi all,

    Under vs2015 ctp6, if I use _Solution.create to create one solution file, then use _Solution.AddFromFile to add one existing project file, but one exception is thrown.

    The exception is as below:


    System.Runtime.InteropServices.COMException:The template specified cannot be found.Please check that the full path is correct..

    I have done a check, I found when call _Solution.create, the solution file was not created in the directory which I wanted.

    So is it the issue which exists in ctp6? Any work around for this?

    Thanks in advance.

    Monday, March 23, 2015 6:41 AM


  • See if this helps:

    HOWTO: Create a solution from a Visual Studio add-in.

    If the problem doesn't happen in VS 2013, or didn't happen in previous CTPs of VS 2015 then open a bug report at MS Connect:


    * My new blog about VSX: http://www.visualstudioextensibility.com * Twitter: https://twitter.com/VSExtensibility * MZ-Tools productivity extension for Visual Studio: http://www.mztools.com.

    • Marked as answer by Caillen Monday, March 30, 2015 8:28 AM
    Monday, March 23, 2015 9:30 AM