Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > "Add new module" recipe customization
 

"Add new module" recipe customization

Hello,

I'm doing a customization of the "add new module recipe" which must set a fixed Location for the module project to be created (the .cs file). I have tried to do that by editing the vstemplate tags as follows:

<TemplateData>
...
<EnableEditOfLocationField>false</EnableEditOfLocationField>
<
LocationField>Disabled</LocationField>
<
EnableLocationBrowseButton>false</EnableLocationBrowseButton>
<
LocationFieldMRUPrefix>?</LocationFieldMRUPrefix>
</TemplateData>

I dont know why it does not work. I think the reason is associated with the LocationFieldMRUPrefix tag, like the value thatshould be set ... A relativeora full path seem not be the correct information expected by the tag.

Does anybody have any clue about this issue? Is there another way to accomplish such requirement?

Thanks in advance,

Luiz.

Luiz Ranieri  Friday, May 30, 2008 1:24 PM

Are you using a software factory from p&p? If so, which one?


Working with GAX/GAT/DSL? Download SFT now! http://softwarefactoriestoolkit.net
vga  Wednesday, June 04, 2008 9:40 AM
Yes, I'm using Web Client Software Factory - June 2007

Thanks.

Luiz

Luiz Ranieri  Wednesday, June 04, 2008 1:29 PM
Let me try a better clarification of the whole context:

My team have customized the Web Client Software Factory (and others packages from p&p) to be used by all developers of my Company. Currently we already have 3 new corporate projects being delivered, that were built using our customized packages.

Now, my boss have asked to implement this new requirement: when the developer runs the "Add new module" recipe, the resulting project from that should be created following the directory structure described in our company guidelines, which differs a bit from WCSF default directories.

This is the WCSF structure:

\<Root>
\Modules
\<new module1>
\<new module2>
\<...>
\WebSites
\WebSite (contains all web csproj files)
\<new module 1> (web project for a module)

Our customized directories definition is:

\<Root>
\Modules
\<new module1>
\<new module2>
\<...>
\Site
\<new module 1> (web project for a module)

We did the changes needed to generated the following structure:

\<Root>\Site

Instead:

\<Root>\WebSites\WebSite

But we still have the two issues bellow to address:

1) The "add new module" recipe should not allow the developer change the physical location where the module project is created. This location must always be like that: \<Root>\Modules\<new module>

2) After change the web site structure to our guidelines, the recipe could not create the web module project correctly. The recipe runs with no errors, and the project files are generated, but the Visual Studio does not recognize it as new web project to be included in the solution. The new web module folder is shown as normal folder inside the main web project.

So, I would appreciate any help to solve issues above.

Luiz.
Luiz Ranieri  Wednesday, June 04, 2008 11:28 PM
Hi Luiz,
I'll try to figure out why you're having that issue, anyway try to post it in the Web Service Factory specific forum, due to it seems an issue related with that SF.
http://www.codeplex.com/websf/Thread/List.aspx

jose.
Jose Escrich - weblogs.asp.net/jescrich
Jose Escrich  Thursday, June 05, 2008 5:34 AM

You can use google to search for other answers

Custom Search

More Threads

• Copy WSSF and use as base for new GA package (formerly Where are the configuration files located?)
• Can't Register or Unregister Recipe
• List of Icon code
• System.Collections.Generic.KeyNotFoundException in custom T4 Action
• System.TypeLoadException when starting a new project of type "Web Service Software Factory (WCF)"
• VSTS 2008 - installed GAX but GAT fails: C# Language is not installed
• Project reference
• GuidancePackage Solution Will Not build
• Modify WCF Guidance Package
• unistallation issue with guidence automation and Wssf december 2006 release