Main Page | Report Page

 

  .NET DotNet Forum Index » ASP.NET Forum » Refresh Referenced Assembly???...

Author Message
Jonathan Wood...
Posted: Mon May 04, 2009 1:13 pm
 
Okay, so I now have more than one project in my solution. One is a class
library, which includes a Control. And I added a reference to the class
library in the other project.

Initially, it worked as expected. However, when I modified my Control and
then rebuilt the class library, these changes are not appearing in the
control used in the other project.

As I understand it, a reference is not a reference at all but a copy of the
DLL? How do I get it to copy the new DLL in that case?

Thanks.

Jonathan
 
William Niver...
Posted: Mon May 04, 2009 2:13 pm
 
Howdy!

When it does mess up, just delete the dll's which are being built from the
library class. Make sure you have one of your pages in the web app selected
and then build the website.

This will cause both projects to be rebuilt correctly.

I never build by projects when not having a page in teh web app selected...
strange stuff sometimes happens because of it and I just haven't taken teh
time to track down why.

"Jonathan Wood" wrote:

Quote:
Okay, so I now have more than one project in my solution. One is a class
library, which includes a Control. And I added a reference to the class
library in the other project.

Initially, it worked as expected. However, when I modified my Control and
then rebuilt the class library, these changes are not appearing in the
control used in the other project.

As I understand it, a reference is not a reference at all but a copy of the
DLL? How do I get it to copy the new DLL in that case?

Thanks.

Jonathan


 
Jonathan Wood...
Posted: Mon May 04, 2009 5:52 pm
 
Hmm... I'm not really sure what happened. I deleted the DLLs but still
wasn't seeing the changes.

Then I closed the page that used the control and reloaded it and everything
was current.

Looks like it's a little tempermental in this area. I'll need a little while
to get used to it but, for the most part, I like it!

Thanks.

Jonathan

"William Niver" <WilliamNiver at (no spam) discussions.microsoft.com> wrote in message
news:2EDBB941-5E57-46C2-9330-270B63975072 at (no spam) microsoft.com...
Quote:
Howdy!

When it does mess up, just delete the dll's which are being built from the
library class. Make sure you have one of your pages in the web app
selected
and then build the website.

This will cause both projects to be rebuilt correctly.

I never build by projects when not having a page in teh web app
selected...
strange stuff sometimes happens because of it and I just haven't taken teh
time to track down why.

"Jonathan Wood" wrote:

Okay, so I now have more than one project in my solution. One is a class
library, which includes a Control. And I added a reference to the class
library in the other project.

Initially, it worked as expected. However, when I modified my Control and
then rebuilt the class library, these changes are not appearing in the
control used in the other project.

As I understand it, a reference is not a reference at all but a copy of
the
DLL? How do I get it to copy the new DLL in that case?

Thanks.

Jonathan


 
William Niver...
Posted: Mon May 04, 2009 6:06 pm
 
Compiling images and files into your Custom Server Controls is when it
starts to get really fun. *grin*

No more need fer any support files for anything... no external javascript,
no external css, no images... just drop the control on the page and yer in
business.

Take care!

William

"Jonathan Wood" <jwood at (no spam) softcircuits.com> wrote in message
news:Ot4X5NRzJHA.1372 at (no spam) TK2MSFTNGP05.phx.gbl...
Quote:
Hmm... I'm not really sure what happened. I deleted the DLLs but still
wasn't seeing the changes.

Then I closed the page that used the control and reloaded it and
everything was current.

Looks like it's a little tempermental in this area. I'll need a little
while to get used to it but, for the most part, I like it!

Thanks.

Jonathan

"William Niver" <WilliamNiver at (no spam) discussions.microsoft.com> wrote in message
news:2EDBB941-5E57-46C2-9330-270B63975072 at (no spam) microsoft.com...
Howdy!

When it does mess up, just delete the dll's which are being built from
the
library class. Make sure you have one of your pages in the web app
selected
and then build the website.

This will cause both projects to be rebuilt correctly.

I never build by projects when not having a page in teh web app
selected...
strange stuff sometimes happens because of it and I just haven't taken
teh
time to track down why.

"Jonathan Wood" wrote:

Okay, so I now have more than one project in my solution. One is a class
library, which includes a Control. And I added a reference to the class
library in the other project.

Initially, it worked as expected. However, when I modified my Control
and
then rebuilt the class library, these changes are not appearing in the
control used in the other project.

As I understand it, a reference is not a reference at all but a copy of
the
DLL? How do I get it to copy the new DLL in that case?

Thanks.

Jonathan



 
 
Page 1 of 1    
All times are GMT - 5 Hours
The time now is Sun May 29, 2016 12:20 pm