fsprojects-archive / zzarchive-FSharpCommunityTemplates

Templates for F# projects, by the F# community, for use in Visual Studio, Xamarin Studio and other editors
MIT License
103 stars 27 forks source link

Mvc5 Web *.fsproj Templates are missing <Optimize>false</Optimize> element #97

Closed bentayloruk closed 9 years ago

bentayloruk commented 9 years ago

Michael S Ross and I have had an issue regarding F5 debugging projects based on the Mvc5 templates. We asked about this issue here and here in the F# MVC 5 extension gallery Q&A section.

I believe this issue is due to the fact that the template fsproj files are missing the <Optimize>false</Optimize> element for the Debug configuration. In this scenario, VS shows the Optimize code project setting as unchecked. However, I can see --optimize+ being passed to the compiler (hence the issue we get of "you're trying to debug optimized code").

I am raising this issue and will shortly submit the PR for it.