Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / IDE / November 2005

Tip: Looking for answers? Try searching our database.

remove reference in Visual Studio 2005

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
zino - 11 Nov 2005 18:32 GMT
in Visual Studio 2005 I added by mistake the same reference twice, which is
generating the error :  "xxxxx is ambigus in the namespace YYYYYY".
I cannot find a way to remove an instance of this reference neither from
Solution Explorer nor Class View.

How can I do it ??
james - 11 Nov 2005 18:42 GMT
> in Visual Studio 2005 I added by mistake the same reference twice, which is
> generating the error :  "xxxxx is ambigus in the namespace YYYYYY".
> I cannot find a way to remove an instance of this reference neither from
> Solution Explorer nor Class View.
>
> How can I do it ??

In Solution Explorer, click on the button at the top that says, "Show All Files" (middle one) in the Tooltip that pops up with
you hold the mouse over it. Then, under References, select the file you referenced and
Right Click on it and Select-- REMOVE.  It will be gone.
james
zino - 11 Nov 2005 18:57 GMT
the problem is I cannot see the "Show All Files" button, nor the "References"
node, eventhough I changed the setting to: "Show Miscellanous files in
Solution Explorer"
james - 11 Nov 2005 21:14 GMT
> the problem is I cannot see the "Show All Files" button, nor the "References"
> node, eventhough I changed the setting to: "Show Miscellanous files in
> Solution Explorer"

Maybe, there is a difference in Visual Studio 2005 and what I am using, Visual Basic 2005 Express Edition.
At the top of Solution Explorer, just below the words"Solution Explorer" there is a Button Bar with 5 buttons on it.  The first
one is, (looking left to right), Properties, the second one is "Show All Files", the third one is "Refresh", the forth one is
"View Code" and the fifth one is "View Designer".
If you click on the "Show All Files" button, one time it will show,( in the box below, your project's name
or My Project and the form's name ( example, Form1.vb). If you click on it again, (it will be pressed in appearance) it will
show, My Project, References, bin, obj, and form(s).vb .  Clicking on the + mark by the References should expand the tree view
where you can select the reference you want to remove. Then, click on the reference you want to remove (right click) and select
REMOVE from the context menu. And the reference will be gone. The names of the individual buttons only show up when you hover
the mouse pointer over each button, there is no text under the buttons, just images on the buttons.
If this doesn't work, I would think there is a setting in Options, under the Tools Menu to show all the
buttons on Solution Explorer. As I said, I only have VB2005 Express Edition right now, and not the full Visual Studio 2005. So,
things may be different.
Good luck.
james

"Gary Chang[MSFT]" - 12 Nov 2005 06:05 GMT
Hi zino,

>the problem is I cannot see the "Show All Files" button, nor the
>"References" node, eventhough I changed the setting to:
>"Show Miscellanous files in Solution Explorer"

Do you mean the "References" node is missing from your project folder in
the Solution Explorer?

Can you use the menu command Project/Add References... to add a new
reference to your project, if it succeeds, does the "References" node
return back?

If the above workaround still doesn't work, I suggest you can modify the
corresponding project file manually--Just close your VS2005 IDE and open
the target project file(e.g. YourAppName.vbproj/csproj) in a text editor,
then navigate to the code block as the following:
..
 <ItemGroup>
   <Reference Include="System" />
   ...
   <Reference Include="System.Windows.Forms" />
   
 </ItemGroup>
..

Find the duplicated the Reference Include code line and erase it, finally
save the project file.

Wish this helps!

Best regards,

Gary Chang
Microsoft Community Support
--------------------
Get Secure! ¡§C www.microsoft.com/security
Register to Access MSDN Managed Newsgroups!
http://support.microsoft.com/default.aspx?scid=/servicedesks/msdn/nospam.asp
&SD=msdn

This posting is provided "AS IS" with no warranties, and confers no rights.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.