Domanda

I am trying to sign a .pfx file using NANT in my TeamCity build. the following just show the help information for sn.exe. What am I missing

<exec program="C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools\sn.exe"  
   verbose="false">
  <arg value="sn -i ${rootFolder}\ApplicationFolder\MYKey.pfx" />
</exec>
È stato utile?

Soluzione

My guess is that exec command is not correctly formed. It should look like this:

<exec program="C:\Program Files (x86)\Microsoft SDKs\Windows\v8.0A\bin\NETFX 4.0 Tools\sn.exe" verbose="false"> <arg value="-i"/> <arg value="${rootFolder}\ApplicationFolder\MYKey.pfx" /> </exec>

You can also look at examples here as reference

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top