Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Visual Web Developer IDE Question

Status
Not open for further replies.

trims30

Programmer
Dec 17, 2000
22
US
I'm new to this tool - When starting a new project how do we add references to external components?

I right click on project in Solution Explorer and I find Add Reference. I select it then see a list of .NET components. I then select the components I want and click OK.

This does nothing as far as I can see. There should be a list of selected references in Project Explorer when I complete the process.

What am I missing in my procedure??

Lee
 
the references should show up under the References node in the solution explorer. You should be able to add the namespace/objects to you code.
for example if you wanted to use distributed transactions. Add a reference to System.Transactions to the project. then type
Code:
using(var transaction = new ScopeTransactions(...))
{
   //do database work
   transaction.Complete();
}

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
 
Jason:

My problem is that there is no Reference Node shown in the Solution Explorer.

How do I add the Reference Node to my project?

Lee
 
you don't. with VS it's just there. I have used Visual Web Developer. You could try putting an explicit reference in the web.config file. check to see if this is the case already.

There has to be a way to do this as your building a web application which requires referencing separate core .net assemblies. not to mention you can create a .net application with notepad and the .net compiler.

I think there is a forum on dedicated to Visual Web Developer. You could ask there as well.

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
 
Jason:
Tried it in VS just now.
Created new ASP Website Project and again, there is no References Node in Solution Explorer.

Went through process of adding a reference and nothing changes in Solution Explorer.

I'm lost.

Lee
 
the solution explorer should look like this. if it's a VB project replace 'cs' with 'vb'
[tt]
MySolution.sln
+-WebProject.csproj
+-Properties
| +-Assembly.cs
+-References
| +-System
| +-Other assembly references
+-Default.aspx
| +-Default.aspx.cs
| +-Default.aspx.designer.cs
+-web.config
[/tt]
right click References and add.


Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
 
See Image below...
No Reference Node appears

 
ouch! not sure what to do in this scenario other than google
"Visual Web Developer add reference to assembly".

Jason Meckley
Programmer
Specialty Bakers, Inc.

faq855-7190
faq732-7259
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top