x64 C# warning – Referenced assembly ‘System.Data.dll’ targets a different processor

Using Visual Studio 2010 C# to compile .NET project for Target Platform x64, the following two warnings appears: —— Rebuild All started: Project: TestProject-64-bit, Configuration: Debug x64 —— warning CS1607: Assembly generation — Referenced assembly ‘System.Data.dll’ targets a different processor warning CS1607: Assembly generation — Referenced assembly ‘mscorlib.dll’ targets a different processor Compile complete — […]

zlib 1.2.5 – fatal error LNK1120: X unresolved externals

When trying to link program to zlib 1.2.5 static library (zlib.lib), I got the following error: fatal error LNK1120: X unresolved externals … Version 1.1.3 worked without any problems. Without going into details, here is what I did – using DUMPBIN.EXE I figured out that I am using __cdecl (/Gd) Calling convention, but zlib somehow […]

Remove .pdb path from exe in Microsoft Visual Studio 2010

If you look at executables shipped from Microsoft like notepad.exe, you will see that they include .pdb (Program Database) reference, but do not include path to .pdb: notepad.pdbvs d:\some\dir\release\bin\etc\notepad.pdb This path can sometimes reveal unnecessary information to your customer / user, so if you want to get rid of that path in Visual Studio 2008, […]