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 as
CreateShellProjectAction.cs is using for
CABWPFAssembly
Many thanks
John