Geeks With Blogs

News

Google My Blog


Murray Gordon Flash a-ah! Savior of the universe...

 

Here’s the problem that was posted to Microsoft Forums: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=1174573&SiteID=1

 

Here’s the solution we came up with…

 

After installing SCSF, all the template files (*.vstemplate) for the SCSF referenced the wrong version (1.0.51206.0) of the Microsoft.Practices.RecipeFramework.VisualStudio.dll

 

In order for the SCSF to function properly we needed to change this reference in all the *.vstemplate files under the following directories of the (C:\Program Files\Microsoft SCSF\GuidancePkg\bin\Templates\) :

 

SNAG-070131_145803

 

The .vstemplate files look like similar to the following XML.

 

The file we are showing is “ModuleHandle.vstemplate” from the “C:\Program Files\Microsoft SCSF\GuidancePkg\bin\Templates\Projects\Module\” directory.

 

You will need to change the highlighted code in the XML.:

 

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

      <TemplateData>

            <Name>Add Foundational Module</Name>

            <Description>Creates a CAB module that exposes services and UI components.</Description>

            <ProjectType>CSharp</ProjectType>

            <ProjectSubType>

            </ProjectSubType>

            <SortOrder>1000</SortOrder>

            <CreateNewFolder>true</CreateNewFolder>

            <DefaultName>Module</DefaultName>

            <ProvideDefaultName>true</ProvideDefaultName>

            <LocationField>Enabled</LocationField>

            <EnableLocationBrowseButton>true</EnableLocationBrowseButton>

            <Icon>__TemplateIcon.ico</Icon>

      </TemplateData>

      <TemplateContent>

            <Project TargetFileName="ModuleHandle.csproj" File="ModuleHandle.csproj.template" ReplaceParameters="true">

            </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" Recipe="CreateFoundationalModule">

            </Template>

      </WizardData>

</VSTemplate>

 

 

This line of code:

 

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

 

Needs to change to:

 

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

 

 

Here’s the resulting change log from find and replace on a machine that couldn’t load the SCSF package.

 

Processing file : C:\Program Files\Microsoft SCSF\GuidancePkg\bin\Templates\Items\ServiceAgent\ServiceAgent.vstemplate

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

Found 1 occurrences.

Processing file : C:\Program Files\Microsoft SCSF\GuidancePkg\bin\Templates\Projects\Module\Module.Basic.vstemplate

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

Found 1 occurrences.

Processing file : C:\Program Files\Microsoft SCSF\GuidancePkg\bin\Templates\Projects\Module\Module.Layout.vstemplate

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

Found 1 occurrences.

Processing file : C:\Program Files\Microsoft SCSF\GuidancePkg\bin\Templates\Projects\Module\ModuleHandle.vstemplate

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

Found 1 occurrences.

Processing file : C:\Program Files\Microsoft SCSF\GuidancePkg\bin\Templates\Projects\Module.Business\BusinessModuleHandle.vstemplate

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

Found 1 occurrences.

Processing file : C:\Program Files\Microsoft SCSF\GuidancePkg\bin\Templates\Projects\Module.Business\Module.vstemplate

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

Found 1 occurrences.

Processing file : C:\Program Files\Microsoft SCSF\GuidancePkg\bin\Templates\Projects\Module.Interface\Module.Interface.vstemplate

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

Found 1 occurrences.

Processing file : C:\Program Files\Microsoft SCSF\GuidancePkg\bin\Templates\Solutions\SmartClient.vstemplate

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

Found 1 occurrences.

Processing file : C:\Program Files\Microsoft SCSF\GuidancePkg\bin\Templates\Solutions\Projects\Infrastructure\Infrastructure.vstemplate

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

Found 1 occurrences.

Processing file : C:\Program Files\Microsoft SCSF\GuidancePkg\bin\Templates\Solutions\Projects\Library\Library.vstemplate

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

Found 1 occurrences.

Processing file : C:\Program Files\Microsoft SCSF\GuidancePkg\bin\Templates\Solutions\Projects\Module\Module.vstemplate

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

Found 1 occurrences.

Processing file : C:\Program Files\Microsoft SCSF\GuidancePkg\bin\Templates\Solutions\Projects\Shell.Basic\Shell.vstemplate

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

Found 1 occurrences.

Processing file : C:\Program Files\Microsoft SCSF\GuidancePkg\bin\Templates\Solutions\Projects\Shell.Extended\Shell.vstemplate

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

Found 1 occurrences.

Processing file : C:\Program Files\Microsoft SCSF\GuidancePkg\bin\Templates\Solutions\Projects\Shell.LayoutModule\Shell.Layout.vstemplate

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

Found 1 occurrences.

Searched 14 file(s), found 14 occurrences in 14 file(s)

Replaced 14 occurrences in 14 file(s)

 

 

 

Once the find and replace was completed, the SCSF Packages could load.

 

 

Thanks,

 

Murray Gordon

http://www.geekswithblogs.com/murraybgordon

 

 

Posted on Wednesday, January 31, 2007 2:18 PM | Back to top


Comments on this post: Solution to Problem Loading SCSF Package in Visual Studio 2005

No comments posted yet.
Your comment:
 (will show your gravatar)


Copyright © Murray Gordon | Powered by: GeeksWithBlogs.net