I have a solution template with two projects. One is a business layer class library, and the other is a web project. I'm trying to add the reference from the business layer to the web project, but keep getting a null reference error when attempting to retrieve the project. The code for it looks like this:
Code Block
<Arguments>
<Argument Name="WebApplicationName" Required="true">
<Converter Type="Microsoft.Practices.RecipeFramework.Library.Converters.CodeIdentifierStringConverter, Microsoft.Practices.RecipeFramework.Library" />
</Argument>
<Argument Name="WebProjectName">
<ValueProvider Type="Evaluator" Expression="$(WebApplicationName).Web">
<MonitorArgument Name="WebApplicationName" />
</ValueProvider>
</Argument>
<Argument Name="PresenterProjectName">
<ValueProvider Type="Evaluator" Expression="$(WebApplicationName).Presenter">
<MonitorArgument Name="WebApplicationName" />
</ValueProvider>
</Argument>
</Arguments>
...
Code Block
<Actions>
<Action Name="GetWebProject" Type="Microsoft.Practices.RecipeFramework.Library.Actions.GetProjectAction, Microsoft.Practices.RecipeFramework.Library">
<Input Name="ProjectName" RecipeArgument="WebProjectName" />
<Output Name="Project" />
</Action>
<Action Name="GetPresenterProject" Type="Microsoft.Practices.RecipeFramework.Library.Actions.GetProjectAction, Microsoft.Practices.RecipeFramework.Library">
<Input Name="ProjectName" RecipeArgument="PresenterProjectName" />
<Output Name="Project" />
</Action>
<Action Name="AddProjectReference" Type="Microsoft.Practices.RecipeFramework.Library.Solution.Actions.AddProjectReferenceAction, Microsoft.Practices.RecipeFramework.Library">
<Input Name="ReferringProject" ActionOutput="GetWebProject.Project" />
<Input Name="ReferencedProject" ActionOutput="GetPresenterProject.Project" />
</Action>
</Actions>
Anyone have any clue as to why the project would come back as null when trying to add a reference? Thanks.