Hi Nils,
As per my understanding, you have unfolded awebsite project using your guidance package and you want that website project reference when you call some other recipe.
There are different approaches in which you can get the project reference.
1) If you are calling a recipe, which means that you will call that recipe on right click of some project in the solution or on the solution itself. If you are calling a recipe on right click of webproject then you can get the webproject argument by doing below:
a) CurrentProjectProvider Value Provider
<Argument Name="WebProject" Type="EnvDTE.Project, EnvDTE, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Required="false">
<Converter Type="Microsoft.Practices.RecipeFramework.Library.Converters.ProjectConverter, Microsoft.Practices.RecipeFramework.Library" />
<ValueProvider Type="Microsoft.Practices.RecipeFramework.Extensions.ValueProviders.VisualStudio.CurrentProjectProvider, Microsoft.Practices.RecipeFramework.Extensions" />
</Argument>
b) FirstSelectedProject Value Provider
<Argument Name=" WebProject " Type="EnvDTE.Project, EnvDTE, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<ValueProvider Type="Microsoft.Practices.RecipeFramework.Library.ValueProviders.FirstSelectedProject, Microsoft.Practices.RecipeFramework.Library" />
</Argument>
2) If you are not calling a recipe on right click of webproject then you can get the webproject argument by doing below:
a) You need to specify responsiblility to you website, using which you can identify your website project
b) Then you can get the website project basing on the responsibility.
<Argument Name="WebProject" Type="EnvDTE.Project, EnvDTE, Version=8.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" Required="false">
<Converter
Type="Microsoft.Practices.SoftwareFactories.ServiceFactory.Converters.ProjectWithResponsibilityConverter, Microsoft.Practices.SoftwareFactories.ServiceFactory"
ResponsibilityArgument="IsWebProject"/>
<ValueProvider Type="Microsoft.Practices.SoftwareFactories.ServiceFactory.ValueProviders.ProjectsWithResponsibilityProvider, Microsoft.Practices.SoftwareFactories.ServiceFactory"
ResponsibilityArgument="IsWebProject" />
Salaam/Namaste,
Noor