index > Visual Studio Guidance Automation Toolkit > Trying to add a new class to the References folder...

Trying to add a new class to the References folder...

I add the class and rebuild the solution, but the class is not included in the library that's built.  It may have something to do with my action element in the binding recipe I am not real familiar with that element).  This is all to add a reference to an unbound reference.  Any thoughts?

Thanks!
dwj
I don't quite understand your problem. Are you saying that the class you added is not *compiled* when you compile the project? Have you verified this with Reflector?

Or are you getting an error from GAT at runtime? Maybe the qualified type name for the unbound reference type in the CreateUnboundReference action is not correct for your class? Verify with Reflector the fully qualified name of your class, and use that as the ReferenceType attribute in the action.

HTH


Daniel Cazzulino [Solutions Architect MVP]
kzu
Sorry for my confusing post.  The problem I was having was that the class I added was NOT compiled into the resulting library (which resulted in a GAT runtime exception).  I did verify that using reflector. 

Here's some other interesting news.  I tried copying one the files that came with GAT (in the references folder - ClassLibraryReference.cs) and pasting it into the same folder.  I then renamed the class and file to be the name that I needed.  As soon as I did that and rebuilt, it showed up in the library as expected. 

Is there some setting that must be set on new files added to the project?  I could not find anything that worked aside from the previous;y mentioned solution.

Thanks for the help!
dwj
>>>Is there some setting that must be set on new files added to the project?

You can double check using the Properties windows (F4) that a given file has its build action set to "Compile".
vga
reply 4

You can use google to search for other answers

 

More Articles

• Passing custom objects to t4 templates
• How can you skip the UI when you run a recipe?
• Microsoft.Jet.OLEDB.4.0
• Guidance Package Visual Studio 2005 Project Template not installe...
• Problem with Specifying Command Bars
• how begin?.. please help, I'm lost
• How do I add an empty project folder?
• How to generate class file from t4 template into a sub-folder und...
• Thanks for the tip
• Advice needed: What technology/kit/etc to use when porting exsist...
Bookmark and Share
Welcome to Bokebb   New Update  
 

New Articles

• How can you use T3 templates in VS templ
• Multiple Project Creation Template
• Create New Project Hangs
• Tools.GenerateLocalResource
• Can you detect all installed packages?
• GAT Wrapper
• How to add template menu item to custom
• UIPAB
• ValueProvider for the first selected Ite
• Combining GAT and CAB
• Visual Studio hangs when I install the T
• Loosing Item Template Information
• Can't download GAT, GAX?
• Execute Action when content of Combobox
• Adding an Item to a solution (as opposed

Hot Articles

• Can't repair/uninstall GAT or GAX
• Use AddEntity recipe form HoL on existin
• Bullet points for building a guidance au
• Where can I get December 2005 version now?
• Wizard size and colors
• Extend the Meta-Guidance Package
• Slow Wizard Input using MonitorArgument
• configured attribute T3 - no property o
• Loading solution verty slow
• Trusted Assembly referenace Problem
• How should I deploy additional binaries?
• How is GAT Package information persisted?
• Cant' install "Guidance Automation
• Can't run the Guidance Package
• Cannot install GAT or any other guidance

Recommend Articles

• Loading solution verty slow
• Argument Expansion - Unfold Template
• Added project reference not reflected
• Error while unistalling Guidance Automat
• Unfold Recipe vs New Item
• Another installation error
• trouble installing the Web Service Softw
• Can instal GAT (and MobileClient! ;( )
• Referencing a generic class with a t4 te
• Execute Action when content of Combobox
• Problem with Specifying Command Bars
• Register Guidance Package fails
• Error "System.ArgumentNullException
• Project templates do not appear in VS 20
• Is GAT dead?