Professional Web Applications Themes

How to make changes made to a component be updated immediately - ASP.NET Building Controls

I have two projects in the same solution. One of them contains a component, that is finished, and added to the toolbox. In the second project I have put this component on the webform. The problem arises when I make changes to the component. These changes are not immediately recognized in the other project. I rebuild the whole solution, doesn't help. I finally found out that if I load another solution and the reload the first back again, the component is updated, but this is rather bersome, a more easy way would be appreciated. Any suggestions? -- Ingvar Nilsen...

  1. #1

    Default How to make changes made to a component be updated immediately

    I have two projects in the same solution.
    One of them contains a component, that is finished, and added to the
    toolbox.

    In the second project I have put this component on the webform.

    The problem arises when I make changes to the component. These changes
    are not immediately recognized in the other project. I rebuild the
    whole solution, doesn't help. I finally found out that if I load
    another solution and the reload the first back again, the component is
    updated, but this is rather bersome, a more easy way would be
    appreciated.

    Any suggestions?


    --
    Ingvar Nilsen

    Ingvar Nilsen Guest

  2. #2

    Default Re: How to make changes made to a component be updated immediately

    "Ingvar Nilsen" <telcontronline.no> wrote in message
    news:uf7mjwk5EHA.4040TK2MSFTNGP14.phx.gbl...
    >I have two projects in the same solution.
    > One of them contains a component, that is finished, and added to the
    > toolbox.
    >
    > In the second project I have put this component on the webform.
    >
    > The problem arises when I make changes to the component. These changes
    > are not immediately recognized in the other project. I rebuild the
    > whole solution, doesn't help. I finally found out that if I load
    > another solution and the reload the first back again, the component is
    > updated, but this is rather bersome, a more easy way would be
    > appreciated.
    >
    > Any suggestions?
    It's my understanding that this is an issue with the designers. Basically,
    the designer already has an instance of the old version of the component.
    Even rebuilding the solution doesn't cause the designer to release this
    instance.

    Have you tried doing this with all designers closed? Also, I would think
    that closing the solution and reopening it would work, without opening an
    intermediate solution.

    John Saunders


    John Saunders Guest

  3. #3

    Default Re: How to make changes made to a component be updated immediately

    John Saunders wrote:
    > Have you tried doing this with all designers closed? Also, I would
    > think that closing the solution and reopening it would work, without
    > opening an intermediate solution.
    Regardless, this is not good RAD (Rapid Application Development).
    Since the VS.Net is made exactly for this, and changes to components
    are made all the time during development, they should be reflected
    immediately, without going through this.

    Hmm. Wonder if there is a way.
    Maybe setting the output path of the component's project to the bin
    folder where the same component is tested would help..

    --
    Ingvar Nilsen

    Ingvar Nilsen Guest

  4. #4

    Default Re: How to make changes made to a component be updated immediately

    "Ingvar Nilsen" <telcontronline.no> wrote in message
    news:eA2RZLr5EHA.1204TK2MSFTNGP10.phx.gbl...
    > John Saunders wrote:
    >> Have you tried doing this with all designers closed? Also, I would
    >> think that closing the solution and reopening it would work, without
    >> opening an intermediate solution.
    >
    > Regardless, this is not good RAD (Rapid Application Development).
    No kidding. But try it and find out if this is part of the problem. If so,
    you may find a better way to get around this designer issue. But you'll
    never know if you don't try.
    > Since the VS.Net is made exactly for this, and changes to components
    > are made all the time during development, they should be reflected
    > immediately, without going through this.
    The designers and their infrastructure do not seem to have been given the
    same emphasis as the rest of the Framework. Consider the scant doentation
    for the design-time environment. If Microsoft were to adequately doent
    this area and if they were to engage with developers who want to do
    more-sophisticated design-time work, then they might find and fix more of
    these issues sooner.

    In the absence of that, these little "minor" bugs will aculate.
    > Hmm. Wonder if there is a way.
    > Maybe setting the output path of the component's project to the bin
    > folder where the same component is tested would help..
    It might help at run-time, but consider that even if the runtime environment
    is watching the bin folder (as ASP.NET does), that the design-time
    environment might not watch the bin folder.

    John Saunders


    John Saunders Guest

Similar Threads

  1. Component to Generate Custom Made Report
    By Raj in forum ASP Components
    Replies: 1
    Last Post: May 6th, 04:29 AM
  2. Adding my component to the right ToolBox tab immediately
    By Ingvar Nilsen in forum ASP.NET Building Controls
    Replies: 0
    Last Post: January 13th, 03:19 PM
  3. Replies: 0
    Last Post: December 16th, 12:29 AM
  4. Tags not updated immediately
    By Naveen Kohli in forum ASP.NET Building Controls
    Replies: 0
    Last Post: November 22nd, 10:01 PM
  5. Replies: 22
    Last Post: October 24th, 01:13 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139