Page view counter

Intellisense and referencing 1.1 dll problems ...

Last post 10-10-2005 4:53 PM by Robby. 4 replies.

Sort Posts:

  • Intellisense and referencing 1.1 dll problems ...

    09-30-2005, 1:56 AM
    • Loading...
    • AndsX
    • Joined on 07-12-2004, 1:11 PM
    • Posts 155
    • Points 720
    I am referencing a .NET 1.1 dll in my 2.0 project. But whenever i change my function in 1.1 dll ... I need to restart the studio and reference it again for the changes to be
    available...

    Won't 2.0 pick up the latest dll after i compile .. or do i have to reference it again so that it gets the new copy ...Its driving me crazy ..

    Any one had these troubles ...
  • Idea [Idea] Re: Intellisense and referencing 1.1 dll problems ...

    09-30-2005, 5:01 PM
    • Loading...
    • alexgav
    • Joined on 04-08-2005, 12:23 AM
    • Posts 120
    • Points 763
    • AspNetTeam
    Hi AndsX,

    If I understand correctly, you have a VS 2003 project that produces a DLL, and VS 2005 web site that references that DLL. So you have two different projects that you work with in two different IDEs. Is that correct?

    I am also assuming that when you add a reference to the DLL, you probably add a reference to the DLL at the output folder of the VS 2003 DLL project. So when you modify and rebuild the DLL, you expect that updated DLL will be referenced by VS 2005 web site. Is that right?

    In the above are correct assumptions, then here's what's actually hapenning. When you add a reference to the VS 2003 DLL in your VS 2005 web site, the DLL actually gets copied to the /Bin folder of your web site (you should be able to see it in the solution explorer). VS 2005 will not remember where it copied the DLL from, and will not monitor the original location to see if the updated DLL is available. Instead, it will keep using the local copy it has in the /Bin folder. When you modify you VS 2003 DLL project and rebuild it, VS 2005 does not see the new binary until you re-add the reference, which will copy the new DLL to the /Bin folder of your web site.

    One possible workaround here would be to set the /Bin folder of your web site as the output folder for your VS 2003 library. So in VS 2003 your would go to the project property pages, Configuration Properties, Build, Output Path, and set it to something like c:\website\mywebsite\Bin, where c:\website\mywebsite is the website root folder. This way every time you rebuild your VS 2003 project, the update binary will be placed in the /Bin folder of VS 2005 web site. This way you will get intellisense for the new code in VS 2005 within a few seconds after building your DLL in VS 2003.

    I hope that helps. :-) If my assumptions were incorrect, please let me know.

    Thanks,
    Alex
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Intellisense and referencing 1.1 dll problems ...

    10-04-2005, 5:53 PM
    • Loading...
    • YugangW
    • Joined on 11-27-2002, 5:55 PM
    • Posts 217
    • Points 1,089
    • AspNetTeam
    FYI, in the latest Whidbey RC bits, we have added back the support to refresh dlls referenced by a web when you build the web or the solution. When you create a reference to a dll, you should see a .refresh file created with the path VS uses to do the refresh.
    Hope this helps
       Yugang
  • Re: Intellisense and referencing 1.1 dll problems ...

    10-07-2005, 1:39 PM
    • Loading...
    • sahina
    • Joined on 12-11-2004, 4:04 PM
    • New Jersey
    • Posts 67
    • Points 292
    I installed VS 2005 RC and I realized that intellisense in web.config file is not working. The Beta 2 was working fine and I made no config changes whatsoever. The only thing I see in the intellisense while I am in web.config are these 3 items:
    <!--
    <![CDATA[
    <?

    Why don't I see anything else? I tried this in every element level... Nothing. Itellisense works in aspx, cs, or other files...

    Any ideas?
    -Al



  • Re: Intellisense and referencing 1.1 dll problems ...

    10-10-2005, 4:53 PM
    • Loading...
    • Robby
    • Joined on 07-17-2005, 9:33 PM
    • Montreal, Ca
    • Posts 103
    • Points 515
    In addition to Yugang's post; you can modify the .refresh file (using a text editor) to reflect to a change of location for your dll.
Page 1 of 1 (5 items)