VS2010 WDP Optimization RRS feed

  • Question

  • User-1657301961 posted

    We have moved our projects from VS2008 to VS2010(Ulitmate) but staying with .Net 3.5. In VS2008 we had a web deployment project that would compile the web project to a single dll and emit full debug information, adding the new web deployment project in VS 2010 to do the same the dll is produced along with the pdb but when a dev attempts to debug the variable comes back with "Cannot evaluate expression because the code of the current method is optmized".

    In VS2008 we had a targets fix file which had the setting for the optimization but these don't appear to work under 10 (plus the targets file has grown).



    Monday, July 12, 2010 12:18 PM

All replies

  • User470413944 posted


    Please check if the optimize code is unmarked. While you met this issue, you can try use F10 or StepOut.

    I hope this can be helpful for you.

    Wednesday, July 14, 2010 7:20 AM
  • User-1657301961 posted

    Optimize code = Unmarked - where does this get set? from the site Proporty Pages there is no option for Optimize Code and from the Web Deployment Project both the one we had for our VS2008 project and the new one created for VS2010 there doesn't appear to have this option either. In the C:\Program Files\MSBuild\Microsoft\WebDeployment\v10.0\Microsoft.WebDeploy.targets there is no mention of Optimize.

    Wednesday, July 14, 2010 8:17 AM