Last post Jul 14, 2010 08:17 AM by SimonUK
Jul 12, 2010 12:18 PM|SimonUK|LINK
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).
Web Deployment Project
Jul 14, 2010 07:20 AM|XiaoCheng Fan - MSFT|LINK
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.
Jul 14, 2010 08:17 AM|SimonUK|LINK
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.