.NET Deployment Issue

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JimSnotes
    New Member
    • Jan 2008
    • 3

    .NET Deployment Issue

    Hello,

    I have a question about deploying some changes I made to an ascx.vb codebehind file. My problem is that the project that contains the ascx file also contains other ascx files that are not used or needed for the operation of the site. If I copy in the newly compiled dll, does .NET know or care if the other ascx files are not anywhere within the site?

    Thanks in Advance,

    Jim
  • nateraaaa
    Recognized Expert Contributor
    • May 2007
    • 664

    #2
    Originally posted by JimSnotes
    Hello,

    I have a question about deploying some changes I made to an ascx.vb codebehind file. My problem is that the project that contains the ascx file also contains other ascx files that are not used or needed for the operation of the site. If I copy in the newly compiled dll, does .NET know or care if the other ascx files are not anywhere within the site?

    Thanks in Advance,

    Jim
    If the controls are not needed you can set the visibility property of the controls to false or remove them all together. If your code tries to use the control but it is not there a compilation error will occur.

    Nathan

    Comment

    • Plater
      Recognized Expert Expert
      • Apr 2007
      • 7872

      #3
      When you do a Publish I *think* it removes all the files beforehand (at least that is what the warning message says)
      However, durring a build, it will not remove old files.

      Comment

      Working...