Question: how to add pfx file in visual studio?
Answer: Click Start > All Programs > Microsoft Visual Studio >Visual Studio Tools > Visual Studio Command Prompt.
Type the following command. sn -i "c:Pathtofile .pfx" VS_KEY_C1D3ACB8FBF1AGK4. ... 
Re-import the pfx file into Visual Studio.