How do I create/edit a Manifest file?

In Visual Studio 2010 and possibly in future versions you can add the manifest file to your project. Right click on your project file on the Solution Explorer, select Add, then New item (or CTRL+SHIFT+A). There you can find Application Manifest File. The file name is app.manifest. If this item doesn’t exist then your project … Read more

What is MyAssembly.XmlSerializers.dll generated for?

In .NET implementation, the XmlSerializer generates a temporary assembly for serializing/deserializing your classes (for performance reasons). It can either be generated on the fly (but it takes time on every execution), or it can be pregenerated during compilation and saved in this assembly you are asking about. You can change this behaviour in project options … Read more

In release mode, code behavior is not as expected

This is interesting, at least from a historical perspective. I can reproduce the problem with VC 2008 (15.00.30729.01) and VC 2010 (16.00.40219.01) (targeting either 32-bit x86 or 64-bit x64). The problem doesn’t occur with any of the compilers I have tried starting with VC 2012 (17.00.61030). The command I used to compile: cl /Ox vc15-bug.cpp … Read more

How to automatically remove trailing whitespace in Visual Studio 2008?

CodeMaid is a very popular Visual Studio extension and does this automatically along with other useful cleanups. Download: https://github.com/codecadwallader/codemaid/releases/tag/v0.4.3 Modern Download: https://marketplace.visualstudio.com/items?itemName=SteveCadwallader.CodeMaid Documentation: http://www.codemaid.net/documentation/#cleaning I set it to clean up a file on save, which I believe is the default.

MSBUILD : error MSB1008: Only one project can be specified

It turns out the trailing slash in the PublishDir property is escaping the end quote. Escaping the trailing slash solved my problem. /p:PublishDir=”\\BSIIS3\c$\DATA\WEBSITES\benesys.net\benesys.net\TotalEducationTest\\” This way we can use quotes for paths that have whitespace in properties that MSBuild requires the trailing slash. I know this is an old post, but I feel like I needed … Read more

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