Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

MPF DependentUpon using Isolated Shell.

$
0
0

I, for the love of god, can't figure out how to add "multi-file" template to the MPF-based project I am building. Needless to say, I've spent about 20 hours on this, and I am nowhere close to solution. I've read every single thread on this forum.

I am using MPF11/12(error on both machines), and I deploy this .vsTemplate with my isolated shell:

<VSTemplate Type="Item" Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005"><TemplateData><Name>MyEvent</Name><Description>Event descriptor WINRAR</Description><ProjectType>FAPProject</ProjectType><DefaultName>MyEvent</DefaultName><NumberOfParentCategoriesToRollUp>1</NumberOfParentCategoriesToRollUp><TemplateGroupID>Test</TemplateGroupID></TemplateData><TemplateContent><References /><ProjectItem TargetFileName="$fileinputname$.cs" ReplaceParameters="true">Example.event</ProjectItem><ProjectItem TargetFileName="$fileinputname$.cs\$fileinputname$.MyPartial.cs" 
                 ReplaceParameters="true">Example.eventSettings</ProjectItem></TemplateContent></VSTemplate>

Everything works with only one file, but as soon I want to create multi-file template, bam, error. 

I am getting error in ProjectNode.cs file at this line:

int wizResultAsInt;try
{    Array contextParamsAsArray = contextParams;
    // line that causes the trouble    int result = ivsExtensibility.RunWizardFile(wizardToRun, (int)dlgOwner, ref contextParamsAsArray, out wizResultAsInt);    if (!ErrorHandler.Succeeded(result) && result != VSConstants.OLE_E_PROMPTSAVECANCELLED)    {        ErrorHandler.ThrowOnFailure(result);    }
}


Error: Object null reference error. It doesn't say anything else. Note: the error is generated on run-time when I try to add the "multi-file" item from the wizard.

Can anyone either confirm that there is no such functionality or I am doing something wrong? 
http://social.msdn.microsoft.com/Forums/vstudio/en-US/b4b44cca-530c-450d-b9ee-d656964049f5/adding-dependentupon-items-in-an-item-template-in-an-mpf-based-project-package?forum=vsx From this thread, it seems that it should be possible. I have also verified that my template works when using IronPython(it's using MPF, but it's integrated shell I think.).

Thanks.


C#/C++ | WPF/DirectShow/OpenGL/Winapi/



Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>