none
build error when building project template project

    Question

  • getting a build error when building a project template project:

    Metadata file 'C:\oneDrive\c#\2016\MyProjectTemplate\MyProjectTemplate\bin\Debug\MyProjectTemplate.dll' could not be found

    I am following the steps in the How to: Use Wizards with Project Templates article. 
    https://msdn.microsoft.com/en-us/library/ms185301.aspx?f=255&MSPPError=-2147217396

    The error occurs after step 3 of the "Create a Custom Template Wizard" section.  Step 3 is where you add the assembly as an asset to the VSIX project.  Step 2 was where I set "include assembly in vsix container" to true.

    This step 3 is a bit confusing in that the article has you create two projects in the solution. MyProjectTemplate and MyProjectWizard. But then step 3 the instructions reference the "MyTemplateWizard" project.

    thanks,


    Friday, May 20, 2016 8:08 PM

Answers

  • on step 3 of creating a custom template wizard you are adding the assembly of the VSIX project as an asset in the vsixmanifest file.

    the reason for the build error at that point is because step 4 of "connect the wizard to the custom template" has not been run yet.  You have to set "copy build output to output directory to true in the F4 properties of the VSIX project.

    • Marked as answer by Steve Richter Saturday, May 21, 2016 9:04 PM
    Saturday, May 21, 2016 9:04 PM

All replies

  • on step 3 of creating a custom template wizard you are adding the assembly of the VSIX project as an asset in the vsixmanifest file.

    the reason for the build error at that point is because step 4 of "connect the wizard to the custom template" has not been run yet.  You have to set "copy build output to output directory to true in the F4 properties of the VSIX project.

    • Marked as answer by Steve Richter Saturday, May 21, 2016 9:04 PM
    Saturday, May 21, 2016 9:04 PM
  • Hi Steve Richter,

    Glad to know that you have resolved this issue, thanks for sharing your solution here.

    Have a nice day,

    Jack


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    Monday, May 23, 2016 3:21 AM
    Moderator