Skip navigation

In May of 2007, the Patterns & Practices group released a new version of the Smart Client Software Factory (SCSF). The problem is that Safe still doesnt get along with it. The fix for the old one has been out for some time, but apparently, feature are more important than performance at this point. Here is the procedure to fix it again.

New Fix for May 2007 Release

First you have to install the source, it no longer installs by default. If you installed SCSF in it’s default location, you can find the source code installer here:

C:\Program Files\Microsoft Smart Client Factory\Source Code Installer\SmartClientFactorySourceInstall.msi

This will install the source not to Program Files like the old one but to your project code in your profile?? I have no idea why it goes there, but because of the nature of how these projects interoperate with other P&P releases, I always leave them at their default locations. Lets jsut say I have learned my lesson in the past.

The new install location by default is:
C:\Documents and Settings\jnoble\My Documents\Visual Studio 2005\Projects\SCSF Source

  1. Open the GuidancePackage.sln.
  2. Expand the SmartClientFactoryPackage Project
  3. Expand the References Folder
  4. Edit the file ViewTemplateReferenceCS.cs
  5. Comment out the line vsProject.Refresh();
  6. Edit the file ViewTemplateReferenceVB.cs
  7. Comment out the line vsProject.Refresh();
  8. Build the solution and make sure you have no errors. If you don’t have NUnit installed, or the VSteam stuff installed, you can remove the projects from the solution (just ot get it to build).
  9. In windows explorer, open the folder:
    C:\Program Files\Microsoft Smart Client Factory\Guidance Package
  10. Rename the file Microsoft.Practices.SmartClientFactory.GuidancePackage.dll so we can roll back later if there is a problem. I used Microsoft.Practices.SmartClientFactory.GuidancePackage.dll.OLD
  11. In windows explorer, open the folder:
    C:\Documents and Settings\jnoble\My Documents\Visual Studio 2005\Projects\SCSF Source\GuidancePkg\Source\SmartClientFactory\
    SmartClientFactoryPackage\bin\Debug
  12. Copy the file Microsoft.Practices.SmartClientFactory.GuidancePackage.dll to the folder C:\Program Files\Microsoft Smart Client Factory\Guidance Package.
  13. Restart Visual Studio and your performance worries are over! Well at least for SCSF performance of menus. I can’t fix everything you know <grin>.
Advertisement

5 Comments

  1. On e.g. a german windows XP you can not install the sources to the default location if your username has more than 3 characters. The reason is a compiler error “can not write file. the puff path has mor than 260 charactes”

  2. Yeah, the max path length shows itself a little too often. The instructions still work, but you may have to modify the install path of the source.
    Good Point! Thanks!!
    -Jeff

  3. I had add a link to this page on http://www.cabpedia.com/index.php?title=SCSF_Problems.
    I’ll hope this is ok for you.
    Thank you very much for this Fix Instructions..

  4. Thank you! Before applying your fix I couldn’t use Visual Studio over VPN.

  5. Thanks Savij; I really appreciate your solution. More power.


One Trackback/Pingback

  1. [...] FOR INSTRUCTIONS ON THE MAY 2007 RELEASE CLICK HERE!!PurposeĀ  [...]

Leave a Reply

Fill in your details below or click an icon to log in:

Gravatar
WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.