Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > Adding a Custom Reference to Infrastructure.Layout and Infrastruction.Shell
 

Adding a Custom Reference to Infrastructure.Layout and Infrastruction.Shell

Hello
I am using the fixed version of the Smart ClientFactoryPackage Guidance for VS2008 and SP1, as fixed by Mariano Converti, and in its default state is working fine.

I am trying to modify it for my own purposes, and I need to add a Reference to m,y own Custom DLL in each of the four Class Libraries, Infrastructure.Interface etc.

My modifcations to Interface, Library and Module work fine. But I am unable to get the code to work for the Shell and the Layout. I guess this is because the package deal with these Class Libraries slightly differently.

The code that works is

<ActionName="AddMyCustomReferenceToInterface"Type="AddAssemblyReferenceAction">
<InputName="AssemblyFilePath"ActionOutput="MyCustomExpressionAction.ReturnValue"/>
<InputName="ReferringProject"RecipeArgument="InterfaceProject"/>
</Action>

The code that does not is

<ActionName="AddMyCustomReferenceToShell"Type="AddAssemblyReferenceAction">
<InputName="AssemblyFilePath"ActionOutput="CABMyCustomExpressionAction.ReturnValue"/>
<InputName="ReferringProject"RecipeArgument="ShellProject"/>
</Action>

Because "ShellProject" does not return anything, thus

<ArgumentName="ShellProject"Type="EnvDTE.Project,EnvDTE,Version=8.0.0.0,Culture=neutral,PublicKeyToken=b03f5f7f11d50a3a"Required="false">
<ValueProviderType="ProjectByNameProvider"Name="Infrastructure.Shell"/>
</Argument>

Clearly, Name="Infrastructure.Shell", is wrong, and I've tried most things I can think of.
As I said, I guess that the Shell is being generated a different way.

Clearly the shell is already constructed, as the generation is nearly complete.
Please can someone advise how I can get this working.

Or is it that I will just have to use the same method asCreateShellProjectAction.cs is using for CABWPFAssembly

Many thanks
John
jrad  Saturday, March 07, 2009 11:52 PM
Hi Jhon,

There you have two pieces, one is the AddMyCustomReferenceToShell action which is not working, but I don't know
what's the exception that you're getting. The other one is the ShellProject argument which has a valueProvider
that seems that is not working. Have you verified the Type? Did you tried use a full qualified type name?

Could you post the errors that you're getting?

thanks.

jose.

Jose Escrich - weblogs.asp.net/jescrich
  • Proposed As Answer byJose Escrich Monday, March 09, 2009 5:50 PM
  •  
Jose Escrich  Monday, March 09, 2009 5:50 PM

You can use google to search for other answers

Custom Search

More Threads

• Exception while using the 'Add Event Publication' Recepie
• Trying to better understand the CreateProjectAction?
• How to incorporate data access package into custom package
• Guidance Package Manager not enabled in VS 2008
• New Editor or Not?
• Getting Started
• Is it possible to change table when using VSTS DataBindings?
• guidance package with custom project extension
• Flip Access Modifier of a BizTalk Orchestration (Please help)
• HoL Registration failed