Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > Unable to add reference to project
 

Unable to add reference to project

I have have my Guidance Package successfully creating a Class Library and a Website.

My issue is that when I try to add a reference to the website after its created, nothing happens. After clicking the Add reference button and choosing the dll, the references for the project show up but nothing has been added.

In my GAT, I have added references by:

Code Block

String assemblyName = "System.Design, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a";

// add the necessary references

aVSWebsite.References.AddFromGAC(assemblyName);

If I try to add System.Data after creating a new project from my Guidance Automation Template, it does not add.

However, I can successfully add new references to my class library. Just not the website project.

Thanks in advance for any help.

Kosmo

Kosmo007  Wednesday, October 24, 2007 7:04 PM

Hi Kosmo,

I could not reproduce the issue. However I found someone else who got something like that check this:

http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=106812

try to add the reference using just the assembly name like this: AddFromGAC("System.Data.dll")

Jose Escrich  Monday, November 05, 2007 2:24 PM

Hi Kosmo,

I could not reproduce the issue. However I found someone else who got something like that check this:

http://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx?FeedbackID=106812

try to add the reference using just the assembly name like this: AddFromGAC("System.Data.dll")

Jose Escrich  Monday, November 05, 2007 2:24 PM

You can use google to search for other answers

Custom Search

More Threads

• Errors when installing Guidance Automation Extenstions on VISTA
• SCSF/CAB - Module & View Loading Best Practice?
• Need the June GAX MSI
• Not being shown the GAX screen to select '08
• SCSF April 2008 - WPF Resource Dictionary implementation
• How do I automate the inclusion of source files in visual studio projects?
• FileCodeModel null on none project file...
• Null reference Exception after upgrade to GAX 1.2
• Problem adding reference to CSharp projects
• FolderAdd