How do I configure MSBuild to use a saved publishProfile for WebDeploy?

I’m sorry to tell you that the publish.xml file which VS2010 uses was not designed to be used in this way. In fact it was not even designed to be checked-in/shared with others. The logic for reading/writing those files are strictly contained inside Visual Studio and not available through MSBuild. So there is no straight … Read more

Winforms – how to show/hide elements in designer?

Several options here: Use the Document Outline view (View –> Other Windows –> Document Outline) to select the panel you care about. You can right-click on it and choose Bring to Front to put it in front of everything else. Though it’s probably not relevant to what you’re doing, you might consider using a TabControl, … Read more

Why can’t I add a subfolder in a F# project?

Actually, you can add folders to F# projects but it’s not supported directly through Visual Studio (you have to edit the project file yourself): http://fsprojectextender.codeplex.com/ (edit: old link was broken, updated to F# Project Extender home page which has links to the original blog posts which were moved) (which I found in this answer). I … Read more

Can we get the type of a lambda argument?

It’s not desirable in the general case. (Note that it’s quite easy for std::function<T(A)> to specify what e.g. argument_type is: it’s just A! It’s available in the type definition.) It would be possible to require each and every function object type to specify its argument types, and in turn mandate that the closure types generated … Read more

the common language runtime was unable to set the breakpoint

Two possibilities, already kind of referenced by the other answers: Make sure you are using the Debug build of the assembly instead of the Release build, because the Release build will remove or optimize your code. Make sure you are updating the version each time you deploy the assemblies in Visual Studio (on project properties … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)