Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Configuration Manager has no Release build

Configuration Manager has no Release build

Scheduled Pinned Locked Moved ASP.NET
questioncsharpasp-netdebuggingannouncement
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    desmondling78
    wrote on last edited by
    #1

    Hi, I have an ASP.Net web application. I added some projects in the solution as follows: MyWebApp Solution - OrderLogic project folder (contains .vb files only) - http Project folder (contains aspx files) When I try to configure the build option, I am able to set the OrderLogic project to Release build. But for the http project, it only has Debug build. There's not Release build. The platform only has ".Net" for selection as well. How can I build the http project folder for Release build? Regards

    P 1 Reply Last reply
    0
    • D desmondling78

      Hi, I have an ASP.Net web application. I added some projects in the solution as follows: MyWebApp Solution - OrderLogic project folder (contains .vb files only) - http Project folder (contains aspx files) When I try to configure the build option, I am able to set the OrderLogic project to Release build. But for the http project, it only has Debug build. There's not Release build. The platform only has ".Net" for selection as well. How can I build the http project folder for Release build? Regards

      P Offline
      P Offline
      Paddy Boyd
      wrote on last edited by
      #2

      Set debug = "false" in the web.config file.

      D 1 Reply Last reply
      0
      • P Paddy Boyd

        Set debug = "false" in the web.config file.

        D Offline
        D Offline
        desmondling78
        wrote on last edited by
        #3

        Tried that. doesn't work. I'm not sure if my post is confusing. I have a picture to make my problem clearer, but I don't know how to upload pics in this forum. Anyway, when I mention I can't set to release mode, I was referring to the following menu: Build -> Configuration Manager The "Configuration Manager" dialog will appear. Here you can set to Debug or Release mode rite? I can't set my http project to Release mode. Thanks

        G 1 Reply Last reply
        0
        • D desmondling78

          Tried that. doesn't work. I'm not sure if my post is confusing. I have a picture to make my problem clearer, but I don't know how to upload pics in this forum. Anyway, when I mention I can't set to release mode, I was referring to the following menu: Build -> Configuration Manager The "Configuration Manager" dialog will appear. Here you can set to Debug or Release mode rite? I can't set my http project to Release mode. Thanks

          G Offline
          G Offline
          Guffa
          wrote on last edited by
          #4

          paddyboyd wasn't very clear on why you should do that and what it accomplishes. There is no release option in the configuration manager because that settings is not used for web projects. Instead it's the setting in web.config that decides the build mode for the project. Change the setting in web.config, and it will be build in release mode. There is still no release option in the configuration manager, but that is as it should be, as that setting is not used. --- b { font-weight: normal; }

          D 1 Reply Last reply
          0
          • G Guffa

            paddyboyd wasn't very clear on why you should do that and what it accomplishes. There is no release option in the configuration manager because that settings is not used for web projects. Instead it's the setting in web.config that decides the build mode for the project. Change the setting in web.config, and it will be build in release mode. There is still no release option in the configuration manager, but that is as it should be, as that setting is not used. --- b { font-weight: normal; }

            D Offline
            D Offline
            desmondling78
            wrote on last edited by
            #5

            Hi Guffa, Thanks for your info. I understand now. One question thou. I am using Preprocessor flags in my code. 1 Protected Sub MyFunc() 2 Dim nValue As Integer 3 nValue = 1 4 #If DEBUG Then 5 nValue = 2 6 #End If 7 End Sub When I set debug="false" in my webconfig, will the DEBUG preprocessor be undefined and thus not compile line 5?

            G 1 Reply Last reply
            0
            • D desmondling78

              Hi Guffa, Thanks for your info. I understand now. One question thou. I am using Preprocessor flags in my code. 1 Protected Sub MyFunc() 2 Dim nValue As Integer 3 nValue = 1 4 #If DEBUG Then 5 nValue = 2 6 #End If 7 End Sub When I set debug="false" in my webconfig, will the DEBUG preprocessor be undefined and thus not compile line 5?

              G Offline
              G Offline
              Guffa
              wrote on last edited by
              #6

              Yes. --- b { font-weight: normal; }

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups