Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding reference
Message
From
19/01/2011 10:22:31
 
 
To
19/01/2011 09:52:20
General information
Forum:
ASP.NET
Category:
Visual Studio
Miscellaneous
Thread ID:
01496537
Message ID:
01496562
Views:
34
>>>>>>>>>HI
>>>>>>>>>
>>>>>>>>>I have some dll referred to in the bin folder of my project which I have moved.
>>>>>>>>>
>>>>>>>>>I removed a dll and want to re add the reference
>>>>>>>>>
>>>>>>>>>When I do I just get a file called dllname.dll.refresh
>>>>>>>>>
>>>>>>>>>What am I doing wrong ?
>>>>>>>>
>>>>>>>>I think the *.dll.refresh file is just a text file that lets VS know where the referenced dll should be copied from.
>>>>>>>>
>>>>>>>>When you say 'I just get a file called ....." do you mean that you can only see the .refresh file and no plain .dll to choose or do you mean that you reference the .dll but it doesn't show up in the bin folder of the project you are referencing it from?
>>>>>>>
>>>>>>>Hi Viv
>>>>>>>
>>>>>>>I can see the dll in the folder but when I select add dll I only get the refresh file in the bin folder in the project explorer in visual studio.
>>>>>>Hmm,
>>>>>>I'm a bit hazy on this. Two questions:
>>>>>>Is this a web project of some type?
>>>>>>Have you actually tried compiling ?
>>>>>
>>>>>Its a VB web project and its associated with me trying to move it. Which we discussed briefly a few days ago.
>>>>>
>>>>>I've copied the project folder to another location and when I open it in Visual studio I get a lot of errors. I thought I'd start clearing them and wanted to make sure the bin folder contents where correct. But when I attempt to delete and re add I get this problem.
>>>>>
>>>>>I have an additional problem with a lot of errors like "Name Color is not defined". I can cure that specifically by using Import System.Drawing but there are a lot of these errors so I assume I have done something wrong in the way I've moved the project.
>>>>>
>>>>>Any thoughts ?
>>>>
>>>>If I get into this sort of mess (and I do :-}) I usually take a clean-sweep approach. Remove all references that are not .Net framework dlls (or other GAC dlls you know you need). Delete everything from the bin folder. Then add references back one at a time until the compiler stops complaining.....
>>>
>>>supplementary question Viv. (if you don't mind)
>>>
>>>when I type imports in a pvb program intellisense gives me a list of values I can use.
>>>I'm getting a different list in my original project compared to my copy.
>>>
>>>For instance the original has Dundas on the list my copy doesn't.
>>>
>>>What dictates what is on that list ?
>>
>>What's a pvb program ? IAC the namespaces that are listed in intellisense should include any namespaces used in the dlls referenced by the project. So if something is not appearing in the dropdown as expected double check that the reference is in place.
>
>I juts tried copying the whole project to a different folder but on the same drive and that worked no problem..

Poking around in the .vbproj file with Notepad should give you an idea of which references will continue to work. In general references to Dlls or projects on a different drive will have the full drive\path specified. When on the same drive the path will be relative to the projeect holding the references. (Look for the Reference and ProjectReference ItemGroups)
Previous
Reply
Map
View

Click here to load this message in the networking platform