Convert my WebApp into a SINGLE dll file

Last post 09-18-2008 4:18 PM by bidware. 8 replies.

Sort Posts:

  • Convert my WebApp into a SINGLE dll file

    02-05-2007, 8:11 PM
    • Participant
      1,429 point Participant
    • Beaulieu
    • Member since 02-11-2003, 2:17 AM
    • Canada, Quebec, Chicoutimi
    • Posts 367

    when i publish my web app i have multiple DLL's which is hurd tu update my production sever.and so on.

    How like Community Server 2.0 can i deployd or create a web app in a single DLL or inside a DLL project like they doo.

    thank you

    I like programming
  • Re: Convert my WebApp into a SINGLE dll file

    02-05-2007, 9:26 PM
    • Contributor
      3,803 point Contributor
    • rojay12
    • Member since 04-03-2006, 10:43 PM
    • Sacramento, CA
    • Posts 695

    1) From the Menu click Website > Start Options. When the box appears click MSBuildOptions.

    2) Uncheck Allow this precompiled site to be updatable (this removes any html design code)

    3) Then check the "Use fixed..." box. This option compile your class files and website into a single dll. Remove it to break the dll into sperate pieces. This is a good option when you are deploying add ons or working in a group enviroment.

    4) Check the Output Folder and change/remember the path. This is were the resulting website will be published too. After building the site this is the folder you will deploy to the website/host.

    5) Then deploy using the Build > Publish Website in the Menu. Copy over the website.

    This is for VS only 

    Jared Roberts
    Lead Application Developer
  • Re: Convert my WebApp into a SINGLE dll file

    02-05-2007, 9:28 PM
    • Contributor
      3,803 point Contributor
    • rojay12
    • Member since 04-03-2006, 10:43 PM
    • Sacramento, CA
    • Posts 695

    see this for Visual Web Developer

    http://msdn2.microsoft.com/en-us/library/1y1404zt(VS.80).aspx

     

    Jared Roberts
    Lead Application Developer
  • Re: Convert my WebApp into a SINGLE dll file

    02-06-2007, 3:45 AM
    • Contributor
      4,792 point Contributor
    • KaziManzurRashid
    • Member since 03-09-2003, 3:04 PM
    • Dhaka, Bangladesh
    • Posts 882
    Use Web Application Deployment Project.
    Or Install the VS SP1 which has this installed.
    Long Live .NET
    Kazi Manzur Rashid (Amit)
    _________________________
    Web: http //dotnetshoutout.com
    Blog: http://weblogs.asp.net/rashid
    Twitter: http://twitter.com/manzurrashid
  • Re: Convert my WebApp into a SINGLE dll file

    02-11-2007, 6:48 PM
    • Participant
      1,429 point Participant
    • Beaulieu
    • Member since 02-11-2003, 2:17 AM
    • Canada, Quebec, Chicoutimi
    • Posts 367

    Yes thank you that work!! nicely.

    Web Application Deployment Project

    I like programming
  • Re: Convert my WebApp into a SINGLE dll file

    09-17-2008, 10:38 PM
    • Member
      55 point Member
    • bidware
    • Member since 01-15-2008, 1:50 PM
    • Posts 66

    When you use Web SEtup project (there is no web application deployment project), how do I know exactly which files to copy over? 

  • Re: Convert my WebApp into a SINGLE dll file

    09-18-2008, 9:22 AM
    • Participant
      1,429 point Participant
    • Beaulieu
    • Member since 02-11-2003, 2:17 AM
    • Canada, Quebec, Chicoutimi
    • Posts 367

    On your website solution, right click add web development project,  right click to that new webproject for properties.

     and from there you will see all options to compile in a single DLL

     after compilation, look in the BIN folder to copy all of them back to the webserver with all ASPX and ASCX files

    copy paste what you change or everything back

    I like programming
  • Re: Convert my WebApp into a SINGLE dll file

    09-18-2008, 4:02 PM
    • Member
      55 point Member
    • bidware
    • Member since 01-15-2008, 1:50 PM
    • Posts 66

    There is no such 'web development project'.   There is an 'asp.net web application' project.  And, there is no options to compile into a single DLL.  When I right click on that new application it brings up a window with 7 tabs (Application, Compile, References, Resources, Settings, Signing, and Web.)  And on each of those tabs, there is no option to compile into a single DLL.  Is there some other type of project that I need to use?

  • Re: Convert my WebApp into a SINGLE dll file

    09-18-2008, 4:18 PM
    • Member
      55 point Member
    • bidware
    • Member since 01-15-2008, 1:50 PM
    • Posts 66

    I've noticed that there is a 'new website' option.  That contains the 'use fixed naming and single page assemblies.' option which supposedly compiles the site into one .dll.  But, you still have to publish the solution to get the files you need, correct?  You can't just build the solution and then copy over everything except the .vb source files?  I don't think that will work? Also, why use a 'website' as opposed to an 'asp.net web application' project?  Are these the same?  I see totally different menu options for each, but why use 'website' as opposed to asp.net web app?

     Also, one quick question:

    I noticed that everytime you create a new solution, it tries to save into the following directory:

    'My Documents\visual studio 2005\projects\projectname\projectname.sln

    Can I just save the .sln file in the same directory as the actual projects, instead of having 2 different locations for the .sln and actual source?

     

     

Page 1 of 1 (9 items)