Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > Problem with adding references to web application while creating guidance package
 

Problem with adding references to web application while creating guidance package

Hi,

I created a guidance package with 4 class libraries and a web application. I was able to add project references for the class libraries [i;e when i open a test solution of my guidance package, i was able to see all the class libraries having the required project dlls ]

However In my web application, i have added some references into bin, created a template and added it in my Guidance package.It was registered successful but when i open a test solution i was getting that the dll was not able to load you want to continue loading application??

Cananyone please help me out in this??

Regards,

Syamala.

Syamala_rsv  Wednesday, May 07, 2008 5:51 AM

Are you dealing with a Web Application project or a Web Site one?

Can you post how your web application .vstemplate and .csproj looks like?

vga  Friday, May 09, 2008 8:13 AM

Below is my web application .vstemplate

<VSTemplate Version="2.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" Type="Project">

<TemplateData>

<Name>SOManagerUICode</Name>

<Description>&lt;No description available&gt;</Description>

<ProjectType>Web</ProjectType>

<ProjectSubType>CSharp</ProjectSubType>

<SortOrder>1000</SortOrder>

<CreateNewFolder>true</CreateNewFolder>

<DefaultName>SOManagerUICode</DefaultName>

<ProvideDefaultName>true</ProvideDefaultName>

<LocationField>Enabled</LocationField>

<EnableLocationBrowseButton>true</EnableLocationBrowseButton>

<Icon>__TemplateIcon.ico</Icon>

</TemplateData>

<TemplateContent>

<Project TargetFileName="ProjectName.webproj" File="ProjectName.webproj" ReplaceParameters="true">

<Folder Name="App_Code" TargetFolderName="App_Code">

<ProjectItem ReplaceParameters="true" TargetFileName="CustomLogger.cs">CustomLogger.cs</ProjectItem>

</Folder>

<Folder Name="App_Data" TargetFolderName="App_Data" />

<Folder Name="App_GlobalResources" TargetFolderName="App_GlobalResources" />

<Folder Name="App_Themes" TargetFolderName="App_Themes">

<Folder Name="MSN_Blue" TargetFolderName="MSN_Blue">

<Folder Name="Images" TargetFolderName="Images" />

</Folder>

</Folder>

<Folder Name="bin" TargetFolderName="bin" />

<ProjectItem ReplaceParameters="true" TargetFileName="Default.aspx">Default.aspx</ProjectItem>

<ProjectItem ReplaceParameters="true" TargetFileName="Default.aspx.cs">Default.aspx.cs</ProjectItem>

<ProjectItem ReplaceParameters="true" TargetFileName="Default.master">Default.master</ProjectItem>

<ProjectItem ReplaceParameters="true" TargetFileName="Default.master.cs">Default.master.cs</ProjectItem>

<ProjectItem ReplaceParameters="true" TargetFileName="Web.config">Web.config</ProjectItem>

</Project>

</TemplateContent>

<WizardExtension>

<Assembly>Microsoft.Practices.RecipeFramework.VisualStudio, Version=1.0.51206.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</Assembly>

<FullClassName>Microsoft.Practices.RecipeFramework.VisualStudio.Templates.UnfoldTemplate</FullClassName>

</WizardExtension>

<WizardData>

<Template xmlns="http://schemas.microsoft.com/pag/gax-template" SchemaVersion="1.0">

<References>

<RecipeReference Name="AddMethodsInExistingClass" Target="/" />

</References>

</Template>

</WizardData>

</VSTemplate>

And i dont have .csproj here, i'm having ProjectName.webproj which contains nothing.

Thanks

Syamala.

Syamala_rsv  Monday, May 12, 2008 8:57 AM

Hi Syamala,

By looking at your vstemplate you can notice that the 'bin' folder is empty:

<Folder Name="bin" TargetFolderName="bin" />

if you want to copy files into bin at the time your project is unfolded you will need to add them to your .vstemplate and make them available (they should be copied to your package output folder) so they can be copied by VS when unfolding the project.


HTH,

-vga.

vga  Wednesday, May 14, 2008 4:51 PM

You can use google to search for other answers

Custom Search

More Threads

• Any Examples of Custom Wizard Panels?
• Unable to uninstall several guidance packages
• Argument in a Recipe, how to access them from a custom page
• How to set the Open attribute of AddItemFromStringAction
• Is WSSF right for me?
• How to execute actions after solution template was unfolded
• Can't able to run a recipe more than Once
• Problems with GAT and VS 2008
• updating receipe arguments in a "ForEach" action
• February 07 GAX