#if (DEBUG) has no effect in VWD 2008?

Last post 07-09-2009 2:08 AM by maxi_ng. 4 replies.

Sort Posts:

  • #if (DEBUG) has no effect in VWD 2008?

    07-08-2009, 3:22 AM
    • Member
      68 point Member
    • maxi_ng
    • Member since 09-03-2008, 1:38 AM
    • Posts 124

     I use #if (DEBUG) to compile different code on different occasion in VS2008.

    that works just fine.

    But when I move my source and open it with VWD2008.

    No matter what compile mode I choose. They compile just the same.

    Why is this happening? VWD do not support this feature?

    Filed under: , ,
  • Re: #if (DEBUG) has no effect in VWD 2008?

    07-08-2009, 6:33 AM
    • Star
      9,462 point Star
    • kamii47
    • Member since 05-26-2005, 12:04 PM
    • Karachi, Pakistan
    • Posts 2,199

    Which type of project you are using?

    WebSite Project or Webapplication project?

    Kamran Shahid
    Sr. Software Engineer
    (MCP,MCAD.net,MCSD.net,MCTS,MCPD.net[web])

    Remember to click "Mark as Answer" on the post that helps U
  • Re: #if (DEBUG) has no effect in VWD 2008?

    07-08-2009, 9:02 PM
    • Member
      68 point Member
    • maxi_ng
    • Member since 09-03-2008, 1:38 AM
    • Posts 124

    It was WebApplication in VS2008, and I open that same .sln with VWD 2008 SP1.

    I think it is still a WebApplication in VWD.

  • Re: #if (DEBUG) has no effect in VWD 2008?

    07-09-2009, 12:03 AM
    • Star
      9,462 point Star
    • kamii47
    • Member since 05-26-2005, 12:04 PM
    • Karachi, Pakistan
    • Posts 2,199

    I didn't see any issue in webapplication project.although there is some thing which can be improve of website project for debug and release mode.[you can't set release mode for website project from configuration manager]

    Kamran Shahid
    Sr. Software Engineer
    (MCP,MCAD.net,MCSD.net,MCTS,MCPD.net[web])

    Remember to click "Mark as Answer" on the post that helps U
  • Re: #if (DEBUG) has no effect in VWD 2008?

    07-09-2009, 2:08 AM
    • Member
      68 point Member
    • maxi_ng
    • Member since 09-03-2008, 1:38 AM
    • Posts 124

    Well, I change my webapplication mode like this.

    In the solution manager window. right-click on my project and select property.

    Then choose the build tab. There is a configuration drop down list.

    I switch between RELEASE and DEBUG there.

    Is that correct?

Page 1 of 1 (5 items)