Configuration Manager has no Release build
-
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
-
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
Set debug = "false" in the web.config file.
-
Set debug = "false" in the web.config file.
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
-
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
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; }
-
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; }
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? -
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?