Archive for the 'GAT' Category

Smart Client Software Factory (SCSF) April 2008 for Visual Studio 2008 Released

After publishing an alpha version, a beta version and a RC 1 version I’m glad to announce that the final version of Smart Client Software Factory for Visual Studio 2008 has been published on MSDN.

What is new in this release?

How to enable a May 2007 solution

If you have a May 2007 solution and you want to enable it to use this new guidance please read this page.

Known Issues

In this page you will find the list of known issues that exists in Smart Client Software Factory - April 2008.

Downloads

Smart Client Software Factory - April 2008

Smart Client Software Factory Source Code - April 2008

Smart Client Software Factory Documentation - April 2008 (CHM format)

Documentation

Documentation on MSDN (HTML format)

Feedback

Feel free to give us your feedback on the discussion board. If you see issues, please post them to the Issue Tracker.

More Information of this release

For more information about this new release please read Blaine’s post and Michael’s post.

Enjoy this new guidance.

SCSF April 2008 Alpha for Visual Studio 2008 Just Published

Some time ago, I wrote a post about How to update the installer to run Smart Client Software Factory in Visual Studio 2008 Beta 2.

Now I’m proud to announce that we shipped an Alpha version of Smart Client Software Factory for Visual Studio 2008. As Blaine announced before, in order to run this new release you will require an upgrade of GAX/GAT to the February 2008 release.

scsfApril2008

For more information about this new release you can read the following posts:

Note: This is not the final release and still has known bugs. Use at your own risk

Download SCSF April 2008 Alpha Release and give us your feedback on the discussion board.

SCSF: How to store the solution’s global values in a xml file.

Luciano Panaro has written a blog post where he shows how to modify the SCSF Guidance Package to store the solution’s global values (which are originally stored in the .sln file) in a xml file.

It is a good example of how to face a gp customization.

Hope you find Luciano’s post useful.

How to add an image to the WCSF Guidance Package

Scenario

Imagine that you want your master page to use an image. You create a WCSF project, and you then add the image to your project and modify the master page.

Now imagine that every WCSF project you are going to create will use that master page with that image. It would be a waste of time to do the same process (adding the image and then modifying the master page) every time you created a project

You decide that the best solution is to add the image to the guidance package, hence when the solution is unfolded you don't have to do the process described before.  

Adding the image to the WCSF Guidance Package

  1. Go to %WCSFSourceCodeDir\GP\WebClientFactory\ and open WebClientFactory Guidance Package.sln. (To install the source code go to %programfiles%\Microsoft Web Client Factory\Source Code and execute the WebClientFactorySourceInstall.msi file).
  2. In Templates\Solutions\Projects\WebProjects create a folder called Images.
  3. Add an image into the Images folder. Change the Build Action property to Content and the Copy to Output Directory property to Copy if newer.

  4. Add the image to the WebUI.vstemplate as shown below:
  5. <Folder Name=”Images”> <ProjectItem ReplaceParameters=”true” TargetFileName=”header.gif”>header.gif</ProjectItem> </Folder>

  6. Modify the MasterPage. Go to Templates\Solutions\Projects\WebProjects\Shared and open Default.master. Add the following code into the Header div:
  7. <img src=”..\images\header.gif” />

  8. Register the package.

Issue

When you try to use the custom package you get this weird error:

 

Workaround

Set the ReplaceParameters argument to false in the WebUI.vstemplate (see Step 4 above) as shown below:

<Folder Name=”Images”> <ProjectItem ReplaceParameters=”false” TargetFileName=”header.gif”>header.gif</ProjectItem> </Folder>

Register the package and have fun!