Visual studio 2015 extension to install .pfx key pair sn.exe

207 views Asked by At

i was using vscommands extension for vs 2013 to import .pfx key into project by simply right clicking on error and applying fix.

in vs 2015 i didnt find any extension to do that an i have to manully enter command

is there any extension which can help to enter the password command easier ?

1

There are 1 answers

0
Zhanglong Wu - MSFT On

is there any extension which can help to enter the password command easier?

I would suggest that you can create a simple Menu Command to achieve it. here is a sample for your reference.

Please modify the StartNotepad method like this:

 private void StartNotepad(object sender, EventArgs e)
 {
            ProcessStartInfo psi = new ProcessStartInfo();
            psi.FileName = @"yoursnPath\SN.exe";
            psi.Arguments = "-d keyname";
            System.Diagnostics.Process.Start(psi);
            psi.Arguments = " -i key.pfd keyname";
            System.Diagnostics.Process.Start(psi);
 }

https://msdn.microsoft.com/en-us/library/cc138589.aspx